Changeset 240
- Timestamp:
- 04/05/08 16:38:49 (3 months ago)
- Files:
-
- GtkRadiant/branches/ZeroRadiant/config.py (modified) (6 diffs)
- GtkRadiant/branches/ZeroRadiant/install/games/q3ut4 (added)
- GtkRadiant/branches/ZeroRadiant/install/games/q3ut4/synapse.config (added)
- GtkRadiant/branches/ZeroRadiant/install/games/quake3 (added)
- GtkRadiant/branches/ZeroRadiant/install/games/quake3/synapse.config (added)
- GtkRadiant/branches/ZeroRadiant/install/games/synapse.config (deleted)
- GtkRadiant/branches/ZeroRadiant/radiant/preferences.cpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/branches/ZeroRadiant/config.py
r239 r240 14 14 # not used atm, but useful to keep a list in mind 15 15 # may use them eventually for the 'all' and other aliases expansions? 16 target_choices = utils.Enum( 'radiant', 'q3map2' )16 target_choices = utils.Enum( 'radiant', 'q3map2', 'setup' ) 17 17 config_choices = utils.Enum( 'debug', 'release' ) 18 18 … … 30 30 self.cxx = 'g++' 31 31 self.install_directory = 'install' 32 33 # platforms for which to assemble a setup 34 self.setup_platforms = [ 'local', 'x86', 'x64', 'win32' ] 35 # paks to assemble in the setup 36 self.setup_packs = [ 'Q3Pack', 'UrTPack' ] 32 37 33 38 def __repr__( self ): … … 48 53 def _processInstallDir( self, ops ): 49 54 self.install_directory = os.path.normpath( os.path.expanduser( ops[0] ) ) 55 56 def _processSetupPlatforms( self, ops ): 57 self.setup_platforms = ops 58 59 def _processSetupPacks( self, ops ): 60 self.setup_packs = ops 50 61 51 62 def setupParser( self, operators ): … … 55 66 operators['cxx'] = self._processCXX 56 67 operators['install_directory'] = self._processInstallDir 68 operators['setup_platforms'] = self._processSetupPlatforms 69 operators['setup_packs'] = self._processSetupPacks 57 70 58 71 def emit_radiant( self ): … … 168 181 self.emit_q3map2() 169 182 183 try: 184 self.target_selected.index( 'setup' ) 185 except: 186 pass 187 else: 188 self.Setup() 189 170 190 def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False, useZ = False, usePNG = False ): 171 191 env['CC'] = self.cc … … 228 248 env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations', '-fno-strict-aliasing' ] ) 229 249 env.Append( CXXFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations','-fno-strict-aliasing' ] ) 230 #env.Append( CFLAGS = [ '-march=pentium3' ] ) 231 232 # env.Append( LINKFLAGS = [ '-m32' ] ) 250 251 def CheckoutOrUpdate( self, svnurl, path ): 252 if ( os.path.exists( path ) ): 253 # NOTE: check the svnurl matches? 254 cmd = 'svn update "%s"' % path 255 print cmd 256 else: 257 cmd = 'svn checkout %s "%s"' % ( svnurl, path ) 258 ret = os.system( cmd ) 259 if ( ret != 0 ): 260 raise 'checkout or update failed' 261 262 263 def FetchGamePaks( self, path ): 264 for pak in self.setup_packs: 265 if ( pak == 'Q3Pack' or pak == 'UrTPack' ): 266 svnurl = 'https://zerowing.idsoftware.com/svn/radiant.gamepacks/%s/trunk' % pak 267 self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) ) 268 269 def Setup( self ): 270 for platform in self.setup_platforms: 271 if ( platform == 'local' ): 272 # special case, fetch external paks under the local install directory 273 self.FetchGamePaks( self.install_directory ) 233 274 234 275 # parse the config statement line to produce/update an existing config list GtkRadiant/branches/ZeroRadiant/radiant/preferences.cpp
r237 r240 3245 3245 fprintf( fg, "<?xml version=\"1.0\" encoding=\"iso-8859-1\" standalone=\"yes\"?>\n<game\n" ); 3246 3246 fprintf( fg, " name=\"%s\"\n", m_strName.GetBuffer() ); 3247 fprintf( fg, " gametools=\"%sgames/%s\"\n", g_strAppPath.GetBuffer(), m_strName.GetBuffer() );3248 3247 fprintf( fg, " enginepath=\"%s\"\n", m_strEngine.GetBuffer() ); 3249 3248 switch ( m_availGames[ m_nComboSelect ] ) { 3250 3249 case GAME_Q2: { 3250 fprintf( fg, " gametools=\"%sgames/quake2\"\n", g_strAppPath.GetBuffer() ); 3251 3251 fprintf( fg, " prefix=\".quake2\"\n" ); 3252 3252 Str source = g_strAppPath.GetBuffer(); … … 3259 3259 } 3260 3260 case GAME_Q3: { 3261 fprintf( fg, " gametools=\"%sgames/quake3\"\n", g_strAppPath.GetBuffer() ); 3261 3262 fprintf( fg, " prefix=\".q3a\"\n" ); 3262 3263 Str source = g_strAppPath.GetBuffer(); … … 3269 3270 } 3270 3271 case GAME_URT: { 3272 fprintf( fg, " gametools=\"%sgames/q3ut4\"\n", g_strAppPath.GetBuffer() ); 3271 3273 fprintf( fg, " prefix=\".q3a\"\n" ); 3272 3274 Str source = g_strAppPath.GetBuffer(); … … 3279 3281 } 3280 3282 case GAME_UFOAI: { 3283 fprintf( fg, " gametools=\"%sgames/ufoai\"\n", g_strAppPath.GetBuffer() ); 3281 3284 fprintf( fg, " prefix=\".ufoai\"\n" ); 3282 3285 Str source = g_strAppPath.GetBuffer(); … … 3289 3292 } 3290 3293 case GAME_Q2W: { 3294 fprintf( fg, " gametools=\"%sgames/q2w\"\n", g_strAppPath.GetBuffer() ); 3291 3295 fprintf( fg, " prefix=\".quake2world\"\n" ); 3292 3296 Str source = g_strAppPath.GetBuffer(); … … 3299 3303 } 3300 3304 case GAME_WARSOW: { 3305 fprintf( fg, " gametools=\"%sgames/warsow\"\n", g_strAppPath.GetBuffer() ); 3301 3306 fprintf( fg, " prefix=\".warsow\"\n" ); 3302 3307 Str source = g_strAppPath.GetBuffer(); … … 3309 3314 } 3310 3315 case GAME_NEXUIZ: { 3316 fprintf( fg, " gametools=\"%sgames/nexuiz\"\n", g_strAppPath.GetBuffer() ); 3311 3317 fprintf( fg, " prefix=\".nexuiz\"\n" ); 3312 3318 Str source = g_strAppPath.GetBuffer();
