Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 1 | GRPC_DEPS = [ |
| 2 | '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
| 3 | '//lib:grpc-protobuf-1.3.0', |
| 4 | '//lib:grpc-protobuf-lite-1.3.0', |
| 5 | '//lib:grpc-stub-1.3.0', |
| 6 | '//lib:grpc-netty-1.3.0', |
| 7 | '//lib:grpc-auth-1.3.0', |
| 8 | '//lib:google-instrumentation-0.3.0', |
| 9 | '//lib:protobuf-java-3.0.2', |
| 10 | # Lazily adding all netty-related packages. |
| 11 | # Some of them might not be necessary. |
| 12 | '//lib:netty', |
| 13 | '//lib:netty-buffer', |
| 14 | '//lib:netty-codec', |
| 15 | '//lib:netty-codec-http', |
| 16 | '//lib:netty-codec-http2', |
| 17 | '//lib:netty-common', |
| 18 | '//lib:netty-handler', |
| 19 | '//lib:netty-transport', |
| 20 | '//lib:netty-transport-native-epoll', |
| 21 | '//lib:netty-resolver', |
| 22 | ] |
| 23 | |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 24 | COMPILE_DEPS = [ |
| 25 | '//lib:CORE_DEPS', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 26 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 27 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
| 28 | '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
| 29 | '//lib:grpc-netty-1.3.0', |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 30 | ] |
| 31 | |
| 32 | TEST_DEPS = [ |
| 33 | '//lib:TEST_ADAPTERS', |
| 34 | '//core/api:onos-api-tests', |
| 35 | ] |
| 36 | |
| 37 | BUNDLES = [ |
| 38 | ':onos-drivers-bmv2', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 39 | '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto', |
| 40 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 41 | '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl', |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 42 | '//protocols/grpc/api:onos-protocols-grpc-api', |
Andrea Campanella | c57d08c | 2017-07-02 16:24:17 +0200 | [diff] [blame] | 43 | '//protocols/grpc/ctl:onos-protocols-grpc-ctl', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 44 | '//protocols/grpc/proto:onos-protocols-grpc-proto', |
| 45 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
| 46 | ] + GRPC_DEPS |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 47 | |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 48 | osgi_jar_with_tests( |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 49 | deps = COMPILE_DEPS, |
| 50 | test_deps = TEST_DEPS, |
| 51 | resources_root = 'src/main/resources', |
| 52 | resources = glob(['src/main/resources/**']), |
| 53 | ) |
| 54 | |
| 55 | onos_app ( |
| 56 | app_name = 'org.onosproject.drivers.bmv2', |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 57 | title = 'BMv2 Device Drivers', |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 58 | category = 'Drivers', |
| 59 | url = 'http://onosproject.org', |
| 60 | description = 'ONOS BMv2 Device Drivers application.', |
| 61 | included_bundles = BUNDLES, |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 62 | required_apps = [ |
| 63 | 'org.onosproject.generaldeviceprovider' |
| 64 | ], |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 65 | ) |