Build drivers with bazel
Change-Id: I033ac32b3ef8119fc65e046c821ff17f12709261
diff --git a/drivers/fujitsu/BUILD b/drivers/fujitsu/BUILD
new file mode 100644
index 0000000..f6a2fdd
--- /dev/null
+++ b/drivers/fujitsu/BUILD
@@ -0,0 +1,36 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@org_apache_karaf_shell_console//jar",
+ "//drivers/utilities:onos-drivers-utilities",
+ "//protocols/netconf/api:onos-protocols-netconf-api",
+ "//protocols/netconf/ctl:onos-protocols-netconf-ctl",
+ "//cli:onos-cli",
+ "//apps/optical-model:onos-apps-optical-model",
+ "//incubator/api:onos-incubator-api",
+]
+
+BUNDLES = [
+ ":onos-drivers-fujitsu",
+ "//drivers/utilities:onos-drivers-utilities",
+]
+
+osgi_jar_with_tests(
+ exclude_tests = ["org.onosproject.drivers.fujitsu.FujitsuNetconfSessionListenerTest"],
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.drivers.fujitsu",
+ category = "Drivers",
+ description = "Adds support for Fujitsu devices.",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.netconf",
+ "org.onosproject.optical-model",
+ "org.onosproject.drivers.optical",
+ ],
+ title = "Fujitsu Drivers",
+ url = "http://onosproject.org",
+)