BUCK
2.2 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
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//incubator/api:onos-incubator-api',
'//cli:onos-cli',
'//utils/rest:onlab-rest',
'//lib:javax.ws.rs-api',
]
TEST_DEPS = [
'//lib:TEST_ADAPTERS',
'//lib:jersey-test-framework-core',
'//lib:jersey-test-framework-grizzly2',
'//utils/osgi:onlab-osgi-tests',
'//web/api:onos-rest-tests',
]
java_library(
name = 'onos-app-fm',
visibility = ['PUBLIC'],
deps = [':fmcli', ':fmgui', ':fmmgr', ':fmweb'],
)
java_library(
name = 'fmcli',
srcs = glob(['fmcli/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'fmcli/src/main/resources',
resources = glob(['fmcli/src/main/resources/**']),
)
java_test(
name = 'fmcli-tests',
srcs = glob(['fmcli/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':fmcli'],
source_under_test = [':fmcli'],
)
java_library(
name = 'fmgui',
srcs = glob(['fmgui/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'fmgui/src/main/resources',
resources = glob(['fmgui/src/main/resources/**']),
)
java_test(
name = 'fmgui-tests',
srcs = glob(['fmgui/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':fmgui'],
source_under_test = [':fmgui'],
)
java_library(
name = 'fmmgr',
srcs = glob(['fmmgr/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'fmmgr-tests',
srcs = glob(['fmmgr/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':fmmgr'],
source_under_test = [':fmmgr'],
)
java_library(
name = 'fmweb',
srcs = glob(['fmweb/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'fmweb-tests',
srcs = glob(['fmweb/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':fmweb'],
source_under_test = [':fmweb'],
resources_root = 'fmweb/src/test/resources',
resources = glob(['fmweb/src/test/resources/**']),
)