Changeset 20505

Show
Ignore:
Timestamp:
10/02/08 19:48:59 (5 years ago)
Author:
mattn
Message:

- workaround for win32 python.
- add two arguments for scons which can specify 'cpppath' or 'libpath'.

Location:
lang/cplusplus/llv8call/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/Sconstruct

    r20473 r20505  
    1919    return None 
    2020OS_GUESS = GuessOS() 
     21 
     22if not OS_GUESS == 'win32': 
     23    env.Append(CPPPATH=(ARGUMENTS.get('cpppath') or '').split(':')) 
     24    env.Append(LIBPATH=(ARGUMENTS.get('libpath') or '').split(':')) 
     25else: 
     26    env.Append(CPPPATH=(ARGUMENTS.get('cpppath') or '').split(';')) 
     27    env.Append(LIBPATH=(ARGUMENTS.get('libpath') or '').split(';')) 
    2128 
    2229if os.path.exists("vendor/v8/SConstruct"): 
  • lang/cplusplus/llv8call/trunk/ext/python/SConscript

    r20166 r20505  
     1import platform, sys, re 
    12from distutils import sysconfig 
    23 
     
    56 
    67if conf.CheckCHeader("Python.h"): 
     8    version = sysconfig.get_config_var('VERSION') 
     9    if version is None and platform.system() == 'Windows': 
     10        version = re.sub('\.', '', sys.version.split(' ')[0]) 
    711    env.SharedLibrary( 
    812        "python", 
    913        ['python.cc'], 
    10         LIBS=['v8', 'python' + sysconfig.get_config_var('VERSION')], 
     14        LIBS=['v8', 'python' + version], 
    1115        CPPPATH = [sysconfig.get_python_inc()] + env['CPPPATH'], 
    1216    )