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-app-cordvtn' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//lib:org.apache.karaf.shell.console', |
| 10 | '//lib:javax.ws.rs-api', |
| 11 | '//lib:jsch', |
| 12 | '//utils/rest:onlab-rest', |
| 13 | '//cli:onos-cli', |
| 14 | '//core/store/serializers:onos-core-serializers', |
| 15 | '//apps/openstackinterface:onos-app-openstackinterface-api', |
| 16 | '//apps/dhcp/api:onos-app-dhcp-api', |
| 17 | '//protocols/ovsdb/api:onos-ovsdb-api', |
| 18 | '//protocols/ovsdb/rfc:onos-ovsdb-rfc', |
| 19 | ] |
| 20 | |
| 21 | TEST_DEPS = [ |
| 22 | '//lib:TEST', |
| 23 | ] |
| 24 | |
| 25 | java_library( |
| 26 | name = CURRENT_NAME, |
| 27 | srcs = glob([SRC + '/*.java']), |
| 28 | deps = COMPILE_DEPS, |
| 29 | visibility = ['PUBLIC'], |
| 30 | resources_root = 'src/main/resources', |
| 31 | resources = glob(['src/main/resources/**']), |
| 32 | ) |
| 33 | |
| 34 | java_test( |
| 35 | name = 'tests', |
| 36 | srcs = glob([TEST + '/*.java']), |
| 37 | deps = COMPILE_DEPS + |
| 38 | TEST_DEPS + |
| 39 | [CURRENT_TARGET], |
| 40 | source_under_test = [CURRENT_TARGET], |
| 41 | ) |