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