Brian O'Connor | 9e1352f | 2016-04-29 17:13:33 -0700 | [diff] [blame] | 1 | KARAF = '//lib:apache-karaf' |
| 2 | BRANDING = '//tools/package/branding:onos-tools-package-branding' |
| 3 | |
| 4 | FEATURES = [ |
| 5 | '//features:onos-thirdparty-base', |
| 6 | '//features:onos-thirdparty-web', |
| 7 | '//features:onos-api', |
| 8 | '//features:onos-core', |
| 9 | '//features:onos-incubator', |
| 10 | '//features:onos-rest', |
| 11 | '//features:onos-gui', |
| 12 | '//features:onos-cli', |
| 13 | #'//features:onos-security', |
| 14 | ] |
| 15 | |
| 16 | #FIXME this list is currently mirrored from the root Buck file |
| 17 | APPS = [ |
| 18 | #Drivers |
| 19 | '//drivers/default:onos-drivers-default-oar', |
| 20 | |
| 21 | # Providers |
| 22 | '//providers/bgp:onos-providers-bgp-oar', |
| 23 | '//providers/host:onos-providers-host-oar', |
| 24 | '//providers/lldp:onos-providers-lldp-oar', |
| 25 | '//providers/netcfghost:onos-providers-netcfghost-oar', |
| 26 | '//providers/netcfglinks:onos-providers-netcfglinks-oar', |
| 27 | '//providers/netconf:onos-providers-netconf-oar', |
| 28 | '//providers/openflow/message:onos-providers-openflow-message-oar', |
| 29 | '//providers/ovsdb:onos-providers-ovsdb-oar', |
| 30 | '//providers/pcep:onos-providers-pcep-oar', |
| 31 | '//providers/null:onos-providers-null-oar', |
| 32 | '//providers/openflow/base:onos-providers-openflow-base-oar', |
Thomas Vachuska | 777dbd7 | 2016-05-04 10:10:11 -0700 | [diff] [blame] | 33 | '//providers/openflow/app:onos-providers-openflow-app-oar', |
Brian O'Connor | 9e1352f | 2016-04-29 17:13:33 -0700 | [diff] [blame] | 34 | '//providers/rest:onos-providers-rest-oar', |
| 35 | '//providers/isis:onos-providers-isis-oar', |
Ray Milkey | 43702bf | 2016-05-04 10:40:55 -0700 | [diff] [blame^] | 36 | '//providers/ovsdb/host:onos-providers-ovsdb-host-oar', |
| 37 | '//providers/ovsdb/base:onos-providers-ovsdb-base-oar', |
Brian O'Connor | 9e1352f | 2016-04-29 17:13:33 -0700 | [diff] [blame] | 38 | |
| 39 | # Apps |
| 40 | '//apps/dhcp:onos-apps-dhcp-oar', |
| 41 | '//apps/fwd:onos-apps-fwd-oar', |
| 42 | '//apps/aaa:onos-apps-aaa-oar', |
| 43 | '//apps/acl:onos-apps-acl-oar', |
| 44 | '//apps/bgprouter:onos-apps-bgprouter-oar', |
| 45 | '//apps/proxyarp:onos-apps-proxyarp-oar', |
| 46 | '//apps/segmentrouting:onos-apps-segmentrouting-oar', |
| 47 | '//apps/gangliametrics:onos-apps-gangliametrics-oar', |
| 48 | '//apps/graphitemetrics:onos-apps-graphitemetrics-oar', |
| 49 | '//apps/igmp:onos-apps-igmp-oar', |
| 50 | '//apps/cordmcast:onos-apps-cordmcast-oar', |
| 51 | '//apps/olt:onos-apps-olt-oar', |
| 52 | '//apps/influxdbmetrics:onos-apps-influxdbmetrics-oar', |
| 53 | '//apps/metrics:onos-apps-metrics-oar', |
| 54 | '//apps/mfwd:onos-apps-mfwd-oar', |
| 55 | '//apps/mlb:onos-apps-mlb-oar', |
| 56 | '//apps/openstackinterface:onos-apps-openstackinterface-oar', |
| 57 | '//apps/openstacknetworking:onos-apps-openstacknetworking-oar', |
| 58 | '//apps/openstacknetworking/openstackrouting:onos-apps-openstacknetworking-openstackrouting-oar', |
| 59 | '//apps/openstacknetworking/openstackswitching:onos-apps-openstacknetworking-openstackswitching-oar', |
| 60 | '//apps/mobility:onos-apps-mobility-oar', |
| 61 | '//apps/optical:onos-apps-optical-oar', |
| 62 | '//apps/pathpainter:onos-apps-pathpainter-oar', |
| 63 | '//apps/pcep-api:onos-apps-pcep-api-oar', |
| 64 | '//apps/pim:onos-apps-pim-oar', |
| 65 | '//apps/reactive-routing:onos-apps-reactive-routing-oar', |
| 66 | '//apps/sdnip:onos-apps-sdnip-oar', |
| 67 | '//apps/virtualbng:onos-apps-virtualbng-oar', |
| 68 | '//apps/cordvtn:onos-apps-cordvtn-oar', |
| 69 | '//apps/vpls:onos-apps-vpls-oar', |
| 70 | '//apps/vrouter:onos-apps-vrouter-oar', |
| 71 | '//apps/vtn:onos-apps-vtn-oar', |
| 72 | '//apps/faultmanagement:onos-apps-faultmanagement-oar', |
| 73 | '//apps/openstacknode:onos-apps-openstacknode-oar', |
| 74 | '//apps/cpman/app:onos-apps-cpman-app-oar', |
| 75 | '//apps/xosclient:onos-apps-xosclient-oar', |
| 76 | ] |
| 77 | |
| 78 | #TODO move to buck-tools |
| 79 | export_file ( |
| 80 | name = 'onos-prep-karaf', |
| 81 | ) |
| 82 | |
| 83 | genrule( |
| 84 | name = 'onos-karaf', |
| 85 | srcs = glob(['bin/*', 'etc/*', 'init/*']), |
| 86 | bash = '$(location :onos-prep-karaf) $OUT $(location %s) %s $(location %s)'\ |
| 87 | % (KARAF, ONOS_VERSION, BRANDING), |
| 88 | out = 'karaf.zip', |
| 89 | ) |
| 90 | |
| 91 | compile_features( |
| 92 | name = 'onos-features', |
| 93 | features = FEATURES, |
| 94 | ) |
| 95 | |
| 96 | staged_repos = ['$(location %s-repo)' % f for f in FEATURES] |
| 97 | staged_apps = ['$(location %s)' % a for a in APPS] |
| 98 | |
| 99 | # feature_coords = 'foo:bar:1.3' |
| 100 | sources = [ '$(location :onos-features)', ] |
| 101 | sources += staged_repos + staged_apps |
| 102 | |
| 103 | genrule( |
| 104 | name = 'onos-package', |
Brian O'Connor | 92ec213 | 2016-05-03 17:30:25 -0700 | [diff] [blame] | 105 | out = 'onos.tar.gz', |
Brian O'Connor | 65c0bdf | 2016-05-03 18:40:17 -0700 | [diff] [blame] | 106 | bash = '$(exe //buck-tools:onos-stage) $OUT $(location :onos-karaf) ' + ' '.join(sources), |
Brian O'Connor | 9e1352f | 2016-04-29 17:13:33 -0700 | [diff] [blame] | 107 | visibility = [ 'PUBLIC' ], |
Ray Milkey | 43702bf | 2016-05-04 10:40:55 -0700 | [diff] [blame^] | 108 | ) |