blob: b406b08cec26f4e73683e34030aae3726e20be78 [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',
Andrea Campanella241896c2017-05-10 13:11:04 -070030]
31
32TEST_DEPS = [
33 '//lib:TEST_ADAPTERS',
34 '//core/api:onos-api-tests',
35]
36
37BUNDLES = [
38 ':onos-drivers-bmv2',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040039 '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto',
40 '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
41 '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl',
Andrea Campanella378e21a2017-06-07 12:09:59 +020042 '//protocols/grpc/api:onos-protocols-grpc-api',
Andrea Campanellac57d08c2017-07-02 16:24:17 +020043 '//protocols/grpc/ctl:onos-protocols-grpc-ctl',
Carmelo Cascone59f57de2017-07-11 19:55:09 -040044 '//protocols/grpc/proto:onos-protocols-grpc-proto',
45 '//incubator/bmv2/model:onos-incubator-bmv2-model',
46] + GRPC_DEPS
Andrea Campanella241896c2017-05-10 13:11:04 -070047
Andrea Campanella378e21a2017-06-07 12:09:59 +020048osgi_jar_with_tests(
Andrea Campanella241896c2017-05-10 13:11:04 -070049 deps = COMPILE_DEPS,
50 test_deps = TEST_DEPS,
51 resources_root = 'src/main/resources',
52 resources = glob(['src/main/resources/**']),
53)
54
55onos_app (
56 app_name = 'org.onosproject.drivers.bmv2',
Andrea Campanella378e21a2017-06-07 12:09:59 +020057 title = 'BMv2 Device Drivers',
Andrea Campanella241896c2017-05-10 13:11:04 -070058 category = 'Drivers',
59 url = 'http://onosproject.org',
60 description = 'ONOS BMv2 Device Drivers application.',
61 included_bundles = BUNDLES,
Andrea Campanella378e21a2017-06-07 12:09:59 +020062 required_apps = [
63 'org.onosproject.generaldeviceprovider'
64 ],
Andrea Campanella241896c2017-05-10 13:11:04 -070065)