blob: 375ceff4438a34524ca152f5e17544cb11c2b0f8 [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:org.apache.karaf.shell.console',
7 '//incubator/api:onos-incubator-api',
8 '//cli:onos-cli',
9 '//utils/rest:onlab-rest',
10 '//lib:javax.ws.rs-api',
Andrea Campanella637c8072016-04-12 17:29:17 -070011 '//utils/osgi:onlab-osgi',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080012]
13
14TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070015 '//lib:TEST_ADAPTERS',
16 '//lib:jersey-test-framework-core',
17 '//lib:jersey-test-framework-grizzly2',
18 '//utils/osgi:onlab-osgi-tests',
19 '//web/api:onos-rest-tests',
Andrea Campanella637c8072016-04-12 17:29:17 -070020 '//utils/osgi:onlab-osgi',
21 '//incubator/api:onos-incubator-api-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080022]
23
24java_library(
25 name = 'onos-app-fm',
26 visibility = ['PUBLIC'],
27 deps = [':fmcli', ':fmgui', ':fmmgr', ':fmweb'],
28)
29
30java_library(
31 name = 'fmcli',
32 srcs = glob(['fmcli/' + SRC + '*.java']),
33 deps = COMPILE_DEPS,
34 visibility = ['PUBLIC'],
35 resources_root = 'fmcli/src/main/resources',
36 resources = glob(['fmcli/src/main/resources/**']),
37)
38
39java_test(
40 name = 'fmcli-tests',
41 srcs = glob(['fmcli/' + TEST + '*.java']),
42 deps = COMPILE_DEPS +
43 TEST_DEPS +
44 [':fmcli'],
45 source_under_test = [':fmcli'],
46)
47
48java_library(
49 name = 'fmgui',
50 srcs = glob(['fmgui/' + SRC + '*.java']),
51 deps = COMPILE_DEPS,
52 visibility = ['PUBLIC'],
53 resources_root = 'fmgui/src/main/resources',
54 resources = glob(['fmgui/src/main/resources/**']),
55)
56
57java_test(
58 name = 'fmgui-tests',
59 srcs = glob(['fmgui/' + TEST + '*.java']),
60 deps = COMPILE_DEPS +
61 TEST_DEPS +
62 [':fmgui'],
63 source_under_test = [':fmgui'],
64)
65
66java_library(
67 name = 'fmmgr',
68 srcs = glob(['fmmgr/' + SRC + '*.java']),
69 deps = COMPILE_DEPS,
70 visibility = ['PUBLIC'],
71)
72
73java_test(
74 name = 'fmmgr-tests',
75 srcs = glob(['fmmgr/' + TEST + '*.java']),
76 deps = COMPILE_DEPS +
77 TEST_DEPS +
78 [':fmmgr'],
79 source_under_test = [':fmmgr'],
80)
81
82java_library(
83 name = 'fmweb',
84 srcs = glob(['fmweb/' + SRC + '*.java']),
85 deps = COMPILE_DEPS,
86 visibility = ['PUBLIC'],
87)
88
89java_test(
90 name = 'fmweb-tests',
91 srcs = glob(['fmweb/' + TEST + '*.java']),
92 deps = COMPILE_DEPS +
93 TEST_DEPS +
94 [':fmweb'],
95 source_under_test = [':fmweb'],
96 resources_root = 'fmweb/src/test/resources',
97 resources = glob(['fmweb/src/test/resources/**']),
98)