Ray Milkey | ddec794 | 2016-04-05 10:32:18 -0700 | [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:netty-buffer', |
| 7 | #'//lib:netty-' |
| 8 | #'//lib:org.apache.karaf.shell.console', |
| 9 | #'//cli:onos-cli', |
| 10 | #'//utils/rest:onlab-rest', |
| 11 | #'//lib:javax.ws.rs-api', |
| 12 | #'//core/store/serializers:onos-core-serializers', |
| 13 | #'//incubator/api:onos-incubator-api', |
| 14 | ] |
| 15 | |
| 16 | TEST_DEPS = [ |
| 17 | '//lib:TEST', |
| 18 | ] |
| 19 | |
| 20 | java_library( |
| 21 | name = 'onos-isis', |
| 22 | visibility = ['PUBLIC'], |
| 23 | deps = [':onos-isis-api', |
| 24 | ':onos-isis-isisio', |
| 25 | ], |
| 26 | ) |
| 27 | |
| 28 | # onos-isis-api |
| 29 | |
| 30 | java_library( |
| 31 | name = 'onos-isis-api', |
| 32 | srcs = glob(['api/' + SRC + '*.java']), |
| 33 | deps = COMPILE_DEPS, |
| 34 | visibility = ['PUBLIC'], |
| 35 | ) |
| 36 | |
| 37 | java_test( |
| 38 | name = 'onos-isis-api-tests', |
| 39 | srcs = glob(['api/' + TEST + '*.java']), |
| 40 | deps = COMPILE_DEPS + |
| 41 | TEST_DEPS + |
| 42 | [':onos-isis-api'], |
| 43 | source_under_test = [':onos-isis-api'], |
| 44 | ) |
| 45 | |
| 46 | # onos-isis-isisio |
| 47 | |
| 48 | java_library( |
| 49 | name = 'onos-isis-isisio', |
| 50 | srcs = glob(['isisio/' + SRC + '*.java']), |
| 51 | deps = COMPILE_DEPS + [':onos-isis-api'], |
| 52 | visibility = ['PUBLIC'], |
| 53 | ) |
| 54 | |
| 55 | java_test( |
| 56 | name = 'onos-isis-isisio-tests', |
| 57 | srcs = glob(['isisio/' + TEST + '*.java']), |
| 58 | deps = COMPILE_DEPS + |
| 59 | TEST_DEPS + |
| 60 | [':onos-isis-isisio'], |
| 61 | source_under_test = [':onos-isis-isisio'], |
| 62 | ) |
| 63 | |