blob: a74688851d8e27ffdb28f511965a0a88937530df [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",
Carmelo Casconed33d3b42019-06-18 12:12:36 -07007 "//deps:io_grpc_grpc_api_context",
8 "//deps:io_grpc_grpc_netty",
Carmelo Cascone41644362018-08-09 16:56:43 -07009 "@minimal_json//jar",
10 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
Carmelo Casconed33d3b42019-06-18 12:12:36 -070011 #"//deps:libthrift",
Carmelo Cascone41644362018-08-09 16:56:43 -070012]
13
14BUNDLES = [
15 ":onos-drivers-bmv2",
Carmelo Casconed33d3b42019-06-18 12:12:36 -070016 # "//deps:libthrift",
Carmelo Cascone41644362018-08-09 16:56:43 -070017 # "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
18]
19
20osgi_jar(
Carmelo Cascone41644362018-08-09 16:56:43 -070021 # FIXME: enable building other classes as soon as we implement BUILD for
22 # protocols/bmv2 (based on Thrift)
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070023 srcs = [
24 "src/main/java/org/onosproject/drivers/bmv2/Bmv2DriversLoader.java",
25 "src/main/java/org/onosproject/drivers/bmv2/Bmv2PipelineProgrammable.java",
26 ],
Carmelo Cascone41644362018-08-09 16:56:43 -070027 resources = glob(["src/main/resources/**"]),
Ray Milkey05d609a2018-08-15 10:27:58 -070028 resources_root = "src/main/resources",
29 deps = COMPILE_DEPS,
Carmelo Cascone41644362018-08-09 16:56:43 -070030)
31
Ray Milkey05d609a2018-08-15 10:27:58 -070032onos_app(
Carmelo Cascone41644362018-08-09 16:56:43 -070033 app_name = "org.onosproject.drivers.bmv2",
Carmelo Cascone41644362018-08-09 16:56:43 -070034 category = "Drivers",
Carmelo Cascone41644362018-08-09 16:56:43 -070035 description = "Adds support for BMv2 devices.",
36 included_bundles = BUNDLES,
37 required_apps = [
Carmelo Cascone1678b0c2019-02-06 17:21:25 -080038 "org.onosproject.drivers.stratum",
Carmelo Cascone41644362018-08-09 16:56:43 -070039 "org.onosproject.drivers.p4runtime",
Carmelo Cascone41644362018-08-09 16:56:43 -070040 "org.onosproject.pipelines.basic",
41 ],
Ray Milkey05d609a2018-08-15 10:27:58 -070042 title = "BMv2 Drivers",
43 url = "http://onosproject.org",
Carmelo Cascone41644362018-08-09 16:56:43 -070044)