blob: 77dba5a99a7e2315bbcd5fddca7a45b9ef3c4e55 [file] [log] [blame]
Ray Milkeyddec7942016-04-05 10:32:18 -07001SRC = 'src/main/java/org/onosproject/**/'
Brian O'Connor85f28d02016-04-05 20:31:18 -07002TEST = 'src/test/java/org/onosproject/**/'
Ray Milkeyddec7942016-04-05 10:32:18 -07003
4COMPILE_DEPS = [
5 '//lib:CORE_DEPS',
6 '//lib:netty-buffer',
Ray Milkeyddec7942016-04-05 10:32:18 -07007]
8
9TEST_DEPS = [
10 '//lib:TEST',
11]
12
13java_library(
14 name = 'onos-isis',
15 visibility = ['PUBLIC'],
16 deps = [':onos-isis-api',
17 ':onos-isis-isisio',
18 ],
19)
20
21# onos-isis-api
22
Brian O'Connorb86c9202016-04-05 20:15:04 -070023osgi_jar(
Ray Milkeyddec7942016-04-05 10:32:18 -070024 name = 'onos-isis-api',
25 srcs = glob(['api/' + SRC + '*.java']),
26 deps = COMPILE_DEPS,
27 visibility = ['PUBLIC'],
28)
29
30java_test(
31 name = 'onos-isis-api-tests',
32 srcs = glob(['api/' + TEST + '*.java']),
33 deps = COMPILE_DEPS +
34 TEST_DEPS +
35 [':onos-isis-api'],
36 source_under_test = [':onos-isis-api'],
37)
38
39# onos-isis-isisio
40
Brian O'Connorb86c9202016-04-05 20:15:04 -070041osgi_jar(
Ray Milkeyddec7942016-04-05 10:32:18 -070042 name = 'onos-isis-isisio',
43 srcs = glob(['isisio/' + SRC + '*.java']),
44 deps = COMPILE_DEPS + [':onos-isis-api'],
45 visibility = ['PUBLIC'],
46)
47
48java_test(
49 name = 'onos-isis-isisio-tests',
50 srcs = glob(['isisio/' + TEST + '*.java']),
51 deps = COMPILE_DEPS +
52 TEST_DEPS +
53 [':onos-isis-isisio'],
54 source_under_test = [':onos-isis-isisio'],
55)
56