OLD | NEW |
---|---|
(Empty) | |
1 #! -*- python -*- | |
Matt Ball
2011/11/10 15:03:11
I'm guessing that this was copied from one of the
der Springer
2011/11/11 19:23:01
Done.
| |
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 install_subdir='mouselock', lib_prefix='..') | |
13 nacl_env.Append( | |
14 # Add a CPPPATH that enables the full-path #include directives, such as | |
15 # #include "examples/sine_synth/sine_synth.h" | |
16 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))], | |
17 # Strict ANSI compliance. | |
18 CCFLAGS=['-pedantic', '-Werror'], | |
19 ) | |
20 | |
21 sources = ['mouselock.cc'] | |
22 | |
23 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'mouselock') | |
24 | |
25 # This target is used by the SDK build system to provide a prebuilt version | |
26 # of the example in the SDK installer. | |
27 nacl_env.InstallPrebuilt('mouselock') | |
28 | |
29 common_files = [ | |
30 'check_browser.js', | |
31 ] | |
32 common_files = [ | |
33 os.path.join(os.path.dirname(os.getcwd()), 'common', common_file) | |
34 for common_file in common_files] | |
35 | |
36 app_files = [ | |
37 'mouselock.html', | |
38 'mouselock.nmf', | |
39 ] | |
40 | |
41 # Split the install of the .nexes from the other app sources so that the strip | |
42 # action is applied to the .nexes only. | |
43 install_nexes = nacl_env.NaClStrippedInstall(dir=nacl_env['NACL_INSTALL_ROOT'], | |
44 source=opt_nexes) | |
45 install_app = nacl_env.Install(dir=nacl_env['NACL_INSTALL_ROOT'], | |
46 source=app_files) | |
47 common_dir = os.path.join(os.path.dirname(nacl_env['NACL_INSTALL_ROOT']), | |
48 'common') | |
49 install_common = nacl_env.Install(dir=common_dir, source=common_files) | |
50 nacl_env.Alias('install', | |
51 source=[install_app, install_common, install_nexes]) | |
OLD | NEW |