blob: 37268296252c2a871d64c21914f334d43a7284b4 [file] [log] [blame]
Carmelo Cascone59f57de2017-07-11 19:55:09 -04001GRPC_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 Campanella241896c2017-05-10 13:11:04 -070024COMPILE_DEPS = [
25 '//lib:CORE_DEPS',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040026 '//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 Cascone31d3e442017-07-18 16:58:51 -040030 '//drivers/default:onos-drivers-default',
Andrea Campanella241896c2017-05-10 13:11:04 -070031]
32
33TEST_DEPS = [
34 '//lib:TEST_ADAPTERS',
35 '//core/api:onos-api-tests',
36]
37
38BUNDLES = [
39 ':onos-drivers-bmv2',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040040 '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto',
41 '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
42 '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl',
Andrea Campanella378e21a2017-06-07 12:09:59 +020043 '//protocols/grpc/api:onos-protocols-grpc-api',
Andrea Campanellac57d08c2017-07-02 16:24:17 +020044 '//protocols/grpc/ctl:onos-protocols-grpc-ctl',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040045 '//protocols/grpc/proto:onos-protocols-grpc-proto',
46 '//incubator/bmv2/model:onos-incubator-bmv2-model',
Carmelo Cascone31d3e442017-07-18 16:58:51 -040047 '//drivers/default:onos-drivers-default',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040048] + GRPC_DEPS
Andrea Campanella241896c2017-05-10 13:11:04 -070049
Andrea Campanella378e21a2017-06-07 12:09:59 +020050osgi_jar_with_tests(
Andrea Campanella241896c2017-05-10 13:11:04 -070051 deps = COMPILE_DEPS,
52 test_deps = TEST_DEPS,
53 resources_root = 'src/main/resources',
54 resources = glob(['src/main/resources/**']),
55)
56
57onos_app (
58 app_name = 'org.onosproject.drivers.bmv2',
Andrea Campanella378e21a2017-06-07 12:09:59 +020059 title = 'BMv2 Device Drivers',
Andrea Campanella241896c2017-05-10 13:11:04 -070060 category = 'Drivers',
61 url = 'http://onosproject.org',
62 description = 'ONOS BMv2 Device Drivers application.',
63 included_bundles = BUNDLES,
Andrea Campanella378e21a2017-06-07 12:09:59 +020064 required_apps = [
65 'org.onosproject.generaldeviceprovider'
66 ],
Andrea Campanella241896c2017-05-10 13:11:04 -070067)