Additional bazel build files for apps
Change-Id: If3f31139022b5657e4a7b8a33871e4eba0da286e
diff --git a/apps/openroadm/BUILD b/apps/openroadm/BUILD
new file mode 100644
index 0000000..6678cb4
--- /dev/null
+++ b/apps/openroadm/BUILD
@@ -0,0 +1,25 @@
+APPS = [
+ "org.onosproject.yang",
+ "org.onosproject.yang-gui",
+ "org.onosproject.config",
+ "org.onosproject.restconf",
+ "org.onosproject.protocols.restconfserver",
+ "org.onosproject.netconf",
+ "org.onosproject.netconfsb",
+ "org.onosproject.models.openroadm",
+]
+
+BUNDLES = [
+ "//apps/openroadm/service:onos-apps-openroadm-service",
+ "//apps/openroadm/network:onos-apps-openroadm-network",
+]
+
+onos_app(
+ app_name = "org.onosproject.openroadm",
+ category = "Optical",
+ description = "Open ROADM Application",
+ included_bundles = BUNDLES,
+ required_apps = APPS,
+ title = "Open ROADM",
+ url = "http://onosproject.org",
+)
diff --git a/apps/openroadm/network/BUILD b/apps/openroadm/network/BUILD
new file mode 100644
index 0000000..f27a6fe
--- /dev/null
+++ b/apps/openroadm/network/BUILD
@@ -0,0 +1,10 @@
+COMPILE_DEPS = CORE_DEPS + ONOS_YANG + [
+ "@onos_yang_runtime//jar",
+ "//models/openroadm:onos-models-openroadm",
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/yang:onos-apps-yang-native",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/openroadm/service/BUILD b/apps/openroadm/service/BUILD
new file mode 100644
index 0000000..3f9e08f
--- /dev/null
+++ b/apps/openroadm/service/BUILD
@@ -0,0 +1,10 @@
+COMPILE_DEPS = CORE_DEPS + ONOS_YANG + [
+ "@onos_yang_runtime//jar",
+ "//apps/yang:onos-apps-yang-native",
+ "//models/openroadm:onos-models-openroadm",
+ "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)