Changeset 19391

Show
Ignore:
Timestamp:
09/16/08 23:36:56 (6 years ago)
Author:
tokuhirom
Message:

split cli and libs

Location:
lang/cplusplus/llv8call/branches/nspr
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/branches/nspr/Sconstruct

    r19355 r19391  
    3535  SOURCES.append('platform-posix.cc') 
    3636 
    37 if conf.CheckLib('readline'): 
    38     print "have readline" 
    39     libs.append('readline') 
    40     env.Append(CCFLAGS = ['-DHAVE_READLINE']) 
    41     if OS_GUESS == 'win32': 
    42         env.Append(CCFLAGS = ['-DREADLINE_STATIC']) 
    4337 
    4438env.Append( 
    4539    CCFLAGS = ['-g'], 
    46     LIBS=libs, 
    4740    CPPPATH=include, 
    4841    LIBPATH=['../v8/', '/opt/local/lib/'], 
    49 ) 
    50  
    51 env.Program( 
    52     "llv8call", 
    53     ["src/" + x for x in ["llv8call.cc"] + SOURCES], 
    5442) 
    5543 
     
    5745    "llv8call", 
    5846    ["src/" + x for x in SOURCES], 
     47    LIBS=libs, 
    5948) 
     49 
     50cllibs = ['llv8call', 'v8'] 
     51if conf.CheckLib('readline'): 
     52    cllibs.append('readline') 
     53    env.Append(CCFLAGS = ['-DHAVE_READLINE']) 
     54    if OS_GUESS == 'win32': 
     55        env.Append(CCFLAGS = ['-DREADLINE_STATIC']) 
     56 
     57env.Program( 
     58    "llv8call", 
     59    ["src/main.cc"], 
     60    LIBPATH=['.', '../v8/', '/opt/local/lib/'], 
     61    LIBS=cllibs, 
     62) 
     63