Bazel build files for protocols
Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
diff --git a/protocols/bgp/api/BUILD b/protocols/bgp/api/BUILD
new file mode 100644
index 0000000..7568aba
--- /dev/null
+++ b/protocols/bgp/api/BUILD
@@ -0,0 +1,8 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@netty//jar",
+ "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/protocols/bgp/bgpio/BUILD b/protocols/bgp/bgpio/BUILD
new file mode 100644
index 0000000..a375113
--- /dev/null
+++ b/protocols/bgp/bgpio/BUILD
@@ -0,0 +1,7 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + [
+ "@netty//jar",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/protocols/bgp/ctl/BUILD b/protocols/bgp/ctl/BUILD
new file mode 100644
index 0000000..41ab47e
--- /dev/null
+++ b/protocols/bgp/ctl/BUILD
@@ -0,0 +1,18 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@jersey_client//jar",
+ "@httpclient_osgi//jar",
+ "@httpcore_osgi//jar",
+ "@javax_ws_rs_api//jar",
+ "@netty_common//jar",
+ "@netty//jar",
+ "//protocols/bgp/api:onos-protocols-bgp-api",
+ "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio",
+]
+
+osgi_jar_with_tests(
+ exclude_tests = [
+ "org.onosproject.bgp.BgpPeerChannelHandlerTest",
+ "org.onosproject.bgp.BgpPeerFrameDecoderTest",
+ ],
+ deps = COMPILE_DEPS,
+)