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

Side by Side Diff: SConstruct

Issue 7351017: Introduces a light version of D8 that links against shared library. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added changes to gyp build files. Created 9 years, 5 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 | « no previous file | build/all.gyp » ('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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 }, 766 },
767 'msvcrt:shared': { 767 'msvcrt:shared': {
768 'CCFLAGS': ['/MDd'] 768 'CCFLAGS': ['/MDd']
769 } 769 }
770 } 770 }
771 } 771 }
772 } 772 }
773 773
774 774
775 D8_FLAGS = { 775 D8_FLAGS = {
776 'all': {
777 'library:shared': {
778 'CPPDEFINES': ['V8_SHARED'],
779 'LIBS': ['v8'],
780 'LIBPATH': ['.']
781 },
782 },
776 'gcc': { 783 'gcc': {
777 'all': { 784 'all': {
778 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], 785 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
779 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], 786 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'],
780 'LINKFLAGS': ['$CCFLAGS'], 787 'LINKFLAGS': ['$CCFLAGS'],
781 }, 788 },
782 'console:readline': { 789 'console:readline': {
783 'LIBS': ['readline'] 790 'LIBS': ['readline']
784 }, 791 },
785 'os:linux': { 792 'os:linux': {
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 preparser_library = env.SharedLibrary(preparser_library_name, 1370 preparser_library = env.SharedLibrary(preparser_library_name,
1364 preparser_files, 1371 preparser_files,
1365 PDB=preparser_pdb_name, 1372 PDB=preparser_pdb_name,
1366 SONAME=preparser_soname) 1373 SONAME=preparser_soname)
1367 context.library_targets.append(library) 1374 context.library_targets.append(library)
1368 context.library_targets.append(preparser_library) 1375 context.library_targets.append(preparser_library)
1369 1376
1370 d8_env = Environment(tools=tools) 1377 d8_env = Environment(tools=tools)
1371 d8_env.Replace(**context.flags['d8']) 1378 d8_env.Replace(**context.flags['d8'])
1372 context.ApplyEnvOverrides(d8_env) 1379 context.ApplyEnvOverrides(d8_env)
1373 shell = d8_env.Program('d8' + suffix, object_files + shell_files) 1380 if context.options['library'] == 'static':
1381 shell = d8_env.Program('d8' + suffix, object_files + shell_files)
1382 else:
1383 shell = d8_env.Program('d8' + suffix, shell_files)
1384 d8_env.Depends(shell, library)
1374 context.d8_targets.append(shell) 1385 context.d8_targets.append(shell)
1375 1386
1376 for sample in context.samples: 1387 for sample in context.samples:
1377 sample_env = Environment(tools=tools) 1388 sample_env = Environment(tools=tools)
1378 sample_env.Replace(**context.flags['sample']) 1389 sample_env.Replace(**context.flags['sample'])
1379 sample_env.Prepend(LIBS=[library_name]) 1390 sample_env.Prepend(LIBS=[library_name])
1380 context.ApplyEnvOverrides(sample_env) 1391 context.ApplyEnvOverrides(sample_env)
1381 sample_object = sample_env.SConscript( 1392 sample_object = sample_env.SConscript(
1382 join('samples', 'SConscript'), 1393 join('samples', 'SConscript'),
1383 build_dir=join('obj', 'sample', sample, target_id), 1394 build_dir=join('obj', 'sample', sample, target_id),
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 # version of scons. Also, there's a bug in some revisions that 1475 # version of scons. Also, there's a bug in some revisions that
1465 # doesn't allow this flag to be set, so we swallow any exceptions. 1476 # doesn't allow this flag to be set, so we swallow any exceptions.
1466 # Lovely. 1477 # Lovely.
1467 try: 1478 try:
1468 SetOption('warn', 'no-deprecated') 1479 SetOption('warn', 'no-deprecated')
1469 except: 1480 except:
1470 pass 1481 pass
1471 1482
1472 1483
1473 Build() 1484 Build()
OLDNEW
« no previous file with comments | « no previous file | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698