blob: df0e85b7a1c0a9b73f31bccfc49a03b537291e1c [file] [log] [blame]
Ray Milkeyf80bbb22016-03-11 10:16:22 -08001SRC = 'src/main/java/org/onosproject/**/'
2TEST = 'src/test/java/org/onosproject/**/'
3CURRENT_NAME = 'onos-ospf-ctl'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//protocols/ospf/api:onos-ospf-api',
9 '//protocols/ospf/protocol:onos-ospf-protocol',
10]
11
12TEST_DEPS = [
13 '//lib:TEST',
14]
15
16java_library(
17 name = CURRENT_NAME,
18 srcs = glob([SRC + '/*.java']),
19 deps = COMPILE_DEPS,
20 visibility = ['PUBLIC'],
21)
22
23java_test(
24 name = 'tests',
25 srcs = glob([TEST + '/*.java']),
26 deps = COMPILE_DEPS +
27 TEST_DEPS +
28 [CURRENT_TARGET],
29 source_under_test = [CURRENT_TARGET],
30)