Changeset 239
- Timestamp:
- 04/05/08 14:52:13 (3 months ago)
- Files:
-
- GtkRadiant/branches/ZeroRadiant/config.py (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/branches/ZeroRadiant/config.py
r231 r239 27 27 # those are global to each config 28 28 self.platform = platform.system() 29 if ( self.platform == 'Darwin' ): 30 self.cc = 'gcc' 31 self.cxx = 'g++' 32 else: 33 self.cc = 'gcc-4.1' 34 self.cxx = 'g++-4.1' 35 self.install = True 29 self.cc = 'gcc' 30 self.cxx = 'g++' 31 self.install_directory = 'install' 36 32 37 33 def __repr__( self ): … … 50 46 self.cxx = ops 51 47 52 def _processInstall( self, ops ): 53 ops = ops[0] 54 if ( ops == 'yes' or ops == 'true' or ops == 'True' or ops == '1' or ops == True ): 55 self.install = True 56 return 57 self.install = False 48 def _processInstallDir( self, ops ): 49 self.install_directory = os.path.normpath( os.path.expanduser( ops[0] ) ) 58 50 59 51 def setupParser( self, operators ): … … 62 54 operators['cc'] = self._processCC 63 55 operators['cxx'] = self._processCXX 64 operators['install'] = self._processInstall 65 66 def InstallAs( self, target, source ): 67 if ( self.install ): 68 iret = InstallAs( target, source ) 69 Default( iret ) 70 else: 71 Default( source ) 56 operators['install_directory'] = self._processInstallDir 72 57 73 58 def emit_radiant( self ): … … 87 72 Export( 'lib_objects' ) 88 73 radiant = SConscript( os.path.join( build_dir, 'SConscript.radiant' ) ) 89 self.InstallAs( 'install/radiant.bin', radiant)74 Default( InstallAs( os.path.join( self.install_directory, 'radiant.bin' ), radiant ) ) 90 75 91 76 # PIC versions of the libs for the modules … … 149 134 Export( 'project', 'shlib_objects' ) 150 135 module = SConscript( os.path.join( build_dir, 'SConscript.module' ) ) 151 self.InstallAs( 'install/modules/%s.so' % libname, module)136 Default( InstallAs( os.path.join( self.install_directory, 'modules/%s.so' % libname ), module ) ) 152 137 153 138 def emit_q3map2( self ): … … 166 151 Export( 'lib_objects' ) 167 152 q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) ) 168 self.InstallAs( 'install/q3map2', q3map2)153 Default( InstallAs( os.path.join( self.install_directory, 'q3map2' ), q3map2 ) ) 169 154 170 155
