blob: ef92536b640de35358dbf16ef75446280711c0e7 [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',
Ray Milkeyf9a76972016-04-12 09:47:12 -07008 '//apps/openstackinterface:onos-apps-openstackinterface-api',
Ray Milkeyf80bbb22016-03-11 10:16:22 -08009 '//core/store/serializers:onos-core-serializers',
10]
11
12java_library(
13 name = 'onos-app-openstacknetworking',
14 visibility = ['PUBLIC'],
15 deps = [
16 ':onos-app-openstacknetworking-api',
17 ':onos-app-openstacknetworking-app',
18 ':onos-app-openstackrouting',
19 ':onos-app-openstackswitching',
20 ':onos-app-openstacknetworking-web',
21 ]
22)
23
24TEST_DEPS = [
25 '//lib:TEST',
26 ':onos-app-openstacknetworking',
27]
28
29java_library(
30 name = 'onos-app-openstacknetworking-api',
31 srcs = glob(['api/' + SRC + '*.java']),
32 deps = COMPILE_DEPS,
33 visibility = ['PUBLIC'],
34)
35
36java_test(
37 name = 'onos-app-openstacknetworking-api-tests',
38 srcs = glob([TEST + 'api/*.java']),
39 deps = COMPILE_DEPS +
40 TEST_DEPS,
41 source_under_test = [':onos-app-openstacknetworking-api'],
42)
43
44java_library(
45 name = 'onos-app-openstacknetworking-app',
46 srcs = glob(['app/' + SRC + '*.java']),
47 deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
48 visibility = ['PUBLIC'],
49)
50
51java_test(
52 name = 'onos-app-openstacknetworking-app-tests',
53 srcs = glob([TEST + 'app/*.java']),
54 deps = COMPILE_DEPS +
55 TEST_DEPS,
56 source_under_test = [':onos-app-openstacknetworking-app'],
57)
58
59java_library(
60 name = 'onos-app-openstackrouting',
61 srcs = glob(['openstackrouting/' + SRC + '*.java']),
62 deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
63 visibility = ['PUBLIC'],
64)
65
66java_test(
67 name = 'onos-app-openstackrouting-tests',
68 srcs = glob([TEST + 'openstackrouting/*.java']),
69 deps = COMPILE_DEPS +
70 TEST_DEPS,
71 source_under_test = [':onos-app-openstackrouting'],
72)
73
74java_library(
75 name = 'onos-app-openstackswitching',
76 srcs = glob(['openstgackswitching/' + SRC + '*.java']),
77 deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
78 visibility = ['PUBLIC'],
79)
80
81java_test(
82 name = 'onos-app-openstackswitching-tests',
83 srcs = glob([TEST + 'openstackswitching/*.java']),
84 deps = COMPILE_DEPS +
85 TEST_DEPS,
86 source_under_test = [':onos-app-openstackswitching'],
87)
88
89java_library(
90 name = 'onos-app-openstacknetworking-web',
91 srcs = glob(['openstgacknetworking/' + SRC + '*.java']),
92 deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
93 visibility = ['PUBLIC'],
94)
95
96java_test(
97 name = 'onos-app-openstacknetworking-web-tests',
98 srcs = glob([TEST + 'openstackswitching/*.java']),
99 deps = COMPILE_DEPS +
100 TEST_DEPS,
101 source_under_test = [':onos-app-openstacknetworking-web'],
102)