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