Changeset 4 for Plugins


Ignore:
Timestamp:
12/13/2006 11:00:45 PM (13 years ago)
Author:
art
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Plugins/luaScripting/SConstruct

    r2 r4  
    11# Import the current building environment 
     2import os 
    23Import('build') 
    34 
     5# no copy the build into own environment 
     6env = build.Copy() 
     7 
    48# define include directory 
    5 include = "include" 
    6 build.Append(INCDIR = include, CPPPATH=[include]) 
     9include = ["include", env['prefix'] + '/include/'] 
     10env.Append(CPPPATH=include, LINKFLAGS='-v -WL,-E,-Bstatic -nodefaultlibs') 
    711 
    812# file list of files to be build 
     
    1620 
    1721# Specify the library path where to search and the libraries to which to link 
    18 libpaths = ['.', build['prefix'] + '/lib', '/usr/local/lib', '/usr/lib'] 
    19 libs = ['lua'] 
     22libpaths = ['.', env['prefix'] + '/lib', '/usr/local/lib', '/usr/lib'] 
     23libs = ['lua', 'stdc++', 'c', 'm', 'gcc'] 
    2024 
    2125suffix = '' 
    2226 
    2327# if we have to build shared version 
    24 if build['Shared']: 
    25         library = build.SharedLibrary ('luaScripting.so', fileList, LIBS=libs, LIBPATH=libpaths) 
     28if env['Shared']: 
     29        library = env.SharedLibrary ('luaScripting', fileList, LIBS=libs, LIBPATH=libpaths) 
    2630        suffix = '.so' 
    2731 
    2832# if we have to built static version 
    29 if build['Static']: 
    30         library = build.StaticLibrary ('luaScripting', fileList, LIBS=libs, LIBPATH=libpaths) 
     33if env['Static']: 
     34        library = env.StaticLibrary ('luaScripting', fileList, LIBS=libs, LIBPATH=libpaths) 
    3135        suffix = '.a' 
    3236 
    33 # Now check for installing feature 
    34 instLocation = build['libdir'] + '/nrEngine/' + 'luaScripting' + suffix 
     37# Create install location 
     38instLocation = env['libdir'] + '/nrEngine/' + 'luaScripting' + suffix 
    3539 
    36 build.InstallAs(instLocation, library) 
    37 il = build.Alias('install-lib', instLocation) 
     40# Create new alias for installing into this location 
     41il = build.Alias('install-lib', build.InstallAs(instLocation, library)) 
    3842build.Alias('install', [il]) 
    3943 
Note: See TracChangeset for help on using the changeset viewer.