Brian O'Connor | 42c38cf | 2016-04-05 17:05:57 -0700 | [diff] [blame] | 1 | SRC = 'src/main/java/org/onlab/**/' |
| 2 | TEST = 'src/test/java/org/onlab/**/' |
| 3 | CURRENT_NAME = 'onlab-osgiwrap' |
| 4 | CURRENT_TARGET = ':' + CURRENT_NAME |
| 5 | |
| 6 | COMPILE_DEPS = [ |
| 7 | '//lib:guava', |
| 8 | '//lib:bndlib', |
| 9 | '//lib:org.apache.felix.scr.bnd' |
| 10 | ] |
| 11 | |
| 12 | |
| 13 | java_library( |
| 14 | name = CURRENT_NAME, |
| 15 | #maven_coords = 'org.onosproject:' + CURRENT_NAME + ':' + '1.2.3', |
| 16 | srcs = glob([SRC + '/*.java']), |
| 17 | deps = COMPILE_DEPS, |
| 18 | visibility = ['PUBLIC'], |
| 19 | ) |
| 20 | |
| 21 | java_binary( |
| 22 | name = 'osgi-jar', |
| 23 | deps = COMPILE_DEPS + [ ':' + CURRENT_NAME ], |
| 24 | main_class = 'org.onlab.OSGiWrapper', |
| 25 | visibility = [ 'PUBLIC' ] |
| 26 | ) |