Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onosproject/**/' |
Brian O'Connor | 85f28d0 | 2016-04-05 20:31:18 -0700 | [diff] [blame] | 2 | TEST = 'src/test/java/org/onosproject/**/' |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 3 | |
| 4 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//lib:jersey-client', |
| 7 | '//lib:javax.ws.rs-api', |
Ray Milkey | f9a7697 | 2016-04-12 09:47:12 -0700 | [diff] [blame] | 8 | '//apps/openstackinterface:onos-apps-openstackinterface-api', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 9 | '//core/store/serializers:onos-core-serializers', |
| 10 | ] |
| 11 | |
| 12 | java_library( |
| 13 | name = 'onos-app-openstacknetworking', |
| 14 | visibility = ['PUBLIC'], |
| 15 | deps = [ |
| 16 | ':onos-app-openstacknetworking-api', |
| 17 | ':onos-app-openstacknetworking-app', |
| 18 | ':onos-app-openstackrouting', |
| 19 | ':onos-app-openstackswitching', |
| 20 | ':onos-app-openstacknetworking-web', |
| 21 | ] |
| 22 | ) |
| 23 | |
| 24 | TEST_DEPS = [ |
| 25 | '//lib:TEST', |
| 26 | ':onos-app-openstacknetworking', |
| 27 | ] |
| 28 | |
| 29 | java_library( |
| 30 | name = 'onos-app-openstacknetworking-api', |
| 31 | srcs = glob(['api/' + SRC + '*.java']), |
| 32 | deps = COMPILE_DEPS, |
| 33 | visibility = ['PUBLIC'], |
| 34 | ) |
| 35 | |
| 36 | java_test( |
| 37 | name = 'onos-app-openstacknetworking-api-tests', |
| 38 | srcs = glob([TEST + 'api/*.java']), |
| 39 | deps = COMPILE_DEPS + |
| 40 | TEST_DEPS, |
| 41 | source_under_test = [':onos-app-openstacknetworking-api'], |
| 42 | ) |
| 43 | |
| 44 | java_library( |
| 45 | name = 'onos-app-openstacknetworking-app', |
| 46 | srcs = glob(['app/' + SRC + '*.java']), |
| 47 | deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], |
| 48 | visibility = ['PUBLIC'], |
| 49 | ) |
| 50 | |
| 51 | java_test( |
| 52 | name = 'onos-app-openstacknetworking-app-tests', |
| 53 | srcs = glob([TEST + 'app/*.java']), |
| 54 | deps = COMPILE_DEPS + |
| 55 | TEST_DEPS, |
| 56 | source_under_test = [':onos-app-openstacknetworking-app'], |
| 57 | ) |
| 58 | |
| 59 | java_library( |
| 60 | name = 'onos-app-openstackrouting', |
| 61 | srcs = glob(['openstackrouting/' + SRC + '*.java']), |
| 62 | deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], |
| 63 | visibility = ['PUBLIC'], |
| 64 | ) |
| 65 | |
| 66 | java_test( |
| 67 | name = 'onos-app-openstackrouting-tests', |
| 68 | srcs = glob([TEST + 'openstackrouting/*.java']), |
| 69 | deps = COMPILE_DEPS + |
| 70 | TEST_DEPS, |
| 71 | source_under_test = [':onos-app-openstackrouting'], |
| 72 | ) |
| 73 | |
| 74 | java_library( |
| 75 | name = 'onos-app-openstackswitching', |
| 76 | srcs = glob(['openstgackswitching/' + SRC + '*.java']), |
| 77 | deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], |
| 78 | visibility = ['PUBLIC'], |
| 79 | ) |
| 80 | |
| 81 | java_test( |
| 82 | name = 'onos-app-openstackswitching-tests', |
| 83 | srcs = glob([TEST + 'openstackswitching/*.java']), |
| 84 | deps = COMPILE_DEPS + |
| 85 | TEST_DEPS, |
| 86 | source_under_test = [':onos-app-openstackswitching'], |
| 87 | ) |
| 88 | |
| 89 | java_library( |
| 90 | name = 'onos-app-openstacknetworking-web', |
| 91 | srcs = glob(['openstgacknetworking/' + SRC + '*.java']), |
| 92 | deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'], |
| 93 | visibility = ['PUBLIC'], |
| 94 | ) |
| 95 | |
| 96 | java_test( |
| 97 | name = 'onos-app-openstacknetworking-web-tests', |
| 98 | srcs = glob([TEST + 'openstackswitching/*.java']), |
| 99 | deps = COMPILE_DEPS + |
| 100 | TEST_DEPS, |
| 101 | source_under_test = [':onos-app-openstacknetworking-web'], |
| 102 | ) |