[WIP] Attempt at building grpc and p4runtime protocols with Bazel
STILL NOT WORKING AT RUNTIME
Change-Id: I1f9e60b12a12e09edad2a714ec2921a4f71c6d35
diff --git a/protocols/p4runtime/BUILD b/protocols/p4runtime/BUILD
new file mode 100644
index 0000000..66e2f59
--- /dev/null
+++ b/protocols/p4runtime/BUILD
@@ -0,0 +1,18 @@
+BUNDLES = [
+ '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
+ '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl',
+ '//protocols/p4runtime/model:onos-protocols-p4runtime-model',
+ "//protocols/p4runtime/proto:p4runtime_java_grpc",
+]
+
+onos_app(
+ app_name = 'org.onosproject.protocols.p4runtime',
+ title = 'P4Runtime Protocol Subsystem',
+ category = 'Protocol',
+ url = 'http://onosproject.org',
+ description = 'ONOS P4Runtime protocol subsystem',
+ included_bundles = BUNDLES,
+ required_apps = [
+ 'org.onosproject.protocols.grpc'
+ ],
+)