BUCK 6.91 KB
CORE = [
    '//utils/osgi:onlab-osgi',
    '//utils/junit:onlab-junit',
    '//utils/misc:onlab-misc',
    '//utils/rest:onlab-rest',

    '//core/api:onos-api',
    '//core/net:onos-core-net',
    '//core/common:onos-core-common',
    '//core/store/primitives:onos-core-primitives',
    '//core/store/serializers:onos-core-serializers',
    '//core/store/dist:onos-core-dist',
    '//core/security:onos-security',
    '//core/store/persistence:onos-core-persistence',

    '//incubator/api:onos-incubator-api',
    '//incubator/net:onos-incubator-net',
    '//incubator/core:onos-incubator-core',
    '//incubator/store:onos-incubator-store',
    '//incubator/rpc:onos-incubator-rpc',

    '//cli:onos-cli',

    '//protocols/rest/api:onos-restsb-api',
    '//protocols/rest/ctl:onos-restsb-ctl',
    '//protocols/bgp/bgpio:onos-bgpio',
    '//protocols/bgp/api:onos-bgp-api',
    '//protocols/bgp/ctl:onos-bgp-ctl',
    '//protocols/netconf/api:onos-netconf-api',
    '//protocols/netconf/ctl:onos-netconf-ctl',
    '//protocols/openflow/api:onos-of-api',
    '//protocols/openflow/ctl:onos-of-ctl',
    '//protocols/ospf/api:onos-ospf-api',
    '//protocols/ospf/protocol:onos-ospf-protocol',
    '//protocols/ospf/ctl:onos-ospf-ctl',
    '//protocols/ovsdb/rfc:onos-ovsdb-rfc',
    '//protocols/ovsdb/api:onos-ovsdb-api',
    '//protocols/ovsdb/ctl:onos-ovsdb-ctl',
    '//protocols/pcep/pcepio:onos-pcep-pcepio',
    '//protocols/pcep/api:onos-pcep-controller-api',
    '//protocols/pcep/ctl:onos-pcep-ctl',
    '//protocols/snmp/api:onos-snmp-api',
    '//protocols/snmp/ctl:onos-snmp-ctl',
    '//protocols/isis:onos-isis-api',
    '//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',

    '//providers/bgp/cfg:onos-bgp-provider-cfg',
    '//providers/bgp/flow:onos-bgp-provider-flow',
    '//providers/bgp/topology:onos-bgp-provider-topology',
    '//providers/host:onos-host-provider',
    '//providers/lldpcommon:onos-lldp-provider-common',
    '//providers/netcfglinks:onos-netcfg-links-provider',
    '//providers/lldp:onos-lldp-provider',
    '//providers/netconf/device:onos-netconf-provider-device',
    '//providers/netcfghost:onos-netcfg-links-provider',
    '//providers/null:onos-null-providers',
    '//providers/openflow/device:onos-of-provider-device',
    '//providers/openflow/flow:onos-of-provider-flow',
    '//providers/openflow/group:onos-of-provider-group',
    '//providers/openflow/message:onos-of-provider-message',
    '//providers/openflow/meter:onos-of-provider-meter',
    '//providers/openflow/packet:onos-of-provider-packet',
    '//providers/ovsdb/device:onos-ovsdb-provider-device',
    '//providers/ovsdb/host:onos-ovsdb-provider-host',
    '//providers/ovsdb/tunnel:onos-ovsdb-provider-tunnel',
    '//providers/rest/device:onos-restsb-provider-device',
    '//providers/snmp/device:onos-snmp-provider-device',

    '//web/api:onos-rest',
    '//web/gui:onos-gui',
]

APPS = [
    '//providers/pcep:onos-providers-pcep-oar',
    '//apps/dhcp:onos-apps-dhcp-oar',
    '//apps/fwd:onos-apps-fwd-oar',
    '//apps/aaa:onos-apps-aaa-oar',
    '//apps/acl:onos-apps-acl-oar',
    '//apps/bgprouter:onos-apps-bgprouter-oar',
    '//apps/proxyarp:onos-apps-proxyarp-oar',
    '//apps/segmentrouting:onos-apps-segmentrouting-oar',
    '//apps/gangliametrics:onos-apps-gangliametrics-oar',
    '//apps/graphitemetrics:onos-apps-graphitemetrics-oar',
    '//apps/igmp:onos-apps-igmp-oar',
    '//apps/cordmcast:onos-apps-cordmcast-oar',
    '//apps/olt:onos-apps-olt-oar',
    '//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar',
    '//apps/metrics:onos-apps-metrics-oar',
    '//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',
    '//apps/pcep-api:onos-apps-pcep-api-oar',
    '//apps/pim:onos-apps-pim-oar',
    '//apps/reactive-routing:onos-apps-reactive-routing-oar',
    '//apps/sdnip:onos-apps-sdnip-oar',
    '//apps/virtualbng:onos-apps-virtualbng-oar',
    '//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 = [
    '//apps/cpman/api:onos-app-cpman-api',
    '//apps/cpman/app:onos-app-cpman-app',
    '//apps/routing-api:onos-apps-routing-api',
    '//apps/cip:onos-app-cip',
    '//apps/dhcp/api:onos-apps-dhcp-api',
    '//apps/dhcp/app:onos-apps-dhcp-app',
    '//apps/drivermatrix:onos-app-drivermatrix',
    '//apps/events:onos-app-events',
    '//apps/faultmanagement:onos-app-fm',
    '//apps/flowanalyzer:onos-app-flowanalyzer',
    '//apps/fwd:onos-apps-fwd',
    '//apps/olt:onos-apps-olt-api',
    '//apps/iptopology-api:onos-apps-iptopology-api',
    '//apps/openstacknode:onos-apps-openstacknode',
    '//apps/routing:onos-apps-routing',
    '//apps/test:onos-app-test',
    '//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 = 'core',
    visibility = ['PUBLIC'],
    deps = CORE,
)

java_library(
    name = 'apps',
    visibility = ['PUBLIC'],
    deps = APPS + APP_JARS,
)

java_library(
    name = 'onos',
    visibility = ['PUBLIC'],
    deps = [ ':core', ':apps' ]
)

INSTALL = [
    '//utils/misc:onlab-misc-install',
    '//utils/osgi:onlab-osgi-install',
    '//utils/rest:onlab-rest-install',

    '//core/api:onos-api-install',
    '//incubator/api:onos-incubator-api-install',

    '//core/net:onos-core-net-install',
    '//core/common:onos-core-common-install',
    '//core/store/dist:onos-core-dist-install',
    '//core/store/primitives:onos-core-primitives-install',
    '//core/store/persistence:onos-core-persistence-install',
    '//core/store/serializers:onos-core-serializers-install',

    '//incubator/net:onos-incubator-net-install',
    '//incubator/core:onos-incubator-core-install',
    '//incubator/store:onos-incubator-store-install',
    '//incubator/rpc:onos-incubator-rpc-install',

    '//core/security:onos-security-install',

    '//web/api:onos-rest-install',
    '//web/gui:onos-gui-install',
    '//cli:onos-cli-install',
]
java_library(
    name = 'install',
    visibility = ['PUBLIC'],
    deps = INSTALL
)