Andrea Campanella | c2d754b | 2016-03-29 17:51:07 -0700 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
| 2 | TEST = 'src/test/java/org/onosproject/**/' |
| 3 | CURRENT_NAME = 'onos-snmp-ctl' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_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 | |
| 17 | TEST_DEPS = [ |
| 18 | '//lib:TEST', |
| 19 | ] |
| 20 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame^] | 21 | osgi_jar( |
Andrea Campanella | c2d754b | 2016-03-29 17:51:07 -0700 | [diff] [blame] | 22 | name = CURRENT_NAME, |
| 23 | srcs = glob([SRC + '/*.java']), |
| 24 | deps = COMPILE_DEPS, |
| 25 | visibility = ['PUBLIC'], |
| 26 | ) |
| 27 | |
| 28 | java_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 | ) |