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-of-ctl' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:CORE_DEPS', |
| 8 | '//lib:openflowj', |
| 9 | '//protocols/openflow/api:onos-of-api' |
| 10 | ] |
| 11 | |
| 12 | TEST_DEPS = [ |
| 13 | '//lib:TEST', |
| 14 | '//core/api:onos-api-tests', |
| 15 | ] |
| 16 | |
Brian O'Connor | b86c920 | 2016-04-05 20:15:04 -0700 | [diff] [blame] | 17 | osgi_jar( |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 18 | name = CURRENT_NAME, |
| 19 | srcs = glob([SRC + '/*.java']), |
| 20 | deps = COMPILE_DEPS, |
| 21 | visibility = ['PUBLIC'], |
| 22 | ) |
| 23 | |
| 24 | java_test( |
| 25 | name = 'tests', |
| 26 | srcs = glob([TEST + '/*.java']), |
| 27 | deps = COMPILE_DEPS + |
| 28 | TEST_DEPS + |
| 29 | [CURRENT_TARGET], |
| 30 | source_under_test = [CURRENT_TARGET], |
| 31 | ) |