BUCK
2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//apps/openstackinterface:onos-app-openstackinterface-api',
'//core/store/serializers:onos-core-serializers',
]
java_library(
name = 'onos-app-openstacknetworking',
visibility = ['PUBLIC'],
deps = [
':onos-app-openstacknetworking-api',
':onos-app-openstacknetworking-app',
':onos-app-openstackrouting',
':onos-app-openstackswitching',
':onos-app-openstacknetworking-web',
]
)
TEST_DEPS = [
'//lib:TEST',
':onos-app-openstacknetworking',
]
java_library(
name = 'onos-app-openstacknetworking-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-api-tests',
srcs = glob([TEST + 'api/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-api'],
)
java_library(
name = 'onos-app-openstacknetworking-app',
srcs = glob(['app/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-app-tests',
srcs = glob([TEST + 'app/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-app'],
)
java_library(
name = 'onos-app-openstackrouting',
srcs = glob(['openstackrouting/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackrouting-tests',
srcs = glob([TEST + 'openstackrouting/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstackrouting'],
)
java_library(
name = 'onos-app-openstackswitching',
srcs = glob(['openstgackswitching/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackswitching-tests',
srcs = glob([TEST + 'openstackswitching/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstackswitching'],
)
java_library(
name = 'onos-app-openstacknetworking-web',
srcs = glob(['openstgacknetworking/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-web-tests',
srcs = glob([TEST + 'openstackswitching/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-web'],
)