blob: d17599fe6022ded625e3be805f58eda42bca142e [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)
24 srcs = ["src/main/java/org/onosproject/drivers/bmv2/Bmv2PipelineProgrammable.java"],
25 resources_root = "src/main/resources",
26 resources = glob(["src/main/resources/**"]),
27)
28
29onos_app (
30 app_name = "org.onosproject.drivers.bmv2",
31 title = "BMv2 Drivers",
32 category = "Drivers",
33 url = "http://onosproject.org",
34 description = "Adds support for BMv2 devices.",
35 included_bundles = BUNDLES,
36 required_apps = [
37 "org.onosproject.drivers.p4runtime",
38 "org.onosproject.drivers.gnmi",
39 "org.onosproject.pipelines.basic",
40 ],
41)