Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame^] | 1 | NODE_VERSION = '8.0.1' |
| 2 | |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 3 | COMPILE_DEPS = [ |
| 4 | '//lib:CORE_DEPS', |
| 5 | '//lib:javax.ws.rs-api', |
| 6 | '//lib:servlet-api', |
| 7 | '//lib:jetty-websocket', |
| 8 | '//lib:jetty-util', |
| 9 | '//lib:jersey-media-multipart', |
Simon Hunt | 10973dd | 2016-08-01 15:50:35 -0700 | [diff] [blame] | 10 | '//lib:org.apache.karaf.shell.console', |
| 11 | '//cli:onos-cli', |
Ray Milkey | 2a74983 | 2016-08-02 15:22:20 -0700 | [diff] [blame] | 12 | '//lib:jersey-server', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 13 | '//incubator/api:onos-incubator-api', |
| 14 | '//incubator/net:onos-incubator-net', |
| 15 | '//utils/rest:onlab-rest', |
| 16 | '//core/store/serializers:onos-core-serializers', |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame^] | 17 | ':onos-tools-gui' |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 18 | ] |
| 19 | |
| 20 | TEST_DEPS = [ |
| 21 | '//lib:TEST', |
Ray Milkey | 0c2a28f | 2016-04-28 10:17:19 -0700 | [diff] [blame] | 22 | '//core/api:onos-api-tests', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 23 | ] |
| 24 | |
Brian O'Connor | 79b7067 | 2016-10-20 13:44:52 -0700 | [diff] [blame] | 25 | RESOURCES = { |
| 26 | 'WEB-INF/classes/index.html': 'src/main/webapp/index.html', |
| 27 | 'WEB-INF/classes/login.html': 'src/main/webapp/login.html', |
| 28 | 'WEB-INF/classes/error.html': 'src/main/webapp/error.html', |
| 29 | 'WEB-INF/classes/not-ready.html': 'src/main/webapp/not-ready.html', |
| 30 | 'WEB-INF/classes/onos.js': 'src/main/webapp/onos.js', |
| 31 | 'WEB-INF/classes/nav.html': 'src/main/webapp/nav.html', |
| 32 | 'WEB-INF/classes/app/view': 'src/main/webapp/app/view', |
| 33 | 'WEB-INF/classes/raw': 'src/main/webapp/raw', |
| 34 | } |
Brian O'Connor | e5817c9 | 2016-04-06 15:41:48 -0700 | [diff] [blame] | 35 | |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame^] | 36 | include_defs('//bucklets/node.bucklet') |
| 37 | sh_src='onos-gui-build' |
| 38 | |
| 39 | fetch_node(version = 'v8.1.2') |
| 40 | |
| 41 | export_file ( |
| 42 | name = 'onos-tools-gui-exe', |
| 43 | src = sh_src, |
| 44 | visibility = [ 'PUBLIC' ], |
| 45 | ) |
| 46 | |
| 47 | genrule( |
| 48 | name = 'onos-tools-gui', |
| 49 | srcs = ['src/main/webapp'], |
| 50 | bash = '$(location :onos-tools-gui-exe) ' |
| 51 | + '$(location //web/gui:node-release-v8.1.2) ' |
| 52 | + '$(location //web/gui:node-bin-v8.1.2) > $OUT', |
| 53 | cmd_exe = '', |
| 54 | out = 'onos-tools-gui.log', |
| 55 | visibility = [ 'PUBLIC' ], |
| 56 | ) |
| 57 | |
Brian O'Connor | e4da59d | 2016-04-08 00:32:18 -0700 | [diff] [blame] | 58 | osgi_jar_with_tests ( |
| 59 | name = 'onos-gui', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 60 | deps = COMPILE_DEPS, |
Brian O'Connor | e4da59d | 2016-04-08 00:32:18 -0700 | [diff] [blame] | 61 | test_deps = TEST_DEPS, |
Brian O'Connor | 79b7067 | 2016-10-20 13:44:52 -0700 | [diff] [blame] | 62 | include_resources = RESOURCES, |
Brian O'Connor | e5817c9 | 2016-04-06 15:41:48 -0700 | [diff] [blame] | 63 | web_context = '/onos/ui', |
Steven Burrows | a145e10 | 2017-06-16 13:37:50 -0400 | [diff] [blame^] | 64 | do_javadocs = False, |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 65 | ) |