blob: 2b41c08004d4107c5904aa5e556f00375f33f5f1 [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 '//cli:onos-cli',
8 '//utils/rest:onlab-rest',
9 '//lib:javax.ws.rs-api',
10 '//core/store/serializers:onos-core-serializers',
11 '//incubator/api:onos-incubator-api',
12]
13
14TEST_DEPS = [
15 '//lib:TEST',
16]
17
18java_library(
19 name = 'onos-app-vtn',
20 visibility = ['PUBLIC'],
21 deps = [':onos-app-sfc-mgr',
22 ':onos-app-vtn-mgr',
23 ':onos-app-vtn-rsc',
24 ':onos-app-vtn-web',
25 ],
26)
27
28# sfcmgr
29
30java_library(
31 name = 'onos-app-sfc-mgr',
32 srcs = glob(['sfcmgr/' + SRC + '*.java']),
33 deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
34 visibility = ['PUBLIC'],
35)
36
37java_test(
38 name = 'onos-app-sfc-mgr-tests',
39 srcs = glob(['sfcmgr/' + TEST + '*.java']),
40 deps = COMPILE_DEPS +
41 TEST_DEPS +
42 [':onos-app-sfc-mgr', ':onos-app-vtn-rsc'],
43 source_under_test = [':onos-app-sfc-mgr'],
44)
45
46# vtnmgr
47
48java_library(
49 name = 'onos-app-vtn-mgr',
50 srcs = glob(['vtnmgr/' + SRC + '*.java']),
51 deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
52 visibility = ['PUBLIC'],
53 resources_root = 'vtnmgr/src/main/resources',
54 resources = glob(['vtnmgr/src/main/resources/**']),
55)
56
57java_test(
58 name = 'onos-app-vtn-mgr-tests',
59 srcs = glob(['vtnmgr/' + TEST + '*.java']),
60 deps = COMPILE_DEPS +
61 TEST_DEPS +
62 [':onos-app-vtn-mgr', ':onos-app-vtn-rsc'],
63 source_under_test = [':onos-app-vtn-mgr'],
64)
65
66# vtnrsc
67
68java_library(
69 name = 'onos-app-vtn-rsc',
70 srcs = glob(['vtnrsc/' + SRC + '*.java']),
71 deps = COMPILE_DEPS,
72 visibility = ['PUBLIC'],
73 resources_root = 'vtnrsc/src/main/resources',
74 resources = glob(['vtnrsc/src/main/resources/**']),
75)
76
77java_test(
78 name = 'onos-app-vtn-rsc-tests',
79 srcs = glob(['vtnrsc/' + TEST + '*.java']),
80 deps = COMPILE_DEPS +
81 TEST_DEPS +
82 [':onos-app-vtn-rsc'],
83 source_under_test = [':onos-app-vtn-rsc'],
84)
85
86# vtnweb
87
88java_library(
89 name = 'onos-app-vtn-web',
90 srcs = glob(['vtnweb/' + SRC + '*.java']),
91 deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
92 visibility = ['PUBLIC'],
93)
94
95java_test(
96 name = 'onos-app-vtn-web-tests',
97 srcs = glob(['vtnweb/' + TEST + '*.java']),
98 deps = COMPILE_DEPS +
99 TEST_DEPS +
100 [':onos-app-vtn-web', ':onos-app-vtn-rsc'],
101 source_under_test = [':onos-app-vtn-web'],
102 resources_root = 'vtnweb/src/test/resources',
103 resources = glob(['vtnweb/src/test/resources/**']),
104)