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