Permalink
Browse files

Added Install

  • Loading branch information...
icefox committed Jun 1, 2005
1 parent 27d029c commit 547e46cb3d03c651f402554a5b1d2d4fd932089c
Showing with 15 additions and 7 deletions.
  1. +6 −0 SConstruct
  2. +3 −2 light/SConscript
  3. +3 −3 qbsp/SConscript
  4. +3 −2 vis/SConscript
View
@@ -1,6 +1,12 @@
env = Environment()
env['CCFLAGS'] = '-Wall -O2'
+
Export('env')
+installPath = '/usr/bin/'
+Export('installPath')
+
+Alias('install', installPath)
+
SConscript(['common/SConscript',
'light/SConscript',
'vis/SConscript',
View
@@ -1,10 +1,11 @@
-Import( 'env' )
+Import( 'env installPath' )
myenv=env.Copy()
myenv['CPPPATH'] = '../common'
myenv['LIBS'] = Split('qutils m bsp')
myenv['LIBPATH'] = '../common'
files = Split('threads.c entities.c light.c ltface.c trace.c')
-myenv.Program('light', files)
+light = myenv.Program('light', files)
+myenv.Install(installPath, light)
View
@@ -1,10 +1,10 @@
-Import('env')
+Import('env installPath')
myenv=env.Copy()
myenv['CPPPATH'] = '../common'
myenv['LIBS'] = Split('qutils m bsp')
myenv['LIBPATH'] = '../common'
files=['brush.c', 'csg4.c', 'map.c', 'merge.c', 'nodraw.c', 'outside.c', 'portals.c', 'qbsp.c', 'region.c', 'solidbsp.c', 'surfaces.c', 'tjunc.c', 'writebsp.c']
-myenv.Program('qbsp', files)
-
+qbsp = myenv.Program('qbsp', files)
+myenv.Install(installPath, qbsp)
View
@@ -1,8 +1,9 @@
-Import('env')
+Import('env installPath')
myenv=env.Copy()
myenv['CPPPATH'] = '../common'
myenv['LIBS'] = Split('qutils m bsp')
myenv['LIBPATH'] = '../common'
-myenv.Program('vis', ['flow.c', 'soundpvs.c', 'vis.c'])
+vis = myenv.Program('vis', ['flow.c', 'soundpvs.c', 'vis.c'])
+myenv.Install(installPath, vis)

0 comments on commit 547e46c

Please sign in to comment.