Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/incubator/net/**/' |
Brian O'Connor | 85f28d0 | 2016-04-05 20:31:18 -0700 | [diff] [blame] | 2 | TEST = 'src/test/java/org/onosproject/incubator/net/**/' |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 3 | CURRENT_NAME = 'onos-incubator-net' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//incubator/api:onos-incubator-api', |
| 9 | ] |
| 10 | |
| 11 | TEST_DEPS = [ |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 12 | '//lib:TEST_ADAPTERS', |
| 13 | '//core/api:onos-api-tests', |
| 14 | '//core/common:onos-core-common-tests', |
| 15 | '//incubator/store:onos-incubator-store', |
| 16 | '//core/store/serializers:onos-core-serializers', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 17 | ] |
| 18 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 19 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 20 | name = CURRENT_NAME, |
| 21 | srcs = glob([SRC + '/*.java']), |
| 22 | deps = COMPILE_DEPS, |
| 23 | visibility = ['PUBLIC'], |
| 24 | ) |
| 25 | |
| 26 | java_test( |
| 27 | name = 'tests', |
| 28 | srcs = glob([TEST + '/*.java']), |
| 29 | deps = COMPILE_DEPS + |
| 30 | TEST_DEPS + |
| 31 | [CURRENT_TARGET], |
| 32 | source_under_test = [CURRENT_TARGET], |
| 33 | ) |