Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
Brian O'Connor | 85f28d0 | 2016-04-05 20:31:18 -0700 | [diff] [blame] | 2 | TEST = 'src/test/java/org/onosproject/**/' |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 3 | |
| 4 | CURRENT_NAME = 'onos-lldp-provider' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//providers/lldpcommon:onos-lldp-provider-common', |
| 10 | ] |
| 11 | |
| 12 | TEST_DEPS = [ |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 13 | '//lib:TEST_ADAPTERS', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 14 | ] |
| 15 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 16 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 17 | name = CURRENT_NAME, |
| 18 | srcs = glob([SRC + '/*.java']), |
| 19 | deps = COMPILE_DEPS, |
| 20 | visibility = ['PUBLIC'], |
| 21 | ) |
| 22 | |
| 23 | java_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 | ) |