Appify BUCK builds for drivers
Change-Id: I94a44950ce793008ff2a3b2105207a9fff9a53ed
diff --git a/drivers/ciena/BUCK b/drivers/ciena/BUCK
index 74c3cd8..6537ee6 100644
--- a/drivers/ciena/BUCK
+++ b/drivers/ciena/BUCK
@@ -1,8 +1,3 @@
-SRC = 'src/main/java/org/onosproject/**/'
-
-CURRENT_NAME = 'onos-drivers-ciena'
-CURRENT_TARGET = ':' + CURRENT_NAME
-
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//incubator/api:onos-incubator-api',
@@ -11,11 +6,16 @@
'//protocols/rest/api:onos-protocols-rest-api',
]
-osgi_jar(
- name = CURRENT_NAME,
- srcs = glob([SRC + '/*.java']),
+osgi_jar_with_tests (
deps = COMPILE_DEPS,
- visibility = ['PUBLIC'],
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
+
+onos_app (
+ title = 'Ciena Device Drivers',
+ category = 'Drivers',
+ url = 'http://onosproject.org',
+ description = 'ONOS Ciena Device Drivers application.',
+ required_apps = [ 'org.onosproject.restsb' ],
+)