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