OLD | NEW |
| (Empty) |
1 #! -*- python -*- | |
2 # | |
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 | |
5 # found in the LICENSE file. | |
6 | |
7 import make_nacl_env | |
8 import os | |
9 | |
10 nacl_env = make_nacl_env.NaClEnvironment( | |
11 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM')) | |
12 nacl_env.Append( | |
13 # Add a CPPPATH that enables the full-path #include directives, such as | |
14 # #include "examples/sine_synth/sine_synth.h" | |
15 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))], | |
16 # Strict ANSI compliance. | |
17 EXTRA_CCFLAGS=['-pedantic'], | |
18 ) | |
19 | |
20 sources = ['hex_maniac.cc', 'hex_instance.cc'] | |
21 | |
22 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'hex') | |
23 | |
24 nacl_install_root = os.getenv( | |
25 'NACL_INSTALL_ROOT', os.path.join('C:%s' % os.sep, 'inetpub', 'wwwroot')) | |
26 install_dir = os.path.join(nacl_install_root, 'hex') | |
27 | |
28 cws_files = ['manifest.json', 'hex_icon.png', 'hex_icon16.png'] | |
29 | |
30 install_cws = nacl_env.Install(dir=os.path.join(install_dir, 'cws'), | |
31 source=cws_files) | |
32 | |
33 app_files = ['about.html', | |
34 'hex.nmf', | |
35 'index.html', | |
36 ] | |
37 | |
38 install_app = nacl_env.Install(dir=install_dir, | |
39 source=opt_nexes + app_files) | |
40 | |
41 js_files = [ | |
42 'hex.js', | |
43 ] | |
44 | |
45 install_js = nacl_env.Install(dir=install_dir, source=js_files) | |
46 | |
47 css_files = [ | |
48 'hex.css', | |
49 ] | |
50 | |
51 install_css = nacl_env.Install(dir=install_dir, source=css_files) | |
52 | |
53 nacl_env.Alias('install', | |
54 source=[install_cws, | |
55 install_app, | |
56 install_css, | |
57 install_js]) | |
OLD | NEW |