Ray Milkey
Committed by Gerrit Code Review

Appify buck build for openstack and VTN apps

Change-Id: I6cc23cd567954daaee59271123a07040853e695b
......@@ -99,6 +99,9 @@ APPS = [
'//apps/mfwd:onos-apps-mfwd-oar',
'//apps/mlb:onos-apps-mlb-oar',
'//apps/openstackinterface:onos-apps-openstackinterface-oar',
'//apps/openstacknetworking:onos-apps-openstacknetworking-oar',
'//apps/openstacknetworking/openstackrouting:onos-apps-openstacknetworking-openstackrouting-oar',
'//apps/openstacknetworking/openstackswitching:onos-apps-openstacknetworking-openstackswitching-oar',
'//apps/mobility:onos-apps-mobility-oar',
'//apps/optical:onos-apps-optical-oar',
'//apps/pathpainter:onos-apps-pathpainter-oar',
......@@ -110,6 +113,7 @@ APPS = [
'//apps/cordvtn:onos-apps-cordvtn-oar',
'//apps/vpls:onos-apps-vpls-oar',
'//apps/vrouter:onos-apps-vrouter-oar',
'//apps/vtn:onos-apps-vtn-oar',
]
APP_JARS = [
......@@ -126,12 +130,13 @@ APP_JARS = [
'//apps/fwd:onos-apps-fwd',
'//apps/olt:onos-apps-olt-api',
'//apps/iptopology-api:onos-apps-iptopology-api',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/openstacknetworking:onos-app-openstacknetworking',
'//apps/openstacknode:onos-apps-openstacknode',
'//apps/routing:onos-apps-routing',
'//apps/test:onos-app-test',
'//apps/vtn:onos-app-vtn',
'//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc',
'//apps/vtn/sfcmgr:onos-apps-vtn-sfcmgr',
'//apps/vtn/vtnmgr:onos-apps-vtn-vtnmgr',
'//apps/vtn/vtnweb:onos-apps-vtn-vtnweb',
]
java_library(
......
......@@ -9,14 +9,14 @@ COMPILE_DEPS = [
'//utils/rest:onlab-rest',
'//cli:onos-cli',
'//core/store/serializers:onos-core-serializers',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/dhcp/api:onos-apps-dhcp-api',
'//protocols/ovsdb/api:onos-ovsdb-api',
'//protocols/ovsdb/rfc:onos-ovsdb-rfc',
]
BUNDLES = [
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/cordvtn:onos-apps-cordvtn',
]
......
......@@ -10,6 +10,7 @@ COMPILE_DEPS = [
'//lib:javax.ws.rs-api',
'//core/store/serializers:onos-core-serializers',
'//utils/osgi:onlab-osgi',
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
......
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
]
BUNDLES = [
'//apps/openstackinterface:onos-apps-openstackinterface-api',
# TODO - this doesn't actually work now, have to refactor the BUCK files into each sub directory
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstackinterface/app:onos-apps-openstackinterface-app',
]
osgi_jar_with_tests (
name = 'onos-apps-openstackinterface-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
onos_app (
title = 'Authentication App',
category = 'Security',
title = 'OpenStack Interface App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'ONOS authentication application.',
description = 'Openstack Interface Application.',
included_bundles = BUNDLES,
)
......
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//apps/openstackinterface:onos-apps-openstackinterface-api',
'//core/store/serializers:onos-core-serializers',
]
java_library(
name = 'onos-app-openstacknetworking',
visibility = ['PUBLIC'],
deps = [
':onos-app-openstacknetworking-api',
':onos-app-openstacknetworking-app',
':onos-app-openstackrouting',
':onos-app-openstackswitching',
':onos-app-openstacknetworking-web',
]
)
TEST_DEPS = [
'//lib:TEST',
':onos-app-openstacknetworking',
BUNDLES = [
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
'//apps/openstacknetworking/web:onos-apps-openstacknetworking-web',
]
java_library(
name = 'onos-app-openstacknetworking-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-api-tests',
srcs = glob([TEST + 'api/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-api'],
)
java_library(
name = 'onos-app-openstacknetworking-app',
srcs = glob(['app/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-app-tests',
srcs = glob([TEST + 'app/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-app'],
)
java_library(
name = 'onos-app-openstackrouting',
srcs = glob(['openstackrouting/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackrouting-tests',
srcs = glob([TEST + 'openstackrouting/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstackrouting'],
)
java_library(
name = 'onos-app-openstackswitching',
srcs = glob(['openstgackswitching/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstackswitching-tests',
srcs = glob([TEST + 'openstackswitching/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstackswitching'],
)
java_library(
name = 'onos-app-openstacknetworking-web',
srcs = glob(['openstgacknetworking/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-openstacknetworking-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-openstacknetworking-web-tests',
srcs = glob([TEST + 'openstackswitching/*.java']),
deps = COMPILE_DEPS +
TEST_DEPS,
source_under_test = [':onos-app-openstacknetworking-web'],
onos_app (
title = 'OpenStack Networking App',
category = 'Utility',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
required_apps = [ 'org.onosproject.openstackinterface' ],
)
......
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//core/store/serializers:onos-core-serializers',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
]
BUNDLES = [
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
'//apps/openstacknetworking/openstackrouting:onos-apps-openstacknetworking-openstackrouting',
#'//apps/dhcp/api:onos-apps-dhcp-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
onos_app (
title = 'OpenStack Routing App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'OpenStack routing application.',
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//core/store/serializers:onos-core-serializers',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
'//apps/dhcp/api:onos-apps-dhcp-api',
]
BUNDLES = [
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
'//apps/openstacknetworking/openstackswitching:onos-apps-openstacknetworking-openstackswitching',
'//apps/dhcp/api:onos-apps-dhcp-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
onos_app (
title = 'OpenStack Switching App',
category = 'Utility',
url = 'http://onosproject.org',
description = 'OpenStack Switching application.',
included_bundles = BUNDLES,
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:jersey-client',
'//lib:javax.ws.rs-api',
'//utils/rest:onlab-rest',
'//apps/openstackinterface/api:onos-apps-openstackinterface-api',
'//apps/openstackinterface/app:onos-apps-openstackinterface-app',
'//apps/openstacknetworking/api:onos-apps-openstacknetworking-api',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
)
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//utils/rest:onlab-rest',
'//lib:javax.ws.rs-api',
'//core/store/serializers:onos-core-serializers',
'//incubator/api:onos-incubator-api',
]
TEST_DEPS = [
'//lib:TEST_REST',
'//utils/osgi:onlab-osgi-tests',
'//web/api:onos-rest-tests',
BUNDLES = [
'//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc',
'//apps/vtn/sfcmgr:onos-apps-vtn-sfcmgr',
'//apps/vtn/vtnmgr:onos-apps-vtn-vtnmgr',
'//apps/vtn/vtnweb:onos-apps-vtn-vtnweb',
]
java_library(
name = 'onos-app-vtn',
visibility = ['PUBLIC'],
deps = [':onos-app-sfc-mgr',
':onos-app-vtn-mgr',
':onos-app-vtn-rsc',
':onos-app-vtn-web',
],
)
# sfcmgr
java_library(
name = 'onos-app-sfc-mgr',
srcs = glob(['sfcmgr/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-sfc-mgr-tests',
srcs = glob(['sfcmgr/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-sfc-mgr', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-sfc-mgr'],
)
# vtnmgr
java_library(
name = 'onos-app-vtn-mgr',
srcs = glob(['vtnmgr/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
resources_root = 'vtnmgr/src/main/resources',
resources = glob(['vtnmgr/src/main/resources/**']),
)
java_test(
name = 'onos-app-vtn-mgr-tests',
srcs = glob(['vtnmgr/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-mgr', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-mgr'],
)
# vtnrsc
java_library(
name = 'onos-app-vtn-rsc',
srcs = glob(['vtnrsc/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
resources_root = 'vtnrsc/src/main/resources',
resources = glob(['vtnrsc/src/main/resources/**']),
)
java_test(
name = 'onos-app-vtn-rsc-tests',
srcs = glob(['vtnrsc/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-rsc'],
)
# vtnweb
java_library(
name = 'onos-app-vtn-web',
srcs = glob(['vtnweb/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-app-vtn-rsc'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-app-vtn-web-tests',
srcs = glob(['vtnweb/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-app-vtn-web', ':onos-app-vtn-rsc'],
source_under_test = [':onos-app-vtn-web'],
resources_root = 'vtnweb/src/test/resources',
resources = glob(['vtnweb/src/test/resources/**']),
onos_app (
title = 'OPNFV App',
url = 'http://onosproject.org',
included_bundles = BUNDLES,
description = 'ONOS framework applications',
)
......
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//core/store/serializers:onos-core-serializers',
'//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc',
]
TEST_DEPS = [
'//lib:TEST_ADAPTERS',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//core/store/serializers:onos-core-serializers',
'//cli:onos-cli',
'//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
resources_root = 'src/main/resources',
resources = glob(['src/main/resources/**']),
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:org.apache.karaf.shell.console',
'//cli:onos-cli',
'//core/store/serializers:onos-core-serializers',
]
TEST_DEPS = [
'//lib:TEST_REST',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
)
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:javax.ws.rs-api',
'//utils/rest:onlab-rest',
'//apps/vtn/vtnrsc:onos-apps-vtn-vtnrsc',
]
TEST_DEPS = [
'//lib:TEST_REST',
'//utils/osgi:onlab-osgi-tests',
'//web/api:onos-rest-tests',
]
osgi_jar_with_tests (
deps = COMPILE_DEPS,
test_deps = TEST_DEPS,
)