Build providers using bazel
Change-Id: I7d4ebcfb1d593e10aa93f0a4f7111680ed66a7e7
diff --git a/providers/pcep/BUILD b/providers/pcep/BUILD
new file mode 100644
index 0000000..c00e3a9
--- /dev/null
+++ b/providers/pcep/BUILD
@@ -0,0 +1,22 @@
+BUNDLES = [
+ "@netty//jar",
+ "//providers/pcep/topology:onos-providers-pcep-topology",
+ "//providers/pcep/tunnel:onos-providers-pcep-tunnel",
+ "//providers/pcep/cli:onos-providers-pcep-cli",
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio",
+ "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl",
+ "//apps/pcep-api:onos-apps-pcep-api",
+]
+
+onos_app(
+ category = "Provider",
+ description = "PCEP protocol providers root.",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.pcep-api",
+ "org.onosproject.optical-model",
+ ],
+ title = "PCEP Provider",
+ url = "http://onosproject.org",
+)
diff --git a/providers/pcep/cli/BUILD b/providers/pcep/cli/BUILD
new file mode 100644
index 0000000..b623bd9
--- /dev/null
+++ b/providers/pcep/cli/BUILD
@@ -0,0 +1,11 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@org_apache_karaf_shell_console//jar",
+ "//incubator/api:onos-incubator-api",
+ "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl",
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//cli:onos-cli",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/providers/pcep/topology/BUILD b/providers/pcep/topology/BUILD
new file mode 100644
index 0000000..e278d5c
--- /dev/null
+++ b/providers/pcep/topology/BUILD
@@ -0,0 +1,15 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + JACKSON + [
+ "@netty//jar",
+ "//incubator/api:onos-incubator-api",
+ "//protocols/ovsdb/api:onos-protocols-ovsdb-api",
+ "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc",
+ "//apps/pcep-api:onos-apps-pcep-api",
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio",
+ "//core/api:onos-api-tests",
+ "//apps/optical-model:onos-apps-optical-model",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/providers/pcep/tunnel/BUILD b/providers/pcep/tunnel/BUILD
new file mode 100644
index 0000000..b33bd8f
--- /dev/null
+++ b/providers/pcep/tunnel/BUILD
@@ -0,0 +1,19 @@
+COMPILE_DEPS = CORE_DEPS + NETTY + [
+ "//protocols/ovsdb/api:onos-protocols-ovsdb-api",
+ "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc",
+ "//apps/pcep-api:onos-apps-pcep-api",
+ "//incubator/api:onos-incubator-api",
+ "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio",
+ "//protocols/pcep/server/api:onos-protocols-pcep-server-api",
+ "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "@netty//jar",
+ "@netty_transport//jar",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)