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

Side by Side Diff: examples/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
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 os 7 import os
8 import sys 8 import sys
9 9
10 """ 10 """
(...skipping 20 matching lines...) Expand all
31 * build a target: ./scons <target> 31 * build a target: ./scons <target>
32 * clean a target: ./scons -c <target> 32 * clean a target: ./scons -c <target>
33 33
34 Supported targets: 34 Supported targets:
35 * fullscreen_tumbler Build the fullscreen-tumbler example. 35 * fullscreen_tumbler Build the fullscreen-tumbler example.
36 * geturl Build the geturl example. 36 * geturl Build the geturl example.
37 * hello_world Build the hello_world example. 37 * hello_world Build the hello_world example.
38 * hello_world_c Build the hello_world_c example. 38 * hello_world_c Build the hello_world_c example.
39 * input_events Build the input_events example. 39 * input_events Build the input_events example.
40 * load_progress Build the load_progress example. 40 * load_progress Build the load_progress example.
41 * mouselock Build the mouselock example.
41 * multithreaded_input_events Build the multithreaded input_events example. 42 * multithreaded_input_events Build the multithreaded input_events example.
42 * pi_generator Build the pi_generator example. 43 * pi_generator Build the pi_generator example.
43 * pong Build the pong example. 44 * pong Build the pong example.
44 * sine_synth Build the sine_synth example. 45 * sine_synth Build the sine_synth example.
45 * tumbler Build the tumbler example. 46 * tumbler Build the tumbler example.
46 """ 47 """
47 48
48 example_sconscripts = ['fullscreen_tumbler/build.scons', 49 example_sconscripts = ['fullscreen_tumbler/build.scons',
49 'geturl/build.scons', 50 'geturl/build.scons',
50 'hello_world/build.scons', 51 'hello_world/build.scons',
51 'hello_world_c/build.scons', 52 'hello_world_c/build.scons',
52 'input_events/build.scons', 53 'input_events/build.scons',
53 'load_progress/build.scons', 54 'load_progress/build.scons',
55 'mouselock/build.scons',
54 'multithreaded_input_events/build.scons', 56 'multithreaded_input_events/build.scons',
55 'pi_generator/build.scons', 57 'pi_generator/build.scons',
56 'pong/build.scons', 58 'pong/build.scons',
57 'sine_synth/build.scons', 59 'sine_synth/build.scons',
58 'tumbler/build.scons', 60 'tumbler/build.scons',
59 ] 61 ]
60 62
61 Help(HELP_STRING) 63 Help(HELP_STRING)
62 64
63 staging_dir = os.path.abspath(os.getenv( 65 staging_dir = os.path.abspath(os.getenv(
64 'NACL_INSTALL_ROOT', os.path.join(os.getenv('NACL_SDK_ROOT', '.'), 66 'NACL_INSTALL_ROOT', os.path.join(os.getenv('NACL_SDK_ROOT', '.'),
65 'staging'))) 67 'staging')))
66 general_files = Install(staging_dir, ['httpd.py']) 68 general_files = Install(staging_dir, ['httpd.py'])
67 general_files.append(InstallAs(os.path.join(staging_dir, 'index.html'), 69 general_files.append(InstallAs(os.path.join(staging_dir, 'index.html'),
68 'index_staging.html')) 70 'index_staging.html'))
69 71
70 if sys.platform in ['win32', 'cygwin']: 72 if sys.platform in ['win32', 'cygwin']:
71 general_files.append(Install(staging_dir, 'httpd.cmd')) 73 general_files.append(Install(staging_dir, 'httpd.cmd'))
72 74
73 SConscript(example_sconscripts) 75 SConscript(example_sconscripts)
74 76
75 if not GetOption('clean'): 77 if not GetOption('clean'):
76 Default(['install', general_files]) 78 Default(['install', general_files])
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698