blob: 9a1d4588edb1a3e8fc4cb9b9771e6e26a5a8f974 [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:jersey-client',
7 '//lib:javax.ws.rs-api',
8]
9
10TEST_DEPS = [
11 '//lib:TEST',
12]
13
14java_library(
15 name = 'onos-app-openstackinterface-api',
16 srcs = glob(['api/' + SRC + '*.java']),
17 deps = COMPILE_DEPS,
18 visibility = ['PUBLIC'],
19)
20
21java_test(
22 name = 'onos-app-openstackinterface-api-tests',
23 srcs = glob([TEST + '/*.java']),
24 deps = COMPILE_DEPS +
25 TEST_DEPS +
26 [':onos-app-openstackinterface-api'],
27 source_under_test = [':onos-app-openstackinterface-api'],
28)
29
30java_library(
31 name = 'onos-app-openstackinterface-app',
32 srcs = glob(['app/' + SRC + '*.java']),
33 deps = COMPILE_DEPS + [':onos-app-openstackinterface-api'],
34 visibility = ['PUBLIC'],
35)
36
37java_test(
38 name = 'onos-app-openstackinterface-app-tests',
39 srcs = glob([TEST + '/*.java']),
40 deps = COMPILE_DEPS +
41 TEST_DEPS +
42 [':onos-app-openstackinterface-api', ':onos-app-openstackinterface-app'],
43 source_under_test = [':onos-app-openstackinterface-app'],
44)