blob: 0c83b08f79c4e118a2d63253b4fedabbfa7c3a10 [file] [log] [blame]
Andrea Campanellac2d754b2016-03-29 17:51:07 -07001SRC = 'src/main/java/org/onosproject/**/'
2TEST = 'src/test/java/org/onosproject/**/'
3CURRENT_NAME = 'onos-snmp-ctl'
4CURRENT_TARGET = ':' + CURRENT_NAME
5
6COMPILE_DEPS = [
7 '//lib:CORE_DEPS',
8 '//incubator/api:onos-incubator-api',
9 '//protocols/snmp/api:onos-snmp-api',
10 '//lib:org.apache.servicemix.bundles.snmp4j',
11 '//lib:snmp-core',
12 '//lib:bti7000',
13 '//lib:mibs-net-snmp',
14 '//lib:mibs-rfc',
15]
16
17TEST_DEPS = [
18 '//lib:TEST',
19]
20
21java_library(
22 name = CURRENT_NAME,
23 srcs = glob([SRC + '/*.java']),
24 deps = COMPILE_DEPS,
25 visibility = ['PUBLIC'],
26)
27
28java_test(
29 name = 'tests',
30 srcs = glob([TEST + '/*.java']),
31 deps = COMPILE_DEPS +
32 TEST_DEPS +
33 [CURRENT_TARGET],
34 source_under_test = [CURRENT_TARGET],
35)