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

Side by Side Diff: SConstruct

Issue 40290: Experimental: Merge 1395:1441 from bleeding_edge branch to the... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/global/
Patch Set: Created 11 years, 9 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 | include/v8-debug.h » ('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 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 'os:freebsd': { 61 'os:freebsd': {
62 'CCFLAGS': ['-ansi'], 62 'CCFLAGS': ['-ansi'],
63 }, 63 },
64 'os:win32': { 64 'os:win32': {
65 'CCFLAGS': ['-DWIN32'], 65 'CCFLAGS': ['-DWIN32'],
66 'CXXFLAGS': ['-DWIN32'], 66 'CXXFLAGS': ['-DWIN32'],
67 }, 67 },
68 'wordsize:64': { 68 'wordsize:64': {
69 'CCFLAGS': ['-m32'], 69 'CCFLAGS': ['-m32'],
70 'LINKFLAGS': ['-m32'] 70 'LINKFLAGS': ['-m32']
71 },
72 'prof:oprofile': {
73 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT']
71 } 74 }
72 }, 75 },
73 'msvc': { 76 'msvc': {
74 'all': { 77 'all': {
75 'DIALECTFLAGS': ['/nologo'], 78 'DIALECTFLAGS': ['/nologo'],
76 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], 79 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'],
77 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'], 80 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'],
78 'CPPDEFINES': ['WIN32', '_USE_32BIT_TIME_T', 'PCRE_STATIC'], 81 'CPPDEFINES': ['WIN32', '_USE_32BIT_TIME_T', 'PCRE_STATIC'],
79 'LINKFLAGS': ['/NOLOGO', '/MACHINE:X86', '/INCREMENTAL:NO', 82 'LINKFLAGS': ['/NOLOGO', '/MACHINE:X86', '/INCREMENTAL:NO',
80 '/NXCOMPAT', '/IGNORE:4221'], 83 '/NXCOMPAT', '/IGNORE:4221'],
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 }, 125 },
123 'disassembler:on': { 126 'disassembler:on': {
124 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] 127 'CPPDEFINES': ['ENABLE_DISASSEMBLER']
125 } 128 }
126 }, 129 },
127 'msvc': { 130 'msvc': {
128 'all': { 131 'all': {
129 'WARNINGFLAGS': ['/W3', '/WX', '/wd4355', '/wd4800'] 132 'WARNINGFLAGS': ['/W3', '/WX', '/wd4355', '/wd4800']
130 }, 133 },
131 'library:shared': { 134 'library:shared': {
132 'CPPDEFINES': ['BUILDING_V8_SHARED'] 135 'CPPDEFINES': ['BUILDING_V8_SHARED'],
136 'LIBS': ['winmm', 'ws2_32']
133 }, 137 },
134 'arch:arm': { 138 'arch:arm': {
135 'CPPDEFINES': ['ARM'], 139 'CPPDEFINES': ['ARM'],
136 # /wd4996 is to silence the warning about sscanf 140 # /wd4996 is to silence the warning about sscanf
137 # used by the arm simulator. 141 # used by the arm simulator.
138 'WARNINGFLAGS': ['/wd4996'] 142 'WARNINGFLAGS': ['/wd4996']
139 }, 143 },
140 'disassembler:on': { 144 'disassembler:on': {
141 'CPPDEFINES': ['ENABLE_DISASSEMBLER'] 145 'CPPDEFINES': ['ENABLE_DISASSEMBLER']
142 } 146 }
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 }, 246 },
243 'wordsize:64': { 247 'wordsize:64': {
244 'CCFLAGS': ['-m32'], 248 'CCFLAGS': ['-m32'],
245 'LINKFLAGS': ['-m32'] 249 'LINKFLAGS': ['-m32']
246 }, 250 },
247 'mode:release': { 251 'mode:release': {
248 'CCFLAGS': ['-O2'] 252 'CCFLAGS': ['-O2']
249 }, 253 },
250 'mode:debug': { 254 'mode:debug': {
251 'CCFLAGS': ['-g', '-O0'] 255 'CCFLAGS': ['-g', '-O0']
256 },
257 'prof:oprofile': {
258 'LIBPATH': ['/usr/lib32', '/usr/lib32/oprofile'],
259 'LIBS': ['opagent']
252 } 260 }
253 }, 261 },
254 'msvc': { 262 'msvc': {
255 'all': { 263 'all': {
256 'CCFLAGS': ['/nologo'], 264 'CCFLAGS': ['/nologo'],
257 'LINKFLAGS': ['/nologo'], 265 'LINKFLAGS': ['/nologo'],
258 'LIBS': ['winmm', 'ws2_32'] 266 'LIBS': ['winmm', 'ws2_32']
259 }, 267 },
260 'library:shared': { 268 'library:shared': {
261 'CPPDEFINES': ['USING_V8_SHARED'] 269 'CPPDEFINES': ['USING_V8_SHARED']
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 'values':['arm', 'ia32'], 363 'values':['arm', 'ia32'],
356 'default': ARCH_GUESS, 364 'default': ARCH_GUESS,
357 'help': 'the architecture to build for' 365 'help': 'the architecture to build for'
358 }, 366 },
359 'snapshot': { 367 'snapshot': {
360 'values': ['on', 'off', 'nobuild'], 368 'values': ['on', 'off', 'nobuild'],
361 'default': 'off', 369 'default': 'off',
362 'help': 'build using snapshots for faster start-up' 370 'help': 'build using snapshots for faster start-up'
363 }, 371 },
364 'prof': { 372 'prof': {
365 'values': ['on', 'off'], 373 'values': ['on', 'off', 'oprofile'],
366 'default': 'off', 374 'default': 'off',
367 'help': 'enable profiling of build target' 375 'help': 'enable profiling of build target'
368 }, 376 },
369 'library': { 377 'library': {
370 'values': ['static', 'shared'], 378 'values': ['static', 'shared'],
371 'default': 'static', 379 'default': 'static',
372 'help': 'the type of library to produce' 380 'help': 'the type of library to produce'
373 }, 381 },
374 'msvcrt': { 382 'msvcrt': {
375 'values': ['static', 'shared'], 383 'values': ['static', 'shared'],
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 return True 436 return True
429 437
430 438
431 def VerifyOptions(env): 439 def VerifyOptions(env):
432 if not IsLegal(env, 'mode', ['debug', 'release']): 440 if not IsLegal(env, 'mode', ['debug', 'release']):
433 return False 441 return False
434 if not IsLegal(env, 'sample', ["shell", "process"]): 442 if not IsLegal(env, 'sample', ["shell", "process"]):
435 return False 443 return False
436 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on' : 444 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on' :
437 Abort("Profiling on windows only supported for static library.") 445 Abort("Profiling on windows only supported for static library.")
446 if env['prof'] == 'oprofile' and env['os'] != 'linux':
447 Abort("OProfile is only supported on Linux.")
438 for (name, option) in SIMPLE_OPTIONS.iteritems(): 448 for (name, option) in SIMPLE_OPTIONS.iteritems():
439 if (not option.get('default')) and (name not in ARGUMENTS): 449 if (not option.get('default')) and (name not in ARGUMENTS):
440 message = ("A value for option %s must be specified (%s)." % 450 message = ("A value for option %s must be specified (%s)." %
441 (name, ", ".join(option['values']))) 451 (name, ", ".join(option['values'])))
442 Abort(message) 452 Abort(message)
443 if not env[name] in option['values']: 453 if not env[name] in option['values']:
444 message = ("Unknown %s value '%s'. Possible values are (%s)." % 454 message = ("Unknown %s value '%s'. Possible values are (%s)." %
445 (name, env[name], ", ".join(option['values']))) 455 (name, env[name], ", ".join(option['values'])))
446 Abort(message) 456 Abort(message)
447 457
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 # version of scons. Also, there's a bug in some revisions that 668 # version of scons. Also, there's a bug in some revisions that
659 # doesn't allow this flag to be set, so we swallow any exceptions. 669 # doesn't allow this flag to be set, so we swallow any exceptions.
660 # Lovely. 670 # Lovely.
661 try: 671 try:
662 SetOption('warn', 'no-deprecated') 672 SetOption('warn', 'no-deprecated')
663 except: 673 except:
664 pass 674 pass
665 675
666 676
667 Build() 677 Build()
OLDNEW
« no previous file with comments | « no previous file | include/v8-debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698