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-primitives' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//core/common:onos-core-common', |
| 9 | '//incubator/api:onos-incubator-api', |
| 10 | '//core/store/serializers:onos-core-serializers', |
| 11 | '//lib:copycat-client', |
| 12 | '//lib:copycat-server', |
| 13 | '//lib:copycat-protocol', |
| 14 | '//lib:copycat-core', |
| 15 | '//lib:typesafe-config', |
| 16 | '//lib:copycat-api', |
| 17 | '//lib:copycat-state-machine', |
| 18 | '//lib:copycat-state-log', |
| 19 | '//lib:catalyst-transport', |
| 20 | '//lib:catalyst-buffer', |
| 21 | '//lib:catalyst-common', |
| 22 | '//lib:catalyst-local', |
| 23 | '//lib:catalyst-serializer', |
| 24 | '//lib:atomix', |
| 25 | '//lib:atomix-resource', |
| 26 | '//lib:atomix-variables', |
| 27 | '//lib:atomix-resource-manager', |
| 28 | ] |
| 29 | |
| 30 | TEST_DEPS = [ |
| 31 | '//lib:TEST', |
| 32 | '//core/api:onos-api-tests', |
| 33 | ] |
| 34 | |
| 35 | java_library( |
| 36 | name = CURRENT_NAME, |
| 37 | srcs = glob([SRC + '/*.java']), |
| 38 | deps = COMPILE_DEPS, |
| 39 | visibility = ['PUBLIC'], |
| 40 | ) |
| 41 | |
| 42 | java_test( |
| 43 | name = 'tests', |
| 44 | srcs = glob([TEST + '/*.java']), |
| 45 | deps = COMPILE_DEPS + |
| 46 | TEST_DEPS + |
| 47 | [CURRENT_TARGET], |
| 48 | source_under_test = [CURRENT_TARGET], |
| 49 | ) |