blob: 07fef1a5e79a781c296ffe7f070af511dd649725 [file] [log] [blame]
Carmelo Cascone41644362018-08-09 16:56:43 -07001COMPILE_DEPS = CORE_DEPS + KRYO + JACKSON + [
2 "//core/store/serializers:onos-core-serializers",
3 "//drivers/p4runtime:onos-drivers-p4runtime",
4 "//pipelines/basic:onos-pipelines-basic",
5 "//protocols/p4runtime/api:onos-protocols-p4runtime-api",
6 "//protocols/p4runtime/model:onos-protocols-p4runtime-model",
7 "@io_grpc_grpc_java//core",
8 "@io_grpc_grpc_java//netty",
9 "@minimal_json//jar",
10 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
11 #"//lib:libthrift",
12]
13
14BUNDLES = [
15 ":onos-drivers-bmv2",
16 # "//lib:libthrift",
17 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
18]
19
20osgi_jar(
21 deps = COMPILE_DEPS,
22 # FIXME: enable building other classes as soon as we implement BUILD for
23 # protocols/bmv2 (based on Thrift)
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070024 srcs = [
25 "src/main/java/org/onosproject/drivers/bmv2/Bmv2DriversLoader.java",
26 "src/main/java/org/onosproject/drivers/bmv2/Bmv2PipelineProgrammable.java",
27 ],
Carmelo Cascone41644362018-08-09 16:56:43 -070028 resources_root = "src/main/resources",
29 resources = glob(["src/main/resources/**"]),
30)
31
32onos_app (
33 app_name = "org.onosproject.drivers.bmv2",
34 title = "BMv2 Drivers",
35 category = "Drivers",
36 url = "http://onosproject.org",
37 description = "Adds support for BMv2 devices.",
38 included_bundles = BUNDLES,
39 required_apps = [
40 "org.onosproject.drivers.p4runtime",
41 "org.onosproject.drivers.gnmi",
42 "org.onosproject.pipelines.basic",
43 ],
44)