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

Side by Side Diff: src/SConscript

Issue 7535004: Merge bleeding edge up to 8774 into the GC branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 4 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
« no previous file with comments | « samples/shell.cc ('k') | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 'mode:release': [], 226 'mode:release': [],
227 'mode:debug': [ 227 'mode:debug': [
228 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc' 228 'objects-debug.cc', 'prettyprinter.cc', 'regexp-macro-assembler-tracer.cc'
229 ] 229 ]
230 } 230 }
231 231
232 232
233 PREPARSER_SOURCES = { 233 PREPARSER_SOURCES = {
234 'all': Split(""" 234 'all': Split("""
235 allocation.cc 235 allocation.cc
236 bignum.cc
237 cached-powers.cc
238 conversions.cc
239 hashmap.cc 236 hashmap.cc
240 preparse-data.cc 237 preparse-data.cc
241 preparser.cc 238 preparser.cc
242 preparser-api.cc 239 preparser-api.cc
243 scanner-base.cc 240 scanner-base.cc
244 strtod.cc
245 token.cc 241 token.cc
246 unicode.cc 242 unicode.cc
247 utils.cc 243 utils.cc
248 """) 244 """)
249 } 245 }
250 246
251 247
252 D8_FILES = { 248 D8_LIGHT_FILES = {
249 'all': [
250 'd8.cc'
251 ]
252 }
253
254
255 D8_FULL_FILES = {
253 'all': [ 256 'all': [
254 'd8.cc', 'd8-debug.cc' 257 'd8.cc', 'd8-debug.cc'
255 ], 258 ],
256 'os:linux': [ 259 'os:linux': [
257 'd8-posix.cc' 260 'd8-posix.cc'
258 ], 261 ],
259 'os:macos': [ 262 'os:macos': [
260 'd8-posix.cc' 263 'd8-posix.cc'
261 ], 264 ],
262 'os:android': [ 265 'os:android': [
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 def Abort(message): 315 def Abort(message):
313 print message 316 print message
314 sys.exit(1) 317 sys.exit(1)
315 318
316 319
317 def ConfigureObjectFiles(): 320 def ConfigureObjectFiles():
318 env = Environment(tools=tools) 321 env = Environment(tools=tools)
319 env.Replace(**context.flags['v8']) 322 env.Replace(**context.flags['v8'])
320 context.ApplyEnvOverrides(env) 323 context.ApplyEnvOverrides(env)
321 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 324 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
322 if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']: 325 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions')
323 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO GFILE" --log-snapshot-positions')
324 else:
325 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET')
326 326
327 def BuildJS2CEnv(type): 327 def BuildJS2CEnv(type):
328 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } 328 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' }
329 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: 329 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']:
330 js2c_env['COMPRESSION'] = 'bz2' 330 js2c_env['COMPRESSION'] = 'bz2'
331 return js2c_env 331 return js2c_env
332 332
333 # Build the standard platform-independent source files. 333 # Build the standard platform-independent source files.
334 source_files = context.GetRelevantSources(SOURCES) 334 source_files = context.GetRelevantSources(SOURCES)
335
336 d8_files = context.GetRelevantSources(D8_FILES)
337 d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'}) 335 d8_js = env.JS2C('d8-js.cc', 'd8.js', **{'TYPE': 'D8', 'COMPRESSION': 'off'})
338 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) 336 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
339 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] 337 if context.options['library'] == 'shared':
338 d8_files = context.GetRelevantSources(D8_LIGHT_FILES)
339 d8_objs = []
340 else:
341 d8_files = context.GetRelevantSources(D8_FULL_FILES)
342 d8_objs = [d8_js_obj]
343 d8_objs.append(context.ConfigureObject(env, [d8_files]))
340 344
341 # Combine the JavaScript library files into a single C++ file and 345 # Combine the JavaScript library files into a single C++ file and
342 # compile it. 346 # compile it.
343 library_files = [s for s in LIBRARY_FILES] 347 library_files = [s for s in LIBRARY_FILES]
344 library_files.append('macros.py') 348 library_files.append('macros.py')
345 libraries_src = env.JS2C( 349 libraries_src = env.JS2C(
346 ['libraries.cc'], library_files, **BuildJS2CEnv('CORE')) 350 ['libraries.cc'], library_files, **BuildJS2CEnv('CORE'))
347 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.']) 351 libraries_obj = context.ConfigureObject(env, libraries_src, CPPPATH=['.'])
348 352
349 # Combine the experimental JavaScript library files into a C++ file 353 # Combine the experimental JavaScript library files into a C++ file
(...skipping 29 matching lines...) Expand all
379 snapshot_cc = 'snapshot.cc' 383 snapshot_cc = 'snapshot.cc'
380 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 384 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
381 else: 385 else:
382 snapshot_obj = empty_snapshot_obj 386 snapshot_obj = empty_snapshot_obj
383 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] 387 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj]
384 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 388 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
385 389
386 390
387 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 391 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
388 Return('library_objs d8_objs mksnapshot preparser_objs') 392 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698