Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Side by Side Diff: examples/mouselock/build.scons

Issue 8510041: Add a mouselock example. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « examples/index_staging.html ('k') | examples/mouselock/mouselock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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(
11 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM'), 11 use_c_plus_plus_libs=True, nacl_platform=os.getenv('NACL_TARGET_PLATFORM'),
12 install_subdir='load_progress', lib_prefix='..') 12 install_subdir='mouselock', lib_prefix='..')
13 nacl_env.Append( 13 nacl_env.Append(
14 # Add a CPPPATH that enables the full-path #include directives, such as 14 # Add a CPPPATH that enables the full-path #include directives, such as
15 # #include "examples/sine_synth/sine_synth.h" 15 # #include "examples/sine_synth/sine_synth.h"
16 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))], 16 CPPPATH=[os.path.dirname(os.path.dirname(os.getcwd()))],
17 # Strict ANSI compliance. 17 # Strict ANSI compliance.
18 CCFLAGS=['-pedantic', '-Werror'], 18 CCFLAGS=['-pedantic', '-Werror'],
19 ) 19 )
20 20
21 sources = ['load_progress.cc'] 21 sources = ['mouselock.cc']
22 22
23 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'load_progress') 23 opt_nexes, dbg_nexes = nacl_env.AllNaClModules(sources, 'mouselock')
24 24
25 # This target is used by the SDK build system to provide a prebuilt version 25 # This target is used by the SDK build system to provide a prebuilt version
26 # of the example in the SDK installer. 26 # of the example in the SDK installer.
27 nacl_env.InstallPrebuilt('load_progress') 27 nacl_env.InstallPrebuilt('mouselock')
28 28
29 common_files = [ 29 common_files = [
30 'check_browser.js', 30 'check_browser.js',
31 ] 31 ]
32 common_files = [ 32 common_files = [
33 os.path.join(os.path.dirname(os.getcwd()), 'common', common_file) 33 os.path.join(os.path.dirname(os.getcwd()), 'common', common_file)
34 for common_file in common_files] 34 for common_file in common_files]
35 35
36 app_files = [ 36 app_files = [
37 'load_progress.html', 37 'mouselock.html',
38 'load_progress.nmf', 38 'mouselock.nmf',
39 ] 39 ]
40 40
41 # Split the install of the .nexes from the other app sources so that the strip 41 # Split the install of the .nexes from the other app sources so that the strip
42 # action is applied to the .nexes only. 42 # action is applied to the .nexes only.
43 install_nexes = nacl_env.NaClStrippedInstall(dir=nacl_env['NACL_INSTALL_ROOT'], 43 install_nexes = nacl_env.NaClStrippedInstall(dir=nacl_env['NACL_INSTALL_ROOT'],
44 source=opt_nexes) 44 source=opt_nexes)
45 install_app = nacl_env.Install(dir=nacl_env['NACL_INSTALL_ROOT'], 45 install_app = nacl_env.Install(dir=nacl_env['NACL_INSTALL_ROOT'],
46 source=app_files) 46 source=app_files)
47 common_dir = os.path.join(os.path.dirname(nacl_env['NACL_INSTALL_ROOT']), 47 common_dir = os.path.join(os.path.dirname(nacl_env['NACL_INSTALL_ROOT']),
48 'common') 48 'common')
49 install_common = nacl_env.Install(dir=common_dir, source=common_files) 49 install_common = nacl_env.Install(dir=common_dir, source=common_files)
50 nacl_env.Alias('install', 50 nacl_env.Alias('install',
51 source=[install_app, install_common, install_nexes]) 51 source=[install_app, install_common, install_nexes])
OLDNEW
« no previous file with comments | « examples/index_staging.html ('k') | examples/mouselock/mouselock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698