Ray Milkey | 5a9f58b | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
Brian O'Connor | f4a813c | 2016-04-05 20:31:18 -0700 | [diff] [blame^] | 2 | TEST = 'src/test/java/org/onosproject/**/' |
Ray Milkey | 5a9f58b | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 3 | |
| 4 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//lib:javax.ws.rs-api', |
| 7 | '//lib:jersey-client', |
| 8 | '//lib:org.apache.karaf.shell.console', |
| 9 | '//utils/rest:onlab-rest', |
| 10 | '//cli:onos-cli', |
| 11 | '//core/store/serializers:onos-core-serializers', |
| 12 | ] |
| 13 | |
| 14 | TEST_DEPS = [ |
| 15 | '//lib:TEST', |
| 16 | ] |
| 17 | |
| 18 | java_library( |
| 19 | name = 'onos-app-olt-api', |
| 20 | srcs = glob(['api/' + SRC + '*.java']), |
| 21 | deps = COMPILE_DEPS, |
| 22 | visibility = ['PUBLIC'], |
| 23 | ) |
| 24 | |
| 25 | java_test( |
| 26 | name = 'onos-app-olt-api-tests', |
| 27 | srcs = glob([TEST + 'api/*.java']), |
| 28 | deps = COMPILE_DEPS + |
| 29 | TEST_DEPS + |
| 30 | [':onos-app-olt-api'], |
| 31 | source_under_test = [':onos-app-olt-api'], |
| 32 | ) |
| 33 | |
| 34 | java_library( |
| 35 | name = 'onos-app-olt-app', |
| 36 | srcs = glob(['app/' + SRC + '*.java']), |
| 37 | deps = COMPILE_DEPS + [':onos-app-olt-api'], |
| 38 | visibility = ['PUBLIC'], |
| 39 | ) |
| 40 | |
| 41 | java_test( |
| 42 | name = 'onos-app-olt-app-tests', |
| 43 | srcs = glob([TEST + 'app/*.java']), |
| 44 | deps = COMPILE_DEPS + |
| 45 | TEST_DEPS + |
| 46 | [':onos-app-olt-api', ':onos-app-olt-app'], |
| 47 | source_under_test = [':onos-app-olt-app'], |
| 48 | ) |