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-dist' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//core/common:onos-core-common', |
| 9 | '//utils/rest:onlab-rest', |
| 10 | '//core/store/serializers:onos-core-serializers', |
| 11 | '//lib:netty-transport', |
| 12 | '//lib:netty-codec', |
| 13 | '//lib:netty-buffer', |
| 14 | '//lib:netty-handler', |
| 15 | '//lib:netty-transport-native-epoll', |
| 16 | '//lib:commons-math3', |
| 17 | ] |
| 18 | |
| 19 | TEST_DEPS = [ |
| 20 | '//lib:TEST', |
| 21 | '//core/api:onos-api-tests', |
| 22 | '//core/common:onos-core-common-tests', |
| 23 | ] |
| 24 | |
| 25 | java_library( |
| 26 | name = CURRENT_NAME, |
| 27 | srcs = glob([SRC + '/*.java']), |
| 28 | deps = COMPILE_DEPS, |
| 29 | visibility = ['PUBLIC'], |
| 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 | ) |