Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
| 2 | TEST = 'src/main/java/org/onosproject/**/' |
| 3 | |
| 4 | CURRENT_NAME = 'onos-ovsdb-provider-tunnel' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//protocols/ovsdb/api:onos-ovsdb-api', |
| 10 | '//protocols/ovsdb/rfc:onos-ovsdb-rfc', |
| 11 | '//incubator/api:onos-incubator-api', |
| 12 | ] |
| 13 | |
| 14 | TEST_DEPS = [ |
| 15 | '//lib:TEST', |
| 16 | ] |
| 17 | |
| 18 | java_library( |
| 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 | ) |