Ray Milkey
Committed by Gerrit Code Review

Appify BUCK builds for drivers

Change-Id: I94a44950ce793008ff2a3b2105207a9fff9a53ed
......@@ -45,14 +45,14 @@ CORE = [
'//protocols/isis:onos-isis-isisio',
'//drivers/utilities:onos-drivers-utilities',
'//drivers/bti:onos-drivers-bti',
'//drivers/ciena:onos-drivers-ciena',
'//drivers/cisco:onos-drivers-cisco',
'//drivers/default:onos-drivers-default',
'//drivers/fujitsu:onos-drivers-fujitsu',
'//drivers/lumentum:onos-drivers-lumentum',
'//drivers/netconf:onos-drivers-netconf',
'//drivers/ovsdb:onos-drivers-ovsdb',
'//drivers/bti:onos-drivers-bti-oar',
'//drivers/ciena:onos-drivers-ciena-oar',
'//drivers/cisco:onos-drivers-cisco-oar',
'//drivers/default:onos-drivers-default-oar',
'//drivers/fujitsu:onos-drivers-fujitsu-oar',
'//drivers/lumentum:onos-drivers-lumentum-oar',
'//drivers/netconf:onos-drivers-netconf-oar',
'//drivers/ovsdb:onos-drivers-ovsdb-oar',
'//providers/netconf/device:onos-providers-netconf-device',
'//providers/openflow/device:onos-providers-openflow-device',
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-bti'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//protocols/snmp/api:onos-snmp-api',
......@@ -13,11 +8,16 @@ COMPILE_DEPS = [
'//lib:mibs-net-snmp',
]
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 = 'Bti Device Drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Bti Device Drivers application.',
required_apps = [ 'org.onosproject.snmp' ],
)
......
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 @@ COMPILE_DEPS = [
'//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' ],
)
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-cisco'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//drivers/utilities:onos-drivers-utilities',
'//protocols/netconf/api:onos-protocols-netconf-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 = 'Cisco device drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Cisco device drivers application.',
required_apps = [ 'org.onosproject.netconf' ],
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-default'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:openflowj',
......@@ -12,24 +6,15 @@ COMPILE_DEPS = [
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST',
]
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/**']),
)
java_test(
name = 'tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
onos_app (
title = 'Default device drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Default device drivers application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-fujitsu'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//drivers/utilities:onos-drivers-utilities',
'//protocols/netconf/api:onos-protocols-netconf-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 = 'Fujitsu device drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Fujitsu device drivers application.',
required_apps = [ 'org.onosproject.netconf' ],
)
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-lumentum'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.servicemix.bundles.snmp4j',
......@@ -11,11 +6,16 @@ COMPILE_DEPS = [
'//incubator/api:onos-incubator-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 = 'Lumentum Device Drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS Lumentum Device Drivers application.',
required_apps = [ 'org.onosproject.snmp', 'org.onosproject.faultmanagement' ],
)
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-netconf'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//drivers/utilities:onos-drivers-utilities',
'//protocols/netconf/api:onos-protocols-netconf-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 = 'NETCONF Device Drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS NETCONF Device Drivers application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-ovsdb'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//drivers/utilities:onos-drivers-utilities',
......@@ -10,11 +5,21 @@ COMPILE_DEPS = [
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
]
osgi_jar(
name = CURRENT_NAME,
srcs = glob([SRC + '/*.java']),
TEST_DEPS = [
'//lib:TEST_ADAPTERS',
'//protocols/ovsdb/api:onos-protocols-ovsdb-tests',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
test_deps = TEST_DEPS,
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
onos_app (
title = 'OVSDB Device Drivers',
category = 'Drivers',
url = 'http://onosproject.org',
description = 'ONOS OVSDB Device Drivers application.',
)
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
CURRENT_NAME = 'onos-drivers-utilities'
CURRENT_TARGET = ':' + CURRENT_NAME
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//core/net:onos-core-net',
]
TEST_DEPS = [
'//lib:TEST',
]
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/**']),
)
java_test(
name = 'onos-drivers-utilities-tests',
visibility = ['PUBLIC'],
resources_root = 'src/test/resources',
resources = glob(['src/test/resources/**']),
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
)
......
......@@ -21,10 +21,11 @@ osgi_jar(
)
java_test(
name = 'tests',
name = 'onos-protocols-ovsdb-tests',
srcs = glob([TEST + '/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[CURRENT_TARGET],
source_under_test = [CURRENT_TARGET],
visibility = ['PUBLIC'],
)
......