Skip to content
Browse files

Added Install

  • Loading branch information...
1 parent 27d029c commit 547e46cb3d03c651f402554a5b1d2d4fd932089c @icefox committed
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
6 SConstruct
@@ -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
5 light/SConscript
@@ -1,4 +1,4 @@
-Import( 'env' )
+Import( 'env installPath' )
myenv=env.Copy()
myenv['CPPPATH'] = '../common'
@@ -6,5 +6,6 @@ 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
6 qbsp/SConscript
@@ -1,4 +1,4 @@
-Import('env')
+Import('env installPath')
myenv=env.Copy()
myenv['CPPPATH'] = '../common'
@@ -6,5 +6,5 @@ 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
5 vis/SConscript
@@ -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.
Something went wrong with that request. Please try again.