blob: 33cfd41069dece0d2d78ffcba6052e09cf0ca431 [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/**/'
Ray Milkeyf80bbb22016-03-11 10:16:22 -08003
4COMPILE_DEPS = [
5 '//lib:CORE_DEPS',
6 '//lib:javax.ws.rs-api',
7 '//lib:jersey-client',
8 '//lib:org.apache.karaf.shell.console',
9 '//utils/rest:onlab-rest',
10 '//cli:onos-cli',
11 '//core/store/serializers:onos-core-serializers',
12]
13
14TEST_DEPS = [
15 '//lib:TEST',
16]
17
18java_library(
19 name = 'onos-app-olt-api',
20 srcs = glob(['api/' + SRC + '*.java']),
21 deps = COMPILE_DEPS,
22 visibility = ['PUBLIC'],
23)
24
25java_test(
26 name = 'onos-app-olt-api-tests',
27 srcs = glob([TEST + 'api/*.java']),
28 deps = COMPILE_DEPS +
29 TEST_DEPS +
30 [':onos-app-olt-api'],
31 source_under_test = [':onos-app-olt-api'],
32)
33
34java_library(
35 name = 'onos-app-olt-app',
36 srcs = glob(['app/' + SRC + '*.java']),
37 deps = COMPILE_DEPS + [':onos-app-olt-api'],
38 visibility = ['PUBLIC'],
39)
40
41java_test(
42 name = 'onos-app-olt-app-tests',
43 srcs = glob([TEST + 'app/*.java']),
44 deps = COMPILE_DEPS +
45 TEST_DEPS +
46 [':onos-app-olt-api', ':onos-app-olt-app'],
47 source_under_test = [':onos-app-olt-app'],
48)