Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame^] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
| 2 | TEST = 'src/test/java/org/onosproject/**/' |
| 3 | CURRENT_NAME = 'onos-core-common' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | SRC_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//incubator/api:onos-incubator-api', |
| 9 | ] |
| 10 | |
| 11 | TEST_DEPS = [ |
| 12 | '//lib:TEST', |
| 13 | '//core/api:onos-api-tests', |
| 14 | ] |
| 15 | |
| 16 | java_library( |
| 17 | name = CURRENT_NAME, |
| 18 | srcs = glob([SRC + '/*.java']), |
| 19 | deps = SRC_DEPS, |
| 20 | visibility = ['PUBLIC'], |
| 21 | ) |
| 22 | |
| 23 | java_test( |
| 24 | name = 'onos-core-common-tests', |
| 25 | visibility = ['PUBLIC'], |
| 26 | srcs = glob([TEST + '/*.java']), |
| 27 | resources_root = 'src/test/resources', |
| 28 | resources = glob(['src/test/resources/**']), |
| 29 | deps = SRC_DEPS + |
| 30 | TEST_DEPS + |
| 31 | [CURRENT_TARGET], |
| 32 | source_under_test = [CURRENT_TARGET], |
| 33 | ) |