+ self.InstallAs( 'install/modules/%s.so' % libname, module )
+
+ def emit_q3map2( 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, 'q3map2' )
+ BuildDir( build_dir, '.', duplicate = 0 )
+ lib_objects = []
+ for project in [ 'libs/cmdlib/cmdlib.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/l_net/l_net.vcproj', 'libs/ddslib/ddslib.vcproj', 'libs/picomodel/picomodel.vcproj', 'libs/md5lib/md5lib.vcproj' ]:
+ Export( 'project' )
+ lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) )
+ Export( 'lib_objects' )
+ q3map2 = SConscript( os.path.join( build_dir, 'SConscript.q3map2' ) )
+ self.InstallAs( 'install/q3map2', q3map2 )
+
+
+ def emit( self ):
+ try:
+ self.target_selected.index( 'radiant' )
+ except:
+ pass
+ else:
+ self.emit_radiant()
+ try:
+ self.target_selected.index( 'q3map2' )
+ except:
+ pass
+ else:
+ self.emit_q3map2()