Build drivers with bazel
Change-Id: I033ac32b3ef8119fc65e046c821ff17f12709261
diff --git a/drivers/lumentum/BUILD b/drivers/lumentum/BUILD
new file mode 100644
index 0000000..5ccb339
--- /dev/null
+++ b/drivers/lumentum/BUILD
@@ -0,0 +1,39 @@
+COMPILE_DEPS = CORE_DEPS + [
+ "@org_apache_servicemix_bundles_snmp4j//jar",
+ "//drivers/utilities:onos-drivers-utilities",
+ "//protocols/snmp/api:onos-protocols-snmp-api",
+ "//protocols/tl1/api:onos-protocols-tl1-api",
+ "//protocols/netconf/api:onos-protocols-netconf-api",
+ "//incubator/api:onos-incubator-api",
+ "//apps/optical-model:onos-apps-optical-model",
+ "//drivers/optical:onos-drivers-optical",
+]
+
+BUNDLES = [
+ ":onos-drivers-lumentum",
+ "//drivers/utilities:onos-drivers-utilities",
+]
+
+osgi_jar_with_tests(
+ resources = glob(["src/main/resources/**"]),
+ resources_root = "src/main/resources",
+ test_deps = TEST_ADAPTERS,
+ deps = COMPILE_DEPS,
+)
+
+onos_app(
+ app_name = "org.onosproject.drivers.lumentum",
+ category = "Drivers",
+ description = "ONOS Lumentum Device Drivers application.",
+ included_bundles = BUNDLES,
+ required_apps = [
+ "org.onosproject.snmp",
+ "org.onosproject.faultmanagement",
+ "org.onosproject.optical-model",
+ "org.onosproject.tl1",
+ "org.onosproject.netconf",
+ "org.onosproject.drivers.optical",
+ ],
+ title = "Lumentum Drivers",
+ url = "http://onosproject.org",
+)