Build drivers with bazel
Change-Id: I033ac32b3ef8119fc65e046c821ff17f12709261
diff --git a/drivers/ovsdb/BUILD b/drivers/ovsdb/BUILD
new file mode 100644
index 0000000..56c8b22
--- /dev/null
+++ b/drivers/ovsdb/BUILD
@@ -0,0 +1,25 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "//drivers/utilities:onos-drivers-utilities",
+ "//protocols/ovsdb/api:onos-protocols-ovsdb-api",
+ "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc",
+]
+
+TEST_DEPS = TEST_ADAPTERS + [
+ "//protocols/ovsdb/api:onos-protocols-ovsdb-api-tests",
+]
+
+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.ovsdb",
+ category = "Drivers",
+ description = "Adds support for devices using OVSDB.",
+ required_apps = ["org.onosproject.ovsdb-base"],
+ title = "Generic OVSDB Drivers",
+ url = "http://onosproject.org",
+)