Changeset 4 for nrEngine


Ignore:
Timestamp:
12/13/06 23:00:45 (13 years ago)
Author:
art
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • nrEngine/SConstruct

    r1 r4  
    22Import('build') 
    33 
     4env = build.Copy() 
     5 
    46# define include directory 
    5 include = "include" 
    6 build.Append(INCDIR = include, CPPPATH=[include]) 
     7include = ['include', env['prefix'] + '/include/'] 
     8env.Append(CPPPATH = include, CCFLAGS=' -pthread ') 
    79 
    810# file list of files to be build 
     
    106108 
    107109# Specify the library path where to search and the libraries to which to link 
    108 libpaths = ['.', '/usr/local/lib', '/usr/lib'] 
     110libpaths = ['.', env['prefix'] + '/lib/', '/usr/local/lib', '/usr/lib'] 
    109111libs = ['dl', 'boost_thread'] 
    110112 
    111113# if we have to build shared version 
    112 if build['Shared']: 
    113         library = build.SharedLibrary ('nrEngine', fileList, LIBS=libs, LIBPATH=libpaths) 
     114if env['Shared']: 
     115        library = env.SharedLibrary ('nrEngine', fileList, LIBS=libs, LIBPATH=libpaths) 
    114116 
    115117# if we have to built static version 
    116 if build['Static']: 
    117         library = build.StaticLibrary ('nrEngine', fileList, LIBS=libs, LIBPATH=libpaths) 
     118if env['Static']: 
     119        library = env.StaticLibrary ('nrEngine', fileList, LIBS=libs, LIBPATH=libpaths) 
    118120 
    119121# compute the directory names where to store the include files 
    120 incdir = build['incdir'] + '/nrEngine/' 
    121 incdirev = build['incdir'] + '/nrEngine/events/' 
     122incdir = env['incdir'] + '/nrEngine/' 
     123incdirev = env['incdir'] + '/nrEngine/events/' 
    122124 
    123125# Now check for installing feature 
    124 build.Install(build['libdir'], library) 
     126build.Install(env['libdir'], library) 
    125127build.Install(incdir, fileListInc) 
    126128build.Install(incdirev, fileListIncEvents) 
    127 il = build.Alias('install-lib', build['libdir']) 
     129il = build.Alias('install-lib', env['libdir']) 
    128130ih = build.Alias('install-inc', [incdir, incdirev]) 
    129131build.Alias('install', [il, ih]) 
Note: See TracChangeset for help on using the changeset viewer.