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

Side by Side Diff: ppapi/native_client/tests/nacl.scons

Issue 11079003: Clean up NaCl's SCons build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 2 months 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
(Empty)
1 # -*- python -*-
2 # Copyright 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can
4 # be found in the LICENSE file.
5
6 Import('env')
7
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
10 # 2) Sicking it in an arbitrary test's .scons file would be cryptic
11 binary = env.DownloadedChromeBinary()
12 node = env.Command(binary,
13 [env.File('${SCONSTRUCT_DIR}/DEPS')],
14 '${PYTHON} build/download_chrome.py '
15 '--arch=%s --dst=${CHROME_DOWNLOAD_DIR}' %
16 env.ChromeBinaryArch())
17 # This stops Scons from deleting the file before running the step above.
18 env.NoClean(binary)
19 env.Precious(binary)
20 env.Alias('download_chrome', node)
21
22 ################################################################################
23 ## Support
24 ## scons MODE=nacl html_examples
25 ## to build all examples linked from scons-out/.../staging/examples.html
26 ################################################################################
27
28 html_examples = env.Replicate('${STAGING_DIR}', 'examples.html')
29 env.Default(html_examples)
30 example_nexes = [
31 # SRPC Nexe Tests
32 'srpc_hw', # srpc_hw.html
33 'srpc_test', # srpc_basic.html, srpc_perf.html
34 'srpc_nrd_server', # srpc_nrd_xfer.html
35 'srpc_nrd_client', # srpc_nrd_xfer.html
36 # SRPC Nexe Performance
37 'mandel_tiled', # mandel_tiled.html
38 'autoloader_default', # autoloader.html',
39 # PPAPI Nexe Examples
40 'ppapi_basic_object', # basic_object.html
41 'ppapi_example_events', # ppapi_example_events.html
42 'ppapi_example_2d', # ppapi_example_2d.html
43 'ppapi_example_audio', # ppapi_example_audio.html
44 'ppapi_geturl', # ppapi_geturl.html
45 'ppapi_progress_events', # ppapi_progress_events.html
46 'earth_c', # earth_c.html
47 'earth_cc', # earth_cc.html
48 'ppapi_bad', # ppapi_bad.html
49 #TODO(polina): follow ppapi_bad's example to pull in all nexes
50 #'ppapi_crash' # ppapi_crash.html
51 # PPAPI Proxy Tests
52 'ppapi_ppb_core', # ppapi_ppb_core.html
53 'ppapi_ppb_graphics2d', # ppapi_ppb_graphics2d.html
54 'ppapi_ppb_file_system', # ppapi_ppb_file_system.html
55 'ppapi_ppb_image_data', # ppapi_ppb_image_data.html
56 'ppapi_ppb_instance', # ppapi_ppb_instance_data.html
57 'ppapi_ppb_memory', # ppapi_ppb_memory.html
58 'ppapi_messaging', # ppapi_messaging.html
59 'ppapi_ppb_scrollbar', # ppapi_ppb_scrollbar.html
60 'ppapi_ppb_url_request_info', # ppapi_ppb_url_request_info.html
61 'ppapi_ppp_instance', # ppapi_ppp_instance.html
62 ]
63
64 prog_suffix = env['PROGSUFFIX']
65 env.Depends(html_examples,
66 [ env.Alias(nexe + prog_suffix) for nexe in example_nexes ])
67 env.Alias('html_examples', html_examples) # scons --mode=nacl examples_html
68 env.Alias('examples_html', html_examples) # scons --mode=nacl html_examples
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698