Merge branch 'master' of github.com:TTimo/GtkRadiant
|
@ -11,38 +11,6 @@ Import( [ 'utils', 'config', 'settings', 'project', 'shlib_objects' ] )
|
|||
libname = os.path.splitext( libname )[0]
|
||||
|
||||
env = Environment()
|
||||
# useJPEG = False
|
||||
# useGtk = False
|
||||
# useZ = False
|
||||
# usePNG = False
|
||||
# if ( libname == 'image' ):
|
||||
# useJPEG = True
|
||||
# if ( libname == 'surface' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'surface_ufoai' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'surface_quake2' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'surface_heretic2' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'bkgrnd2d' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'gtkgensurf' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'bobtoolz' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'camera' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'prtview' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'spritemodel' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'model' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'textool' ):
|
||||
# useGtk = True
|
||||
# if ( libname == 'imagepng' ):
|
||||
# usePNG = True
|
||||
|
||||
useJPEG = True
|
||||
useGtk = True
|
||||
|
|
19
SConscript.q3data
Normal file
|
@ -0,0 +1,19 @@
|
|||
# -*- mode: python -*-
|
||||
# GtkRadiant build scripts
|
||||
# TTimo <ttimo@ttimo.net>
|
||||
# http://scons.org/
|
||||
|
||||
import os
|
||||
|
||||
Import( [ 'utils', 'config', 'settings', 'lib_objects' ] )
|
||||
|
||||
env = Environment()
|
||||
settings.SetupEnvironment( env, config['name'] )
|
||||
env.Prepend( CPPPATH = [ '#tools/quake3/common' ] )
|
||||
env.Append( LIBS = [ 'm', 'pthread' ] )
|
||||
proj = utils.vcproj( os.path.join( GetLaunchDir(), 'tools/quake3/q3data/q3data.vcproj' ) )
|
||||
objects = lib_objects
|
||||
objects += [ os.path.join( 'tools/quake3/q3data', i ) for i in proj.getSourceFiles() ]
|
||||
q3data = env.Program( 'q3data', objects )
|
||||
|
||||
Return( 'q3data' )
|
22
config.py
|
@ -13,7 +13,7 @@ import utils, urllib2, zipfile, shutil, pprint, subprocess, re
|
|||
class Config:
|
||||
# not used atm, but useful to keep a list in mind
|
||||
# may use them eventually for the 'all' and other aliases expansions?
|
||||
target_choices = utils.Enum( 'radiant', 'q3map2', 'setup' )
|
||||
target_choices = utils.Enum( 'radiant', 'q3map2', 'q3data', 'setup' )
|
||||
config_choices = utils.Enum( 'debug', 'release' )
|
||||
|
||||
# aliases
|
||||
|
@ -22,7 +22,7 @@ class Config:
|
|||
|
||||
def __init__( self ):
|
||||
# initialize defaults
|
||||
self.target_selected = [ 'radiant', 'q3map2' ]
|
||||
self.target_selected = [ 'radiant', 'q3map2', 'q3data', 'setup' ]
|
||||
self.config_selected = [ 'release' ]
|
||||
# those are global to each config
|
||||
self.platform = platform.system()
|
||||
|
@ -175,6 +175,22 @@ class Config:
|
|||
q3map2 = SConscript( os.path.join( build_dir, sconscript_name ) )
|
||||
Default( InstallAs( os.path.join( self.install_directory, compiler_name ), q3map2 ) )
|
||||
|
||||
def emit_q3data( self ):
|
||||
settings = self
|
||||
for config_name in self.config_selected:
|
||||
config = {}
|
||||
config['name'] = config_name
|
||||
config['shared'] = False
|
||||
Export( 'utils', 'settings', 'config' )
|
||||
build_dir = os.path.join( 'build', config_name, 'q3data' )
|
||||
VariantDir( build_dir, '.', duplicate = 0 )
|
||||
lib_objects = []
|
||||
for project in [ 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj' ]:
|
||||
Export( 'project' )
|
||||
lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
|
||||
Export( 'lib_objects' )
|
||||
q3data = SConscript( os.path.join( build_dir, 'SConscript.q3data' ) )
|
||||
Default( InstallAs( os.path.join( self.install_directory, 'q3data' ), q3data ) )
|
||||
|
||||
def emit( self ):
|
||||
if 'radiant' in self.target_selected:
|
||||
|
@ -182,6 +198,8 @@ class Config:
|
|||
if 'q3map2' in self.target_selected:
|
||||
self.emit_q3map2( urt = False )
|
||||
self.emit_q3map2( urt = True )
|
||||
if 'q3data' in self.target_selected:
|
||||
self.emit_q3data()
|
||||
if 'setup' in self.target_selected:
|
||||
self.Setup()
|
||||
|
||||
|
|
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_flipx.png
Normal file
After Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_flipy.png
Normal file
After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_flipz.png
Normal file
After Width: | Height: | Size: 313 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_rotatex.png
Normal file
After Width: | Height: | Size: 315 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_rotatey.png
Normal file
After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/brush_rotatez.png
Normal file
After Width: | Height: | Size: 314 B |
Before Width: | Height: | Size: 154 B |
BIN
install/bitmaps/cap_bevel.png
Normal file
After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 154 B |
BIN
install/bitmaps/cap_endcap.png
Normal file
After Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 154 B |
BIN
install/bitmaps/cap_ibevel.png
Normal file
After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 154 B |
BIN
install/bitmaps/cap_iendcap.png
Normal file
After Width: | Height: | Size: 288 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/curve_cap.png
Normal file
After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/dontselectcurve.png
Normal file
After Width: | Height: | Size: 333 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/dontselectmodel.png
Normal file
After Width: | Height: | Size: 332 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/file_open.png
Normal file
After Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/file_save.png
Normal file
After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 630 B |
BIN
install/bitmaps/icon.png
Normal file
After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_bend.png
Normal file
After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_drilldown.png
Normal file
After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_insdel.png
Normal file
After Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_showboundingbox.png
Normal file
After Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_weld.png
Normal file
After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/patch_wireframe.png
Normal file
After Width: | Height: | Size: 321 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/popup_selection.png
Normal file
After Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/scalelockx.png
Normal file
After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/scalelocky.png
Normal file
After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/scalelockz.png
Normal file
After Width: | Height: | Size: 306 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/select_mouserotate.png
Normal file
After Width: | Height: | Size: 358 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/select_mousescale.png
Normal file
After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_csgmerge.png
Normal file
After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_csgsubtract.png
Normal file
After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_makehollow.png
Normal file
After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_selectcompletetall.png
Normal file
After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_selectinside.png
Normal file
After Width: | Height: | Size: 322 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_selectpartialtall.png
Normal file
After Width: | Height: | Size: 341 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/selection_selecttouching.png
Normal file
After Width: | Height: | Size: 317 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/show_entities.png
Normal file
After Width: | Height: | Size: 319 B |
Before Width: | Height: | Size: 293 KiB |
BIN
install/bitmaps/splash.png
Normal file
After Width: | Height: | Size: 279 KiB |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/textures_popup.png
Normal file
After Width: | Height: | Size: 366 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/view_cameratoggle.png
Normal file
After Width: | Height: | Size: 372 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/view_cameraupdate.png
Normal file
After Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 126 B |
BIN
install/bitmaps/view_change.png
Normal file
After Width: | Height: | Size: 329 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/view_clipper.png
Normal file
After Width: | Height: | Size: 316 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/view_cubicclipping.png
Normal file
After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 238 B |
BIN
install/bitmaps/view_entity.png
Normal file
After Width: | Height: | Size: 303 B |
Before Width: | Height: | Size: 614 B |
BIN
install/bitmaps/window1.png
Normal file
After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 614 B |
BIN
install/bitmaps/window2.png
Normal file
After Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 614 B |
BIN
install/bitmaps/window3.png
Normal file
After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 614 B |