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 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//lib:jersey-client', |
| 7 | '//lib:javax.ws.rs-api', |
| 8 | ] |
| 9 | |
| 10 | TEST_DEPS = [ |
| 11 | '//lib:TEST', |
| 12 | ] |
| 13 | |
| 14 | java_library( |
| 15 | name = 'onos-app-openstackinterface-api', |
| 16 | srcs = glob(['api/' + SRC + '*.java']), |
| 17 | deps = COMPILE_DEPS, |
| 18 | visibility = ['PUBLIC'], |
| 19 | ) |
| 20 | |
| 21 | java_test( |
| 22 | name = 'onos-app-openstackinterface-api-tests', |
| 23 | srcs = glob([TEST + '/*.java']), |
| 24 | deps = COMPILE_DEPS + |
| 25 | TEST_DEPS + |
| 26 | [':onos-app-openstackinterface-api'], |
| 27 | source_under_test = [':onos-app-openstackinterface-api'], |
| 28 | ) |
| 29 | |
| 30 | java_library( |
| 31 | name = 'onos-app-openstackinterface-app', |
| 32 | srcs = glob(['app/' + SRC + '*.java']), |
| 33 | deps = COMPILE_DEPS + [':onos-app-openstackinterface-api'], |
| 34 | visibility = ['PUBLIC'], |
| 35 | ) |
| 36 | |
| 37 | java_test( |
| 38 | name = 'onos-app-openstackinterface-app-tests', |
| 39 | srcs = glob([TEST + '/*.java']), |
| 40 | deps = COMPILE_DEPS + |
| 41 | TEST_DEPS + |
| 42 | [':onos-app-openstackinterface-api', ':onos-app-openstackinterface-app'], |
| 43 | source_under_test = [':onos-app-openstackinterface-app'], |
| 44 | ) |