| OLD | NEW | 
|    1 # Copyright 2011 the V8 project authors. All rights reserved. |    1 # Copyright 2011 the V8 project authors. All rights reserved. | 
|    2 # Redistribution and use in source and binary forms, with or without |    2 # Redistribution and use in source and binary forms, with or without | 
|    3 # modification, are permitted provided that the following conditions are |    3 # modification, are permitted provided that the following conditions are | 
|    4 # met: |    4 # met: | 
|    5 # |    5 # | 
|    6 #     * Redistributions of source code must retain the above copyright |    6 #     * Redistributions of source code must retain the above copyright | 
|    7 #       notice, this list of conditions and the following disclaimer. |    7 #       notice, this list of conditions and the following disclaimer. | 
|    8 #     * Redistributions in binary form must reproduce the above |    8 #     * Redistributions in binary form must reproduce the above | 
|    9 #       copyright notice, this list of conditions and the following |    9 #       copyright notice, this list of conditions and the following | 
|   10 #       disclaimer in the documentation and/or other materials provided |   10 #       disclaimer in the documentation and/or other materials provided | 
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  236     preparser.cc |  236     preparser.cc | 
|  237     preparser-api.cc |  237     preparser-api.cc | 
|  238     scanner-base.cc |  238     scanner-base.cc | 
|  239     token.cc |  239     token.cc | 
|  240     unicode.cc |  240     unicode.cc | 
|  241     utils.cc |  241     utils.cc | 
|  242     """) |  242     """) | 
|  243 } |  243 } | 
|  244  |  244  | 
|  245  |  245  | 
|  246 D8_FILES = { |  246 D8_LIGHT_FILES = { | 
 |  247   'all': [ | 
 |  248     'd8.cc' | 
 |  249   ] | 
 |  250 } | 
 |  251  | 
 |  252  | 
 |  253 D8_FULL_FILES = { | 
|  247   'all': [ |  254   'all': [ | 
|  248     'd8.cc', 'd8-debug.cc' |  255     'd8.cc', 'd8-debug.cc' | 
|  249   ], |  256   ], | 
|  250   'os:linux': [ |  257   'os:linux': [ | 
|  251     'd8-posix.cc' |  258     'd8-posix.cc' | 
|  252   ], |  259   ], | 
|  253   'os:macos': [ |  260   'os:macos': [ | 
|  254     'd8-posix.cc' |  261     'd8-posix.cc' | 
|  255   ], |  262   ], | 
|  256   'os:android': [ |  263   'os:android': [ | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  316   env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
     ILE" --log-snapshot-positions') |  323   env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
     ILE" --log-snapshot-positions') | 
|  317  |  324  | 
|  318   def BuildJS2CEnv(type): |  325   def BuildJS2CEnv(type): | 
|  319     js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } |  326     js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } | 
|  320     if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: |  327     if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: | 
|  321       js2c_env['COMPRESSION'] = 'bz2' |  328       js2c_env['COMPRESSION'] = 'bz2' | 
|  322     return js2c_env |  329     return js2c_env | 
|  323  |  330  | 
|  324   # Build the standard platform-independent source files. |  331   # Build the standard platform-independent source files. | 
|  325   source_files = context.GetRelevantSources(SOURCES) |  332   source_files = context.GetRelevantSources(SOURCES) | 
|  326  |  | 
|  327   d8_files = context.GetRelevantSources(D8_FILES) |  | 
|  328   d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) |  333   d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) | 
|  329   d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) |  334   d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) | 
|  330   d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] |  335   if context.options['library'] == 'shared': | 
 |  336     d8_files = context.GetRelevantSources(D8_LIGHT_FILES) | 
 |  337     d8_objs = [] | 
 |  338   else: | 
 |  339     d8_files = context.GetRelevantSources(D8_FULL_FILES) | 
 |  340     d8_objs = [d8_js_obj] | 
 |  341   d8_objs.append(context.ConfigureObject(env, [d8_files])) | 
|  331  |  342  | 
|  332   # Combine the JavaScript library files into a single C++ file and |  343   # Combine the JavaScript library files into a single C++ file and | 
|  333   # compile it. |  344   # compile it. | 
|  334   library_files = [s for s in LIBRARY_FILES] |  345   library_files = [s for s in LIBRARY_FILES] | 
|  335   library_files.append('macros.py') |  346   library_files.append('macros.py') | 
|  336   libraries_src = env.JS2C( |  347   libraries_src = env.JS2C( | 
|  337     ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) |  348     ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) | 
|  338   libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) |  349   libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) | 
|  339  |  350  | 
|  340   # Combine the experimental JavaScript library files into a C++ file |  351   # Combine the experimental JavaScript library files into a C++ file | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  370       snapshot_cc = 'snapshot.cc' |  381       snapshot_cc = 'snapshot.cc' | 
|  371     snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |  382     snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 
|  372   else: |  383   else: | 
|  373     snapshot_obj = empty_snapshot_obj |  384     snapshot_obj = empty_snapshot_obj | 
|  374   library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj,
      snapshot_obj] |  385   library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj,
      snapshot_obj] | 
|  375   return (library_objs, d8_objs, [mksnapshot], preparser_objs) |  386   return (library_objs, d8_objs, [mksnapshot], preparser_objs) | 
|  376  |  387  | 
|  377  |  388  | 
|  378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() |  389 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() | 
|  379 Return('library_objs d8_objs mksnapshot preparser_objs') |  390 Return('library_objs d8_objs mksnapshot preparser_objs') | 
| OLD | NEW |