blob: a626006155ac2552c4bfc7655741334ea3704c6f [file] [log] [blame]
Ray Milkey5a9f58b2016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
2TEST = 'src/main/java/org/onosproject/**/'
3
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)