Ray Milkey | ddec794 | 2016-04-05 10:32:18 -0700 | [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 | ddec794 | 2016-04-05 10:32:18 -0700 | [diff] [blame] | 3 | |
| 4 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//lib:netty-buffer', |
Ray Milkey | ddec794 | 2016-04-05 10:32:18 -0700 | [diff] [blame] | 7 | ] |
| 8 | |
| 9 | TEST_DEPS = [ |
| 10 | '//lib:TEST', |
| 11 | ] |
| 12 | |
| 13 | java_library( |
| 14 | name = 'onos-isis', |
| 15 | visibility = ['PUBLIC'], |
| 16 | deps = [':onos-isis-api', |
| 17 | ':onos-isis-isisio', |
| 18 | ], |
| 19 | ) |
| 20 | |
| 21 | # onos-isis-api |
| 22 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 23 | osgi_jar( |
Ray Milkey | ddec794 | 2016-04-05 10:32:18 -0700 | [diff] [blame] | 24 | name = 'onos-isis-api', |
| 25 | srcs = glob(['api/' + SRC + '*.java']), |
| 26 | deps = COMPILE_DEPS, |
| 27 | visibility = ['PUBLIC'], |
| 28 | ) |
| 29 | |
| 30 | java_test( |
| 31 | name = 'onos-isis-api-tests', |
| 32 | srcs = glob(['api/' + TEST + '*.java']), |
| 33 | deps = COMPILE_DEPS + |
| 34 | TEST_DEPS + |
| 35 | [':onos-isis-api'], |
| 36 | source_under_test = [':onos-isis-api'], |
| 37 | ) |
| 38 | |
| 39 | # onos-isis-isisio |
| 40 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 41 | osgi_jar( |
Ray Milkey | ddec794 | 2016-04-05 10:32:18 -0700 | [diff] [blame] | 42 | name = 'onos-isis-isisio', |
| 43 | srcs = glob(['isisio/' + SRC + '*.java']), |
| 44 | deps = COMPILE_DEPS + [':onos-isis-api'], |
| 45 | visibility = ['PUBLIC'], |
| 46 | ) |
| 47 | |
| 48 | java_test( |
| 49 | name = 'onos-isis-isisio-tests', |
| 50 | srcs = glob(['isisio/' + TEST + '*.java']), |
| 51 | deps = COMPILE_DEPS + |
| 52 | TEST_DEPS + |
| 53 | [':onos-isis-isisio'], |
| 54 | source_under_test = [':onos-isis-isisio'], |
| 55 | ) |
| 56 | |