Bazel builds for additional drivers
Change-Id: I8c3f36bd7c56127480ab9419ad52dac626b9f3cb
diff --git a/drivers/polatis/netconf/BUILD b/drivers/polatis/netconf/BUILD
new file mode 100644
index 0000000..ec548fe
--- /dev/null
+++ b/drivers/polatis/netconf/BUILD
@@ -0,0 +1,41 @@
+COMPILE_DEPS = CORE_DEPS + ONOS_YANG + [
+ "//models/polatis:onos-models-polatis",
+ "//drivers/utilities:onos-drivers-utilities",
+ "//protocols/netconf/api:onos-protocols-netconf-api",
+ "//apps/optical-model:onos-apps-optical-model",
+ "//incubator/api:onos-incubator-api",
+]
+
+APPS = [
+ "org.onosproject.netconf",
+ "org.onosproject.models.common",
+ "org.onosproject.models.polatis",
+ "org.onosproject.optical-model",
+ "org.onosproject.faultmanagement",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//utils/osgi:onlab-osgi-tests",
+]
+
+BUNDLES = [
+ ":onos-drivers-polatis-netconf",
+ "//drivers/utilities:onos-drivers-utilities",
+]
+
+osgi_jar_with_tests(
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ test_deps = TEST_DEPS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.drivers.polatis.netconf",
+ category = "Drivers",
+ description = "ONOS Polatis Device Drivers application.",
+ included_bundles = BUNDLES,
+ required_apps = APPS,
+ title = "Polatis Device Drivers",
+ url = "http://www.polatis.com",
+)