Bazel build files for protocols
Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
diff --git a/protocols/pcep/server/BUILD b/protocols/pcep/server/BUILD
new file mode 100644
index 0000000..c8b744d
--- /dev/null
+++ b/protocols/pcep/server/BUILD
@@ -0,0 +1,11 @@
+BUNDLES = [
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl",
+]
+
+onos_app(
+ category = "Utility",
+ included_bundles = BUNDLES,
+ title = "PCEP Server Module",
+ url = "http://onosproject.org",
+)
diff --git a/protocols/pcep/server/api/BUILD b/protocols/pcep/server/api/BUILD
new file mode 100644
index 0000000..f69f463
--- /dev/null
+++ b/protocols/pcep/server/api/BUILD
@@ -0,0 +1,10 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@netty//jar",
+ "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio",
+ "//apps/pcep-api:onos-apps-pcep-api",
+ "//incubator/api:onos-incubator-api",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/protocols/pcep/server/ctl/BUILD b/protocols/pcep/server/ctl/BUILD
new file mode 100644
index 0000000..45562dc
--- /dev/null
+++ b/protocols/pcep/server/ctl/BUILD
@@ -0,0 +1,12 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + JACKSON + KRYO + [
+ "@netty//jar",
+ "//incubator/api:onos-incubator-api",
+ "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio",
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/pcep-api:onos-apps-pcep-api",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)