| OLD | NEW |
| (Empty) | |
| 1 # -*- python -*- |
| 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 |
| 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 # PPAPI Nexe Examples |
| 32 'ppapi_basic_object', # basic_object.html |
| 33 'ppapi_example_events', # ppapi_example_events.html |
| 34 'ppapi_example_2d', # ppapi_example_2d.html |
| 35 'ppapi_example_audio', # ppapi_example_audio.html |
| 36 'ppapi_geturl', # ppapi_geturl.html |
| 37 'ppapi_progress_events', # ppapi_progress_events.html |
| 38 'earth_c', # earth_c.html |
| 39 'earth_cc', # earth_cc.html |
| 40 'ppapi_bad', # ppapi_bad.html |
| 41 #TODO(polina): follow ppapi_bad's example to pull in all nexes |
| 42 #'ppapi_crash' # ppapi_crash.html |
| 43 # PPAPI Proxy Tests |
| 44 'ppapi_ppb_core', # ppapi_ppb_core.html |
| 45 'ppapi_ppb_graphics2d', # ppapi_ppb_graphics2d.html |
| 46 'ppapi_ppb_file_system', # ppapi_ppb_file_system.html |
| 47 'ppapi_ppb_image_data', # ppapi_ppb_image_data.html |
| 48 'ppapi_ppb_instance', # ppapi_ppb_instance_data.html |
| 49 'ppapi_ppb_memory', # ppapi_ppb_memory.html |
| 50 'ppapi_messaging', # ppapi_messaging.html |
| 51 'ppapi_ppb_scrollbar', # ppapi_ppb_scrollbar.html |
| 52 'ppapi_ppb_url_request_info', # ppapi_ppb_url_request_info.html |
| 53 'ppapi_ppp_instance', # ppapi_ppp_instance.html |
| 54 ] |
| 55 |
| 56 prog_suffix = env['PROGSUFFIX'] |
| 57 env.Depends(html_examples, |
| 58 [ env.Alias(nexe + prog_suffix) for nexe in example_nexes ]) |
| 59 env.Alias('html_examples', html_examples) # scons --mode=nacl examples_html |
| 60 env.Alias('examples_html', html_examples) # scons --mode=nacl html_examples |
| OLD | NEW |