| OLD | NEW |
| 1 #! -*- python -*- | 1 #! -*- python -*- |
| 2 # | 2 # |
| 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 import make_nacl_env | 7 import make_nacl_env |
| 8 import os | 8 import os |
| 9 | 9 |
| 10 nacl_env = make_nacl_env.NaClEnvironment( | 10 nacl_env = make_nacl_env.NaClEnvironment( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 nacl_env.AllNaClModules(sources, 'hex') | 22 nacl_env.AllNaClModules(sources, 'hex') |
| 23 | 23 |
| 24 | 24 |
| 25 | 25 |
| 26 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'hex') | 26 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'hex') |
| 27 | 27 |
| 28 nacl_install_root = os.getenv( | 28 nacl_install_root = os.getenv( |
| 29 'NACL_INSTALL_ROOT', os.path.join('C:%s' % os.sep, 'inetpub', 'wwwroot')) | 29 'NACL_INSTALL_ROOT', os.path.join('C:%s' % os.sep, 'inetpub', 'wwwroot')) |
| 30 install_dir = os.path.join(nacl_install_root, 'hex') | 30 install_dir = os.path.join(nacl_install_root, 'hex') |
| 31 | 31 |
| 32 cws_files = ['manifest.json', | 32 cws_files = ['manifest.json', 'hex_icon.png', 'hex_icon16.png'] |
| 33 os.path.join('images', 'hex_icon.png'), | |
| 34 os.path.join('images', 'hex_icon16.png'), | |
| 35 ] | |
| 36 | 33 |
| 37 install_cws = nacl_env.Install(dir=os.path.join(install_dir, 'cws'), | 34 install_cws = nacl_env.Install(dir=os.path.join(install_dir, 'cws'), |
| 38 source=cws_files) | 35 source=cws_files) |
| 39 | 36 |
| 40 # TODO - fix the 2 html files below | 37 # TODO - fix the 2 html files below |
| 41 app_files = ['about.html', | 38 app_files = ['about.html', |
| 42 'hex.nmf', | 39 'hex.nmf', |
| 43 'google0bfe793046475826.html', | 40 'google0bfe793046475826.html', |
| 44 'googlee7137647d2344460.html', | 41 'googlee7137647d2344460.html', |
| 45 'index.html', | 42 'index.html', |
| (...skipping 16 matching lines...) Expand all Loading... |
| 62 | 59 |
| 63 install_css = nacl_env.Install( | 60 install_css = nacl_env.Install( |
| 64 dir=os.path.join(install_dir, 'css'), | 61 dir=os.path.join(install_dir, 'css'), |
| 65 source=css_files) | 62 source=css_files) |
| 66 | 63 |
| 67 nacl_env.Alias('install', | 64 nacl_env.Alias('install', |
| 68 source=[install_cws, | 65 source=[install_cws, |
| 69 install_app, | 66 install_app, |
| 70 install_css, | 67 install_css, |
| 71 install_js]) | 68 install_js]) |
| OLD | NEW |