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-app-routing' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//lib:org.apache.karaf.shell.console', |
| 10 | '//lib:concurrent-trees', |
| 11 | '//cli:onos-cli', |
| 12 | '//incubator/api:onos-incubator-api', |
| 13 | '//apps/routing-api:onos-app-routing-api', |
| 14 | '//core/common:onos-core-common', |
| 15 | ] |
| 16 | |
| 17 | TEST_DEPS = [ |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame^] | 18 | '//lib:TEST_ADAPTERS', |
| 19 | '//incubator/api:onos-incubator-api-tests', |
| 20 | '//apps/routing-api:onos-app-routing-api-tests', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 21 | ] |
| 22 | |
| 23 | java_library( |
| 24 | name = CURRENT_NAME, |
| 25 | srcs = glob([SRC + '/*.java']), |
| 26 | deps = COMPILE_DEPS, |
| 27 | visibility = ['PUBLIC'], |
| 28 | resources_root = 'src/main/resources', |
| 29 | resources = glob(['src/main/resources/**']), |
| 30 | ) |
| 31 | |
| 32 | java_test( |
| 33 | name = 'tests', |
| 34 | srcs = glob([TEST + '/*.java']), |
| 35 | deps = COMPILE_DEPS + |
| 36 | TEST_DEPS + |
| 37 | [CURRENT_TARGET], |
| 38 | source_under_test = [CURRENT_TARGET], |
| 39 | ) |