Changeset 20917 for lang/cplusplus
- Timestamp:
- 10/07/08 19:49:47 (6 weeks ago)
- Files:
-
- 1 modified
-
lang/cplusplus/llv8call/trunk/Sconstruct (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/cplusplus/llv8call/trunk/Sconstruct
r20862 r20917 4 4 import os 5 5 import sys 6 import re 6 7 7 8 opts = Options() … … 51 52 return None 52 53 54 def fixquote(s): 55 if not OS_GUESS == 'win32': 56 return '"%s"' % re.sub("\\\\", "\\\\\\\\", s) 57 else: 58 return '"""%s"""' % re.sub("\\\\", "\\\\\\\\", s) 59 60 env.MergeFlags(env.ParseFlags(" ".join([ 61 '-DUSING_V8_SHARED', 62 '-DDIRSEP=\'%s\'' % fixquote(re.sub("\\\\", "\\\\\\\\", os.sep)), 63 '-DPATHSEP=\'%s\'' % fixquote(re.sub("\\\\", "\\\\\\\\", os.pathsep)), 64 '-DVERSION=\'%s\'' % fixquote(VERSION), 65 '-DSHLIBPREFIX=\'%s\'' % fixquote(env.subst(env['SHLIBPREFIX'])), 66 '-DSHLIBSUFFIX=\'%s\'' % fixquote(env.subst(env['SHLIBSUFFIX'])), 67 '-DPACKAGE=llv8call', 68 ]))) 69 53 70 env.Append( 54 CCFLAGS=[55 '-DUSING_V8_SHARED',56 ["-D"+x+'''='"'''+env.subst(env[x])+""""'""" for x in ['SHLIBSUFFIX', 'SHLIBPREFIX']],57 '''-DDIRSEP='"''' + os.sep + """"'"""58 ],59 71 CPPPATH=[os.getcwd() + '/vendor/v8/include/', os.getcwd() + '/v8ext/', '/opt/local/include/'], 60 72 LIBPATH=[os.getcwd() + '/vendor/v8/', '/opt/local/lib/'], … … 64 76 env.Append(CCFLAGS = ['-Wall']) 65 77 78 if GuessToolchain() == 'msvc': 79 env.Append(CCFLAGS = ['/EHsc']) 80 66 81 if env['mode'] == 'debug' or OS_GUESS == 'linux' or OS_GUESS == 'macos': 67 82 env.Append(CCFLAGS = ['-g']) 68 69 env.Append(CCFLAGS = ['-DVERSION=\'"'+VERSION+'"\'', '-DPACKAGE=llv8call'])70 83 71 84 env.SConscript('src/SConscript', exports=['env','conf'])
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)