| Index: SConstruct
|
| ===================================================================
|
| --- SConstruct (revision 2873)
|
| +++ SConstruct (working copy)
|
| @@ -96,13 +96,18 @@
|
|
|
| LIBRARY_FLAGS = {
|
| 'all': {
|
| - 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'],
|
| 'CPPPATH': [join(root_dir, 'src')],
|
| 'regexp:native': {
|
| 'CPPDEFINES': ['V8_NATIVE_REGEXP']
|
| },
|
| 'mode:debug': {
|
| 'CPPDEFINES': ['V8_ENABLE_CHECKS']
|
| + },
|
| + 'profilingsupport:on': {
|
| + 'CPPDEFINES': ['ENABLE_LOGGING_AND_PROFILING'],
|
| + },
|
| + 'debuggersupport:on': {
|
| + 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
|
| }
|
| },
|
| 'gcc': {
|
| @@ -114,7 +119,6 @@
|
| 'CCFLAGS': ['-g', '-O0'],
|
| 'CPPDEFINES': ['ENABLE_DISASSEMBLER', 'DEBUG'],
|
| 'os:android': {
|
| - 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'],
|
| 'CCFLAGS': ['-mthumb']
|
| }
|
| },
|
| @@ -123,7 +127,7 @@
|
| '-ffunction-sections'],
|
| 'os:android': {
|
| 'CCFLAGS': ['-mthumb', '-Os'],
|
| - 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG', 'ENABLE_DEBUGGER_SUPPORT']
|
| + 'CPPDEFINES': ['SK_RELEASE', 'NDEBUG']
|
| }
|
| },
|
| 'os:linux': {
|
| @@ -576,6 +580,16 @@
|
| 'default': 'static',
|
| 'help': 'the type of library to produce'
|
| },
|
| + 'profilingsupport': {
|
| + 'values': ['on', 'off'],
|
| + 'default': 'on',
|
| + 'help': 'enable profiling of JavaScript code'
|
| + },
|
| + 'debuggersupport': {
|
| + 'values': ['on', 'off'],
|
| + 'default': 'on',
|
| + 'help': 'enable debugging of JavaScript code'
|
| + },
|
| 'soname': {
|
| 'values': ['on', 'off'],
|
| 'default': 'off',
|
| @@ -794,6 +808,10 @@
|
| # Print a warning if arch has explicitly been set
|
| print "Warning: forcing architecture to match simulator (%s)" % options['simulator']
|
| options['arch'] = options['simulator']
|
| + if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'):
|
| + # Print a warning if profiling is enabled without profiling support
|
| + print "Warning: forcing profilingsupport on when prof is on"
|
| + options['profilingsupport'] = 'on'
|
|
|
|
|
| def ParseEnvOverrides(arg, imports):
|
|
|