Bazel build files for protocols
Change-Id: I12a9cfe2d135d10c640a51d9b3438bcd92f8e37f
diff --git a/apps/mappingmanagement/BUILD b/apps/mappingmanagement/BUILD
new file mode 100644
index 0000000..01ceec0
--- /dev/null
+++ b/apps/mappingmanagement/BUILD
@@ -0,0 +1,14 @@
+BUNDLES = [
+ "//apps/mappingmanagement/api:onos-apps-mappingmanagement-api",
+ "//apps/mappingmanagement/cli:onos-apps-mappingmanagement-cli",
+ "//apps/mappingmanagement/mgr:onos-apps-mappingmanagement-mgr",
+ "//apps/mappingmanagement/web:onos-apps-mappingmanagement-web",
+]
+
+onos_app(
+ category = "Monitoring",
+ description = "ONOS mapping management application",
+ included_bundles = BUNDLES,
+ title = "Mapping Management",
+ url = "https://onosproject.org/",
+)
diff --git a/apps/mappingmanagement/api/BUILD b/apps/mappingmanagement/api/BUILD
new file mode 100644
index 0000000..91e6af0
--- /dev/null
+++ b/apps/mappingmanagement/api/BUILD
@@ -0,0 +1,8 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + JACKSON + [
+ "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/mappingmanagement/cli/BUILD b/apps/mappingmanagement/cli/BUILD
new file mode 100644
index 0000000..8677a84
--- /dev/null
+++ b/apps/mappingmanagement/cli/BUILD
@@ -0,0 +1,14 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+ "@org_apache_karaf_shell_console//jar",
+ "@javax_ws_rs_api//jar",
+ "//incubator/api:onos-incubator-api",
+ "//cli:onos-cli",
+ "//utils/rest:onlab-rest",
+ "//apps/mappingmanagement/api:onos-apps-mappingmanagement-api",
+ "//core/store/serializers:onos-core-serializers",
+]
+
+osgi_jar_with_tests(
+ import_packages = "*,org.onosproject.cli.net",
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/mappingmanagement/mgr/BUILD b/apps/mappingmanagement/mgr/BUILD
new file mode 100644
index 0000000..33f5381
--- /dev/null
+++ b/apps/mappingmanagement/mgr/BUILD
@@ -0,0 +1,13 @@
+COMPILE_DEPS = CORE_DEPS + KRYO + [
+ "//apps/mappingmanagement/api:onos-apps-mappingmanagement-api",
+ "//core/store/serializers:onos-core-serializers",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//utils/osgi:onlab-osgi-tests",
+]
+
+osgi_jar_with_tests(
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/mappingmanagement/web/BUILD b/apps/mappingmanagement/web/BUILD
new file mode 100644
index 0000000..c858583
--- /dev/null
+++ b/apps/mappingmanagement/web/BUILD
@@ -0,0 +1,20 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+ "@javax_ws_rs_api//jar",
+ "//utils/rest:onlab-rest",
+ "//apps/mappingmanagement/api:onos-apps-mappingmanagement-api",
+]
+
+TEST_DEPS = TEST_REST + [
+ "@minimal_json//jar",
+ "//web/api:onos-rest-tests",
+]
+
+osgi_jar_with_tests(
+ api_description = "REST API for ONOS Mapping Management",
+ api_package = "org.onosproject.mapping.web.api",
+ api_title = "Mapping Management API",
+ api_version = "1.0",
+ test_deps = TEST_DEPS,
+ web_context = "/onos/mappingmanagement",
+ deps = COMPILE_DEPS,
+)
diff --git a/apps/pcep-api/BUILD b/apps/pcep-api/BUILD
new file mode 100644
index 0000000..530f2b7
--- /dev/null
+++ b/apps/pcep-api/BUILD
@@ -0,0 +1,15 @@
+COMPILE_DEPS = CORE_DEPS + JACKSON + [
+ "//protocols/ovsdb/api:onos-protocols-ovsdb-api",
+ "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc",
+]
+
+osgi_jar_with_tests(
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ category = "Protocol",
+ description = "PCEP protocol API.",
+ title = "PCEP Protocol API",
+ url = "http://onosproject.org",
+)