Bazel builds for additional drivers
Change-Id: I8c3f36bd7c56127480ab9419ad52dac626b9f3cb
diff --git a/apps/cfm/BUILD b/apps/cfm/BUILD
new file mode 100644
index 0000000..07008a5
--- /dev/null
+++ b/apps/cfm/BUILD
@@ -0,0 +1,13 @@
+BUNDLES = [
+ "//apps/cfm/api:onos-apps-cfm-api",
+ "//apps/cfm/app:onos-apps-cfm-app",
+ "//apps/cfm/nbi:onos-apps-cfm-nbi",
+]
+
+onos_app(
+ category = "Monitoring",
+ description = "Layer 2 Monitoring Connectivity Fault Management App",
+ included_bundles = BUNDLES,
+ title = "Layer 2 Monitoring CFM Application",
+ url = "http://onosproject.org",
+)
diff --git a/apps/cfm/api/BUILD b/apps/cfm/api/BUILD
new file mode 100644
index 0000000..8d87120
--- /dev/null
+++ b/apps/cfm/api/BUILD
@@ -0,0 +1,4 @@
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = CORE_DEPS,
+)
diff --git a/apps/cfm/app/BUILD b/apps/cfm/app/BUILD
new file mode 100644
index 0000000..300086d
--- /dev/null
+++ b/apps/cfm/app/BUILD
@@ -0,0 +1,13 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/cfm/api:onos-apps-cfm-api",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//utils/osgi:onlab-osgi-tests",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/cfm/nbi/BUILD b/apps/cfm/nbi/BUILD
new file mode 100644
index 0000000..c28e664
--- /dev/null
+++ b/apps/cfm/nbi/BUILD
@@ -0,0 +1,19 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + CLI + REST + [
+ "//apps/cfm/api:onos-apps-cfm-api",
+]
+
+TEST_DEPS = TEST_REST + [
+ "//utils/osgi:onlab-osgi-tests",
+ "//web/api:onos-rest-tests",
+]
+
+osgi_jar_with_tests(
+ api_description = "REST API for L2 Monitoring CFM",
+ api_package = "org.onosproject.soam.rest",
+ api_title = "L2 Monitoring CFM",
+ api_version = "1.0",
+ exclude_tests = ["org/onosproject/cfm/impl/CfmResourceTest"],
+ test_deps = TEST_DEPS,
+ web_context = "/onos/cfm",
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/l3vpn/BUILD b/apps/l3vpn/BUILD
new file mode 100644
index 0000000..8064faa
--- /dev/null
+++ b/apps/l3vpn/BUILD
@@ -0,0 +1,40 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + ONOS_YANG + [
+ "//models/l3vpn:onos-models-l3vpn",
+ "//apps/config:onos-apps-config",
+ "//core/store/serializers:onos-core-serializers",
+ "//apps/yang:onos-apps-yang",
+ "//apps/pce/app:onos-apps-pce-app",
+ "//incubator/api:onos-incubator-api",
+ "//models/common:onos-models-common",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//utils/osgi:onlab-osgi-tests",
+]
+
+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.common",
+ "org.onosproject.models.l3vpn",
+ "org.onosproject.bgpcep",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.l3vpn",
+ category = "Traffic Engineering",
+ description = "L3VPN YANG Application",
+ required_apps = APPS,
+ title = "YANG L3VPN",
+ url = "http://onosproject.org",
+)
diff --git a/apps/odtn/api/BUILD b/apps/odtn/api/BUILD
new file mode 100644
index 0000000..4df56b5
--- /dev/null
+++ b/apps/odtn/api/BUILD
@@ -0,0 +1,28 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + ONOS_YANG + [
+ "@onos_yang_runtime//jar",
+ "//models/tapi:onos-models-tapi",
+ "//models/openconfig:onos-models-openconfig",
+ "//apps/yang:onos-apps-yang",
+ "//apps/config:onos-apps-config",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
+
+APPS = [
+ "org.onosproject.yang",
+ "org.onosproject.models.tapi",
+ "org.onosproject.models.openconfig",
+]
+
+# TODO probably bucklet, etc. should escape title & description
+onos_app(
+ app_name = "org.onosproject.odtn-api",
+ category = "Traffic Engineering",
+ description = "ODTN API & Utilities Application",
+ required_apps = APPS,
+ title = "ODTN API & Utilities Application",
+ url = "http://onosproject.org",
+)