OLD | NEW |
1 # -*- python -*- | 1 # -*- python -*- |
2 # Copyright 2011 The Native Client Authors. All rights reserved. | 2 # Copyright 2011 The Native Client Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can | 3 # Use of this source code is governed by a BSD-style license that can |
4 # be found in the LICENSE file. | 4 # be found in the LICENSE file. |
5 | 5 |
6 Import('env') | 6 Import('env') |
7 | 7 |
8 # This command is placed in its own nacl.cons file because: | 8 # This command is placed in its own nacl.cons file because: |
9 # 1) It gives it access to the same environment as the tests | 9 # 1) It gives it access to the same environment as the tests |
10 # 2) Sicking it in an arbitrary test's .scons file would be cryptic | 10 # 2) Sicking it in an arbitrary test's .scons file would be cryptic |
(...skipping 11 matching lines...) Expand all Loading... |
22 ################################################################################ | 22 ################################################################################ |
23 ## Support | 23 ## Support |
24 ## scons MODE=nacl html_examples | 24 ## scons MODE=nacl html_examples |
25 ## to build all examples linked from scons-out/.../staging/examples.html | 25 ## to build all examples linked from scons-out/.../staging/examples.html |
26 ################################################################################ | 26 ################################################################################ |
27 | 27 |
28 html_examples = env.Replicate('${STAGING_DIR}', 'examples.html') | 28 html_examples = env.Replicate('${STAGING_DIR}', 'examples.html') |
29 env.Default(html_examples) | 29 env.Default(html_examples) |
30 example_nexes = [ | 30 example_nexes = [ |
31 # SRPC Nexe Tests | 31 # SRPC Nexe Tests |
32 'srpc_hw.nexe', # srpc_hw.html, srpc_hw_fd.html | 32 'srpc_hw', # srpc_hw.html, srpc_hw_fd.html |
33 'srpc_test.nexe', # srpc_basic.html, srpc_plugin.html, srpc_perf.html | 33 'srpc_test', # srpc_basic.html, srpc_plugin.html, srpc_perf.html |
34 'srpc_shm.nexe', # srpc_shm.html | 34 'srpc_shm', # srpc_shm.html |
35 'srpc_nrd_server.nexe', # srpc_nrd_xfer.html, srpc_sockaddr.html | 35 'srpc_nrd_server', # srpc_nrd_xfer.html, srpc_sockaddr.html |
36 'srpc_nrd_client.nexe', # srpc_nrd_xfer.html, srpc_plugin.html | 36 'srpc_nrd_client', # srpc_nrd_xfer.html, srpc_plugin.html |
37 'cat.nexe', # srpc_url_as_nacl_desc.html | 37 'cat', # srpc_url_as_nacl_desc.html |
38 # SRPC Nexe Performance | 38 # SRPC Nexe Performance |
39 'mandel_tiled.nexe', # mandel_tiled.html | 39 'mandel_tiled', # mandel_tiled.html |
40 'autoloader_default.nexe', # autoloader.html', | 40 'autoloader_default', # autoloader.html', |
41 # PPAPI Nexe Examples | 41 # PPAPI Nexe Examples |
42 'ppapi_basic_object.nexe', # basic_object.html | 42 'ppapi_basic_object', # basic_object.html |
43 'ppapi_event_example.nexe', # event_example.html | 43 'ppapi_event_example', # event_example.html |
44 'ppapi_example_2d.nexe', # ppapi_example_2d.html | 44 'ppapi_example_2d', # ppapi_example_2d.html |
45 'ppapi_example_audio.nexe', # ppapi_example_audio.html | 45 'ppapi_example_audio', # ppapi_example_audio.html |
46 'ppapi_geturl.nexe', # ppapi_geturl.html | 46 'ppapi_geturl', # ppapi_geturl.html |
47 'ppapi_progress_events.nexe', # ppapi_progress_events.html | 47 'ppapi_progress_events', # ppapi_progress_events.html |
48 'earth_c.nexe', # earth_c.html | 48 'earth_c', # earth_c.html |
49 'earth_cc.nexe', # earth_cc.html | 49 'earth_cc', # earth_cc.html |
50 'ppapi_bad', # ppapi_bad.html | 50 'ppapi_bad', # ppapi_bad.html |
51 # PPAPI Proxy Tests | 51 # PPAPI Proxy Tests |
52 'ppapi_core.nexe', # ppapi_core.html | 52 'ppapi_core', # ppapi_core.html |
53 'ppapi_ppb_graphics2d.nexe', # ppapi_ppb_graphics2d.html | 53 'ppapi_ppb_graphics2d', # ppapi_ppb_graphics2d.html |
54 'ppapi_file_system.nexe', # ppapi_file_system.html | 54 'ppapi_file_system', # ppapi_file_system.html |
55 'ppapi_messaging.nexe', # ppapi_messaging.html | 55 'ppapi_messaging', # ppapi_messaging.html |
56 ] | 56 ] |
57 | 57 |
58 env.Depends(html_examples, [ env.Alias(nexe) for nexe in example_nexes ]) | 58 prog_suffix = env['PROGSUFFIX'] |
| 59 env.Depends(html_examples, |
| 60 [ env.Alias(nexe+prog_suffix) for nexe in example_nexes ]) |
59 env.Alias('html_examples', html_examples) # scons --mode=nacl examples_html | 61 env.Alias('html_examples', html_examples) # scons --mode=nacl examples_html |
60 env.Alias('examples_html', html_examples) # scons --mode=nacl html_examples | 62 env.Alias('examples_html', html_examples) # scons --mode=nacl html_examples |
OLD | NEW |