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

Side by Side Diff: SConstruct

Issue 7607031: Update gc branch to bleeding_edge revision 8862. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Fix bug in weak-map merge 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 | « Makefile ('k') | 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 'msvc': { 429 'msvc': {
430 'all': { 430 'all': {
431 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'], 431 'CPPDEFINES': ['_HAS_EXCEPTIONS=0'],
432 'LIBS': ['winmm', 'ws2_32'] 432 'LIBS': ['winmm', 'ws2_32']
433 }, 433 },
434 'arch:ia32': { 434 'arch:ia32': {
435 'CPPDEFINES': ['V8_TARGET_ARCH_IA32'] 435 'CPPDEFINES': ['V8_TARGET_ARCH_IA32']
436 }, 436 },
437 'arch:x64': { 437 'arch:x64': {
438 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], 438 'CPPDEFINES': ['V8_TARGET_ARCH_X64'],
439 'LINKFLAGS': ['/STACK:2091752'] 439 'LINKFLAGS': ['/STACK:2097152']
440 }, 440 },
441 } 441 }
442 } 442 }
443 443
444 444
445 SAMPLE_FLAGS = { 445 SAMPLE_FLAGS = {
446 'all': { 446 'all': {
447 'CPPPATH': [join(abspath('.'), 'include')], 447 'CPPPATH': [join(abspath('.'), 'include')],
448 'library:shared': { 448 'library:shared': {
449 'CPPDEFINES': ['USING_V8_SHARED'] 449 'CPPDEFINES': ['USING_V8_SHARED']
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 'pgo:optimize': { 594 'pgo:optimize': {
595 'LINKFLAGS': ['/LTCG:PGO'] 595 'LINKFLAGS': ['/LTCG:PGO']
596 } 596 }
597 }, 597 },
598 'arch:ia32': { 598 'arch:ia32': {
599 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'], 599 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
600 'LINKFLAGS': ['/MACHINE:X86'] 600 'LINKFLAGS': ['/MACHINE:X86']
601 }, 601 },
602 'arch:x64': { 602 'arch:x64': {
603 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'], 603 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
604 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2091752'] 604 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
605 }, 605 },
606 'mode:debug': { 606 'mode:debug': {
607 'CCFLAGS': ['/Od'], 607 'CCFLAGS': ['/Od'],
608 'LINKFLAGS': ['/DEBUG'], 608 'LINKFLAGS': ['/DEBUG'],
609 'CPPDEFINES': ['DEBUG'], 609 'CPPDEFINES': ['DEBUG'],
610 'msvcrt:static': { 610 'msvcrt:static': {
611 'CCFLAGS': ['/MTd'] 611 'CCFLAGS': ['/MTd']
612 }, 612 },
613 'msvcrt:shared': { 613 'msvcrt:shared': {
614 'CCFLAGS': ['/MDd'] 614 'CCFLAGS': ['/MDd']
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 'pgo:optimize': { 749 'pgo:optimize': {
750 'LINKFLAGS': ['/LTCG:PGO'] 750 'LINKFLAGS': ['/LTCG:PGO']
751 } 751 }
752 }, 752 },
753 'arch:ia32': { 753 'arch:ia32': {
754 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'], 754 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
755 'LINKFLAGS': ['/MACHINE:X86'] 755 'LINKFLAGS': ['/MACHINE:X86']
756 }, 756 },
757 'arch:x64': { 757 'arch:x64': {
758 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'], 758 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
759 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2091752'] 759 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
760 }, 760 },
761 'mode:debug': { 761 'mode:debug': {
762 'CCFLAGS': ['/Od'], 762 'CCFLAGS': ['/Od'],
763 'LINKFLAGS': ['/DEBUG'], 763 'LINKFLAGS': ['/DEBUG'],
764 'CPPDEFINES': ['DEBUG'], 764 'CPPDEFINES': ['DEBUG'],
765 'msvcrt:static': { 765 'msvcrt:static': {
766 'CCFLAGS': ['/MTd'] 766 'CCFLAGS': ['/MTd']
767 }, 767 },
768 'msvcrt:shared': { 768 'msvcrt:shared': {
769 'CCFLAGS': ['/MDd'] 769 'CCFLAGS': ['/MDd']
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 'compress_startup_data:bz2': { 815 'compress_startup_data:bz2': {
816 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'], 816 'CPPDEFINES': ['COMPRESS_STARTUP_DATA_BZ2'],
817 'os:linux': { 817 'os:linux': {
818 'LIBS': ['bz2'] 818 'LIBS': ['bz2']
819 } 819 }
820 } 820 }
821 }, 821 },
822 'msvc': { 822 'msvc': {
823 'all': { 823 'all': {
824 'LIBS': ['winmm', 'ws2_32'] 824 'LIBS': ['winmm', 'ws2_32']
825 },
826 'verbose:off': {
827 'CCFLAGS': ['/nologo'],
828 'LINKFLAGS': ['/NOLOGO']
829 },
830 'verbose:on': {
831 'LINKFLAGS': ['/VERBOSE']
832 },
833 'prof:on': {
834 'LINKFLAGS': ['/MAP']
835 },
836 'mode:release': {
837 'CCFLAGS': ['/O2'],
838 'LINKFLAGS': ['/OPT:REF', '/OPT:ICF'],
839 'msvcrt:static': {
840 'CCFLAGS': ['/MT']
841 },
842 'msvcrt:shared': {
843 'CCFLAGS': ['/MD']
844 },
845 'msvcltcg:on': {
846 'CCFLAGS': ['/GL'],
847 'pgo:off': {
848 'LINKFLAGS': ['/LTCG'],
849 },
850 },
851 'pgo:instrument': {
852 'LINKFLAGS': ['/LTCG:PGI']
853 },
854 'pgo:optimize': {
855 'LINKFLAGS': ['/LTCG:PGO']
856 }
857 },
858 'arch:ia32': {
859 'CPPDEFINES': ['V8_TARGET_ARCH_IA32', 'WIN32'],
860 'LINKFLAGS': ['/MACHINE:X86']
861 },
862 'arch:x64': {
863 'CPPDEFINES': ['V8_TARGET_ARCH_X64', 'WIN32'],
864 'LINKFLAGS': ['/MACHINE:X64', '/STACK:2097152']
865 },
866 'mode:debug': {
867 'CCFLAGS': ['/Od'],
868 'LINKFLAGS': ['/DEBUG'],
869 'CPPDEFINES': ['DEBUG'],
870 'msvcrt:static': {
871 'CCFLAGS': ['/MTd']
872 },
873 'msvcrt:shared': {
874 'CCFLAGS': ['/MDd']
875 }
825 } 876 }
826 } 877 }
827 } 878 }
828 879
829 880
830 SUFFIXES = { 881 SUFFIXES = {
831 'release': '', 882 'release': '',
832 'debug': '_g' 883 'debug': '_g'
833 } 884 }
834 885
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1336 library_name += '-' + version 1387 library_name += '-' + version
1337 1388
1338 # Generate library SONAME if required by the build. 1389 # Generate library SONAME if required by the build.
1339 if context.options['soname'] == 'on': 1390 if context.options['soname'] == 'on':
1340 soname = GetSpecificSONAME() 1391 soname = GetSpecificSONAME()
1341 if soname == '': 1392 if soname == '':
1342 soname = 'lib' + library_name + '.so' 1393 soname = 'lib' + library_name + '.so'
1343 env['SONAME'] = soname 1394 env['SONAME'] = soname
1344 1395
1345 # Build the object files by invoking SCons recursively. 1396 # Build the object files by invoking SCons recursively.
1397 d8_env = Environment(tools=tools)
1398 d8_env.Replace(**context.flags['d8'])
1346 (object_files, shell_files, mksnapshot, preparser_files) = env.SConscript( 1399 (object_files, shell_files, mksnapshot, preparser_files) = env.SConscript(
1347 join('src', 'SConscript'), 1400 join('src', 'SConscript'),
1348 build_dir=join('obj', target_id), 1401 build_dir=join('obj', target_id),
1349 exports='context tools', 1402 exports='context tools d8_env',
1350 duplicate=False 1403 duplicate=False
1351 ) 1404 )
1352 1405
1353 context.mksnapshot_targets.append(mksnapshot) 1406 context.mksnapshot_targets.append(mksnapshot)
1354 1407
1355 # Link the object files into a library. 1408 # Link the object files into a library.
1356 env.Replace(**context.flags['v8']) 1409 env.Replace(**context.flags['v8'])
1357 1410
1358 context.ApplyEnvOverrides(env) 1411 context.ApplyEnvOverrides(env)
1359 if context.options['library'] == 'static': 1412 if context.options['library'] == 'static':
1360 library = env.StaticLibrary(library_name, object_files) 1413 library = env.StaticLibrary(library_name, object_files)
1361 preparser_library = env.StaticLibrary(preparser_library_name, 1414 preparser_library = env.StaticLibrary(preparser_library_name,
1362 preparser_files) 1415 preparser_files)
1363 else: 1416 else:
1364 # There seems to be a glitch in the way scons decides where to put 1417 # There seems to be a glitch in the way scons decides where to put
1365 # PDB files when compiling using MSVC so we specify it manually. 1418 # PDB files when compiling using MSVC so we specify it manually.
1366 # This should not affect any other platforms. 1419 # This should not affect any other platforms.
1367 pdb_name = library_name + '.dll.pdb' 1420 pdb_name = library_name + '.dll.pdb'
1368 library = env.SharedLibrary(library_name, object_files, PDB=pdb_name) 1421 library = env.SharedLibrary(library_name, object_files, PDB=pdb_name)
1369 preparser_pdb_name = preparser_library_name + '.dll.pdb'; 1422 preparser_pdb_name = preparser_library_name + '.dll.pdb';
1370 preparser_soname = 'lib' + preparser_library_name + '.so'; 1423 preparser_soname = 'lib' + preparser_library_name + '.so';
1371 preparser_library = env.SharedLibrary(preparser_library_name, 1424 preparser_library = env.SharedLibrary(preparser_library_name,
1372 preparser_files, 1425 preparser_files,
1373 PDB=preparser_pdb_name, 1426 PDB=preparser_pdb_name,
1374 SONAME=preparser_soname) 1427 SONAME=preparser_soname)
1375 context.library_targets.append(library) 1428 context.library_targets.append(library)
1376 context.library_targets.append(preparser_library) 1429 context.library_targets.append(preparser_library)
1377 1430
1378 d8_env = Environment(tools=tools)
1379 d8_env.Replace(**context.flags['d8'])
1380 context.ApplyEnvOverrides(d8_env) 1431 context.ApplyEnvOverrides(d8_env)
1381 if context.options['library'] == 'static': 1432 if context.options['library'] == 'static':
1382 shell = d8_env.Program('d8' + suffix, object_files + shell_files) 1433 shell = d8_env.Program('d8' + suffix, object_files + shell_files)
1383 else: 1434 else:
1384 shell = d8_env.Program('d8' + suffix, shell_files) 1435 shell = d8_env.Program('d8' + suffix, shell_files)
1385 d8_env.Depends(shell, library) 1436 d8_env.Depends(shell, library)
1386 context.d8_targets.append(shell) 1437 context.d8_targets.append(shell)
1387 1438
1388 for sample in context.samples: 1439 for sample in context.samples:
1389 sample_env = Environment(tools=tools) 1440 sample_env = Environment(tools=tools)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1476 # version of scons. Also, there's a bug in some revisions that 1527 # version of scons. Also, there's a bug in some revisions that
1477 # doesn't allow this flag to be set, so we swallow any exceptions. 1528 # doesn't allow this flag to be set, so we swallow any exceptions.
1478 # Lovely. 1529 # Lovely.
1479 try: 1530 try:
1480 SetOption('warn', 'no-deprecated') 1531 SetOption('warn', 'no-deprecated')
1481 except: 1532 except:
1482 pass 1533 pass
1483 1534
1484 1535
1485 Build() 1536 Build()
OLDNEW
« no previous file with comments | « Makefile ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698