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 | CURRENT_NAME = 'onos-gui' |
| 5 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 6 | |
| 7 | COMPILE_DEPS = [ |
| 8 | '//lib:CORE_DEPS', |
| 9 | '//lib:javax.ws.rs-api', |
| 10 | '//lib:servlet-api', |
| 11 | '//lib:jetty-websocket', |
| 12 | '//lib:jetty-util', |
| 13 | '//lib:jersey-media-multipart', |
| 14 | '//incubator/api:onos-incubator-api', |
| 15 | '//incubator/net:onos-incubator-net', |
| 16 | '//utils/rest:onlab-rest', |
| 17 | '//core/store/serializers:onos-core-serializers', |
| 18 | ] |
| 19 | |
| 20 | TEST_DEPS = [ |
| 21 | '//lib:TEST', |
| 22 | ] |
| 23 | |
| 24 | java_library( |
| 25 | name = CURRENT_NAME, |
| 26 | srcs = glob([SRC + '/*.java']), |
| 27 | deps = COMPILE_DEPS, |
| 28 | visibility = ['PUBLIC'], |
| 29 | resources_root = 'src/main/resources', |
| 30 | resources = glob(['src/main/resources/**']), |
| 31 | ) |
| 32 | |
| 33 | java_test( |
| 34 | name = 'tests', |
| 35 | srcs = glob([TEST + '/*.java']), |
| 36 | deps = COMPILE_DEPS + |
| 37 | TEST_DEPS + |
| 38 | [CURRENT_TARGET], |
| 39 | source_under_test = [CURRENT_TARGET], |
| 40 | ) |