BUCK
2.61 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
103
104
105
106
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//utils/rest:onlab-rest',
'//lib:javax.ws.rs-api',
'//core/store/serializers:onos-core-serializers',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST_REST',
'//utils/osgi:onlab-osgi-tests',
'//web/api:onos-rest-tests',
]
java_library(
name = 'onos-app-vtn',
visibility = ['PUBLIC'],
deps = [':onos-app-sfc-mgr',
':onos-app-vtn-mgr',
':onos-app-vtn-rsc',
':onos-app-vtn-web',
],
)
# sfcmgr
java_library(
name = 'onos-app-sfc-mgr',
srcs = glob(['sfcmgr/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-sfc-mgr-tests',
srcs = glob(['sfcmgr/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-sfc-mgr', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-sfc-mgr'],
)
# vtnmgr
java_library(
name = 'onos-app-vtn-mgr',
srcs = glob(['vtnmgr/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
resources_root = 'vtnmgr/src/main/resources',
resources = glob(['vtnmgr/src/main/resources/**']),
)
java_test(
name = 'onos-app-vtn-mgr-tests',
srcs = glob(['vtnmgr/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-mgr', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-mgr'],
)
# vtnrsc
java_library(
name = 'onos-app-vtn-rsc',
srcs = glob(['vtnrsc/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'vtnrsc/src/main/resources',
resources = glob(['vtnrsc/src/main/resources/**']),
)
java_test(
name = 'onos-app-vtn-rsc-tests',
srcs = glob(['vtnrsc/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-rsc'],
)
# vtnweb
java_library(
name = 'onos-app-vtn-web',
srcs = glob(['vtnweb/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-vtn-web-tests',
srcs = glob(['vtnweb/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-web', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-web'],
resources_root = 'vtnweb/src/test/resources',
resources = glob(['vtnweb/src/test/resources/**']),
)