blob: b725adf8a04e7c0f87eb0dcf7ab97510c157dfb5 [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
4CURRENT_NAME = 'onos-app-routing'
5CURRENT_TARGET = ':' + CURRENT_NAME
6
7COMPILE_DEPS = [
8 '//lib:CORE_DEPS',
9 '//lib:org.apache.karaf.shell.console',
10 '//lib:concurrent-trees',
11 '//cli:onos-cli',
12 '//incubator/api:onos-incubator-api',
13 '//apps/routing-api:onos-app-routing-api',
14 '//core/common:onos-core-common',
15]
16
17TEST_DEPS = [
Ray Milkey7c251822016-04-06 17:38:25 -070018 '//lib:TEST_ADAPTERS',
19 '//incubator/api:onos-incubator-api-tests',
20 '//apps/routing-api:onos-app-routing-api-tests',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080021]
22
23java_library(
24 name = CURRENT_NAME,
25 srcs = glob([SRC + '/*.java']),
26 deps = COMPILE_DEPS,
27 visibility = ['PUBLIC'],
28 resources_root = 'src/main/resources',
29 resources = glob(['src/main/resources/**']),
30)
31
32java_test(
33 name = 'tests',
34 srcs = glob([TEST + '/*.java']),
35 deps = COMPILE_DEPS +
36 TEST_DEPS +
37 [CURRENT_TARGET],
38 source_under_test = [CURRENT_TARGET],
39)