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', |
Carmelo Cascone | 31d3e44 | 2017-07-18 16:58:51 -0400 | [diff] [blame] | 30 | '//drivers/default:onos-drivers-default', |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 31 | ] |
| 32 | |
| 33 | TEST_DEPS = [ |
| 34 | '//lib:TEST_ADAPTERS', |
| 35 | '//core/api:onos-api-tests', |
| 36 | ] |
| 37 | |
| 38 | BUNDLES = [ |
| 39 | ':onos-drivers-bmv2', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 40 | '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto', |
| 41 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 42 | '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl', |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 43 | '//protocols/grpc/api:onos-protocols-grpc-api', |
Andrea Campanella | c57d08c | 2017-07-02 16:24:17 +0200 | [diff] [blame] | 44 | '//protocols/grpc/ctl:onos-protocols-grpc-ctl', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 45 | '//protocols/grpc/proto:onos-protocols-grpc-proto', |
| 46 | '//incubator/bmv2/model:onos-incubator-bmv2-model', |
Carmelo Cascone | 31d3e44 | 2017-07-18 16:58:51 -0400 | [diff] [blame] | 47 | '//drivers/default:onos-drivers-default', |
Carmelo Cascone | 59f57de | 2017-07-11 19:55:09 -0400 | [diff] [blame] | 48 | ] + GRPC_DEPS |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 49 | |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 50 | osgi_jar_with_tests( |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 51 | deps = COMPILE_DEPS, |
| 52 | test_deps = TEST_DEPS, |
| 53 | resources_root = 'src/main/resources', |
| 54 | resources = glob(['src/main/resources/**']), |
| 55 | ) |
| 56 | |
| 57 | onos_app ( |
| 58 | app_name = 'org.onosproject.drivers.bmv2', |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 59 | title = 'BMv2 Device Drivers', |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 60 | category = 'Drivers', |
| 61 | url = 'http://onosproject.org', |
| 62 | description = 'ONOS BMv2 Device Drivers application.', |
| 63 | included_bundles = BUNDLES, |
Andrea Campanella | 378e21a | 2017-06-07 12:09:59 +0200 | [diff] [blame] | 64 | required_apps = [ |
| 65 | 'org.onosproject.generaldeviceprovider' |
| 66 | ], |
Andrea Campanella | 241896c | 2017-05-10 13:11:04 -0700 | [diff] [blame] | 67 | ) |