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 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//lib:org.apache.karaf.shell.console', |
| 7 | '//incubator/api:onos-incubator-api', |
| 8 | '//cli:onos-cli', |
| 9 | '//utils/rest:onlab-rest', |
| 10 | '//lib:javax.ws.rs-api', |
Andrea Campanella | 637c807 | 2016-04-12 17:29:17 -0700 | [diff] [blame] | 11 | '//utils/osgi:onlab-osgi', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | TEST_DEPS = [ |
Ray Milkey | 7c25182 | 2016-04-06 17:38:25 -0700 | [diff] [blame] | 15 | '//lib:TEST_ADAPTERS', |
| 16 | '//lib:jersey-test-framework-core', |
| 17 | '//lib:jersey-test-framework-grizzly2', |
| 18 | '//utils/osgi:onlab-osgi-tests', |
| 19 | '//web/api:onos-rest-tests', |
Andrea Campanella | 637c807 | 2016-04-12 17:29:17 -0700 | [diff] [blame] | 20 | '//incubator/api:onos-incubator-api-tests', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 21 | ] |
| 22 | |
| 23 | java_library( |
| 24 | name = 'onos-app-fm', |
| 25 | visibility = ['PUBLIC'], |
| 26 | deps = [':fmcli', ':fmgui', ':fmmgr', ':fmweb'], |
| 27 | ) |
| 28 | |
| 29 | java_library( |
| 30 | name = 'fmcli', |
| 31 | srcs = glob(['fmcli/' + SRC + '*.java']), |
| 32 | deps = COMPILE_DEPS, |
| 33 | visibility = ['PUBLIC'], |
| 34 | resources_root = 'fmcli/src/main/resources', |
| 35 | resources = glob(['fmcli/src/main/resources/**']), |
| 36 | ) |
| 37 | |
| 38 | java_test( |
| 39 | name = 'fmcli-tests', |
| 40 | srcs = glob(['fmcli/' + TEST + '*.java']), |
| 41 | deps = COMPILE_DEPS + |
| 42 | TEST_DEPS + |
| 43 | [':fmcli'], |
| 44 | source_under_test = [':fmcli'], |
| 45 | ) |
| 46 | |
| 47 | java_library( |
| 48 | name = 'fmgui', |
| 49 | srcs = glob(['fmgui/' + SRC + '*.java']), |
| 50 | deps = COMPILE_DEPS, |
| 51 | visibility = ['PUBLIC'], |
| 52 | resources_root = 'fmgui/src/main/resources', |
| 53 | resources = glob(['fmgui/src/main/resources/**']), |
| 54 | ) |
| 55 | |
| 56 | java_test( |
| 57 | name = 'fmgui-tests', |
| 58 | srcs = glob(['fmgui/' + TEST + '*.java']), |
| 59 | deps = COMPILE_DEPS + |
| 60 | TEST_DEPS + |
| 61 | [':fmgui'], |
| 62 | source_under_test = [':fmgui'], |
| 63 | ) |
| 64 | |
| 65 | java_library( |
| 66 | name = 'fmmgr', |
| 67 | srcs = glob(['fmmgr/' + SRC + '*.java']), |
| 68 | deps = COMPILE_DEPS, |
| 69 | visibility = ['PUBLIC'], |
| 70 | ) |
| 71 | |
| 72 | java_test( |
| 73 | name = 'fmmgr-tests', |
| 74 | srcs = glob(['fmmgr/' + TEST + '*.java']), |
| 75 | deps = COMPILE_DEPS + |
| 76 | TEST_DEPS + |
| 77 | [':fmmgr'], |
| 78 | source_under_test = [':fmmgr'], |
| 79 | ) |
| 80 | |
| 81 | java_library( |
| 82 | name = 'fmweb', |
| 83 | srcs = glob(['fmweb/' + SRC + '*.java']), |
| 84 | deps = COMPILE_DEPS, |
| 85 | visibility = ['PUBLIC'], |
| 86 | ) |
| 87 | |
| 88 | java_test( |
| 89 | name = 'fmweb-tests', |
| 90 | srcs = glob(['fmweb/' + TEST + '*.java']), |
| 91 | deps = COMPILE_DEPS + |
| 92 | TEST_DEPS + |
| 93 | [':fmweb'], |
| 94 | source_under_test = [':fmweb'], |
| 95 | resources_root = 'fmweb/src/test/resources', |
| 96 | resources = glob(['fmweb/src/test/resources/**']), |
| 97 | ) |