blob: 74933603f400359bac3b6d8936352b728a090b22 [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 '//incubator/api:onos-incubator-api-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080021]
22
23java_library(
24 name = 'onos-app-fm',
25 visibility = ['PUBLIC'],
26 deps = [':fmcli', ':fmgui', ':fmmgr', ':fmweb'],
27)
28
29java_library(
30 name = 'fmcli',
31 srcs = glob(['fmcli/' + SRC + '*.java']),
32 deps = COMPILE_DEPS,
33 visibility = ['PUBLIC'],
34 resources_root = 'fmcli/src/main/resources',
35 resources = glob(['fmcli/src/main/resources/**']),
36)
37
38java_test(
39 name = 'fmcli-tests',
40 srcs = glob(['fmcli/' + TEST + '*.java']),
41 deps = COMPILE_DEPS +
42 TEST_DEPS +
43 [':fmcli'],
44 source_under_test = [':fmcli'],
45)
46
47java_library(
48 name = 'fmgui',
49 srcs = glob(['fmgui/' + SRC + '*.java']),
50 deps = COMPILE_DEPS,
51 visibility = ['PUBLIC'],
52 resources_root = 'fmgui/src/main/resources',
53 resources = glob(['fmgui/src/main/resources/**']),
54)
55
56java_test(
57 name = 'fmgui-tests',
58 srcs = glob(['fmgui/' + TEST + '*.java']),
59 deps = COMPILE_DEPS +
60 TEST_DEPS +
61 [':fmgui'],
62 source_under_test = [':fmgui'],
63)
64
65java_library(
66 name = 'fmmgr',
67 srcs = glob(['fmmgr/' + SRC + '*.java']),
68 deps = COMPILE_DEPS,
69 visibility = ['PUBLIC'],
70)
71
72java_test(
73 name = 'fmmgr-tests',
74 srcs = glob(['fmmgr/' + TEST + '*.java']),
75 deps = COMPILE_DEPS +
76 TEST_DEPS +
77 [':fmmgr'],
78 source_under_test = [':fmmgr'],
79)
80
81java_library(
82 name = 'fmweb',
83 srcs = glob(['fmweb/' + SRC + '*.java']),
84 deps = COMPILE_DEPS,
85 visibility = ['PUBLIC'],
86)
87
88java_test(
89 name = 'fmweb-tests',
90 srcs = glob(['fmweb/' + TEST + '*.java']),
91 deps = COMPILE_DEPS +
92 TEST_DEPS +
93 [':fmweb'],
94 source_under_test = [':fmweb'],
95 resources_root = 'fmweb/src/test/resources',
96 resources = glob(['fmweb/src/test/resources/**']),
97)