BUCK
1.34 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
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:netty-buffer',
#'//lib:netty-'
#'//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',
]
java_library(
name = 'onos-isis',
visibility = ['PUBLIC'],
deps = [':onos-isis-api',
':onos-isis-isisio',
],
)
# onos-isis-api
java_library(
name = 'onos-isis-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-isis-api-tests',
srcs = glob(['api/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-isis-api'],
source_under_test = [':onos-isis-api'],
)
# onos-isis-isisio
java_library(
name = 'onos-isis-isisio',
srcs = glob(['isisio/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-isis-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-isis-isisio-tests',
srcs = glob(['isisio/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-isis-isisio'],
source_under_test = [':onos-isis-isisio'],
)