Changeset 180
- Timestamp:
- 10/23/07 23:00:48 (9 months ago)
- Files:
-
- GtkRadiant/branches/ZeroRadiant/SConscript.lib (modified) (2 diffs)
- GtkRadiant/branches/ZeroRadiant/SConscript.module (added)
- GtkRadiant/branches/ZeroRadiant/SConscript.radiant (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/config.py (modified) (7 diffs)
- GtkRadiant/branches/ZeroRadiant/contrib/bkgrnd2d/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/contrib/bobtoolz/bobToolz-GTK.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/contrib/camera/camera.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/contrib/hydratoolz/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/contrib/prtview/prtview.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/install (added)
- GtkRadiant/branches/ZeroRadiant/install/games (added)
- GtkRadiant/branches/ZeroRadiant/install/games/qz.game (added)
- GtkRadiant/branches/ZeroRadiant/install/games/synapse.config (added)
- GtkRadiant/branches/ZeroRadiant/libs/jpeglib.h (deleted)
- GtkRadiant/branches/ZeroRadiant/libs/synapse.h (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/eclassfgd/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/entity/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/image/image.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/image/jpeg.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/imagehl/imagehl.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/imagem8/imagem8.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/imagepng/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/imagewal/imagewal.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/map/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/mapxml/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/model/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/shaders/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/spritemodel/plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/surface/surfdlg_plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/surface_heretic2/surfdlg_plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/surface_quake2/surfdlg_plugin.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/textool/TexTool.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/vfspak/vfspak.cpp (modified) (1 diff)
- GtkRadiant/branches/ZeroRadiant/plugins/vfspk3/vfspk3.cpp (modified) (2 diffs)
- GtkRadiant/branches/ZeroRadiant/plugins/vfswad/vfswad.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
GtkRadiant/branches/ZeroRadiant/SConscript.lib
r179 r180 12 12 13 13 env = Environment() 14 settings.SetupEnvironment( env, config )14 settings.SetupEnvironment( env, config['name'] ) 15 15 proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) ) 16 16 … … 21 21 add_sources.append( 'l_net_berkeley.c' ) 22 22 23 #env.StaticLibrary( libname, [ os.path.join( libpath, i ) for i in files ] ) 23 emit_func = env.StaticObject 24 try: 25 if ( config['shared'] ): 26 emit_func = env.SharedObject 27 except: 28 pass 29 24 30 objects = [] 25 31 for i in files + add_sources: 26 objects.append( e nv.StaticObject( os.path.join( libpath, i ) ) )32 objects.append( emit_func( os.path.join( libpath, i ) ) ) 27 33 28 34 Return( 'objects' ) GtkRadiant/branches/ZeroRadiant/SConscript.radiant
r179 r180 9 9 10 10 env = Environment() 11 settings.SetupEnvironment( env, config , useGtk = True, useGtkGL = True )11 settings.SetupEnvironment( env, config['name'], useGtk = True, useGtkGL = True ) 12 12 proj = utils.vcproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcproj' ) ) 13 13 14 env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] )14 radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] ) 15 15 16 Return( 'radiant' ) 17 18 GtkRadiant/branches/ZeroRadiant/config.py
r179 r180 52 52 def emit( self ): 53 53 settings = self 54 for config in self.config_selected: 54 for config_name in self.config_selected: 55 config = {} 56 config['name'] = config_name 57 config['shared'] = False 55 58 Export( 'utils', 'settings', 'config' ) 56 build_dir = os.path.join( 'build', config )59 build_dir = os.path.join( 'build', config_name ) 57 60 BuildDir( build_dir, '.', duplicate = 0 ) 58 # left out jpeg6, splines 61 # left out jpeg6, splines (FIXME: I think jpeg6 is not used at all, can trash?) 59 62 lib_objects = [] 60 63 for project in [ 'libs/synapse/synapse.vcproj', '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' ]: … … 62 65 lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) ) 63 66 Export( 'lib_objects' ) 64 SConscript( os.path.join( build_dir, 'SConscript.radiant' ) ) 65 66 def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False ): 67 radiant = SConscript( os.path.join( build_dir, 'SConscript.radiant' ) ) 68 InstallAs( 'install/radiant.bin', radiant ) 69 70 # PIC versions of the libs for the modules 71 shlib_objects_extra = {} 72 for project in [ 'libs/synapse/synapse.vcproj', 'libs/mathlib/mathlib.vcproj', 'libs/cmdlib/cmdlib.vcproj' ]: 73 ( libpath, libname ) = os.path.split( project ) 74 libname = os.path.splitext( libname )[0] 75 config['shared'] = True 76 Export( 'project', 'config' ) 77 build_dir = os.path.join( 'build', config_name, 'shobjs' ) 78 BuildDir( build_dir, '.', duplicate = 0 ) 79 shlib_objects_extra[libname] = SConscript( os.path.join( build_dir, 'SConscript.lib' ) ) 80 81 for project in [ 'plugins/vfspk3/vfspk3.vcproj', 82 'plugins/image/image.vcproj', 83 'plugins/entity/entity.vcproj', 84 'plugins/map/map.vcproj', 85 'plugins/mapxml/mapxml.vcproj', 86 'plugins/shaders/shaders.vcproj', 87 'plugins/surface/surface.vcproj' 88 ]: 89 ( libpath, libname ) = os.path.split( project ) 90 libname = os.path.splitext( libname )[0] 91 shlib_objects = shlib_objects_extra['synapse'] 92 if ( libname == 'entity' ): 93 shlib_objects += shlib_objects_extra['mathlib'] 94 if ( libname == 'map' ): 95 shlib_objects += shlib_objects_extra['cmdlib'] 96 Export( 'project', 'shlib_objects' ) 97 module = SConscript( os.path.join( build_dir, 'SConscript.module' ) ) 98 InstallAs( 'install/modules/%s.so' % libname, module ) 99 100 def SetupEnvironment( self, env, config, useGtk = False, useGtkGL = False, useJPEG = False ): 67 101 env['CC'] = self.cc 68 102 env['CXX'] = self.cxx … … 73 107 xml2libs = commands.getoutput( 'xml2-config --libs' ) 74 108 env.Append( LINKFLAGS = xml2libs.split( ' ' ) ) 75 baseflags = [ '-m32', '-pipe', '-Wall', '-fmessage-length=0', '-fvisibility=hidden', xml2.split( ' ' ) ] 109 baseflags = [ '-pipe', '-Wall', '-fmessage-length=0', '-fvisibility=hidden', xml2.split( ' ' ) ] 110 # baseflags += [ '-m32' ] 76 111 if ( useGtk ): 77 112 ( ret, gtk2 ) = commands.getstatusoutput( 'pkg-config gtk+-2.0 --cflags' ) … … 83 118 env.Append( LINKFLAGS = gtk2libs.split( ' ' ) ) 84 119 else: 120 # always setup at least glib 85 121 ( ret, glib ) = commands.getstatusoutput( 'pkg-config glib-2.0 --cflags' ) 86 122 if ( ret != 0 ): … … 88 124 assert( False ) 89 125 baseflags += glib.split( ' ' ) 126 gliblibs = commands.getoutput( 'pkg-config glib-2.0 --libs' ) 127 env.Append( LINKFLAGS = gliblibs.split( ' ' ) ) 90 128 if ( useGtkGL ): 91 129 ( ret, gtkgl ) = commands.getstatusoutput( 'pkg-config gtkglext-1.0 --cflags' ) … … 96 134 gtkgllibs = commands.getoutput( 'pkg-config gtkglext-1.0 --libs' ) 97 135 env.Append( LINKFLAGS = gtkgllibs.split( ' ' ) ) 136 if ( useJPEG ): 137 env.Append( LIBS = 'jpeg' ) 98 138 99 139 env.Append( CFLAGS = baseflags ) … … 105 145 env.Append( CPPDEFINES = [ '_DEBUG' ] ) 106 146 else: 107 env.Append( CFLAGS = [ '-O3', '-march=pentium3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations' ] ) 147 env.Append( CFLAGS = [ '-O3', '-Winline', '-ffast-math', '-fno-unsafe-math-optimizations' ] ) 148 #env.Append( CFLAGS = [ '-march=pentium3' ] ) 149 150 # env.Append( LINKFLAGS = [ '-m32' ] ) 108 151 109 152 # parse the config statement line to produce/update an existing config list GtkRadiant/branches/ZeroRadiant/contrib/bkgrnd2d/plugin.cpp
r177 r180 255 255 CSynapseClientBkgrnd2d g_SynapseClient; 256 256 257 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 258 { 257 #if __GNUC__ >= 4 258 #pragma GCC visibility push(default) 259 #endif 260 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 261 #if __GNUC__ >= 4 262 #pragma GCC visibility pop 263 #endif 259 264 if (strcmp(version, SYNAPSE_VERSION)) 260 265 { GtkRadiant/branches/ZeroRadiant/contrib/bobtoolz/bobToolz-GTK.cpp
r177 r180 220 220 CSynapseClientBobtoolz g_SynapseClient; 221 221 222 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 223 { 222 #if __GNUC__ >= 4 223 #pragma GCC visibility push(default) 224 #endif 225 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 226 #if __GNUC__ >= 4 227 #pragma GCC visibility pop 228 #endif 224 229 if (strcmp(version, SYNAPSE_VERSION)) 225 230 { GtkRadiant/branches/ZeroRadiant/contrib/camera/camera.cpp
r177 r180 185 185 CameraSynapseClient g_SynapseClient; 186 186 187 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 188 { 187 #if __GNUC__ >= 4 188 #pragma GCC visibility push(default) 189 #endif 190 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 191 #if __GNUC__ >= 4 192 #pragma GCC visibility pop 193 #endif 189 194 if (strcmp(version, SYNAPSE_VERSION)) 190 195 { GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/plugin.cpp
r177 r180 182 182 GenSurfSynapseClient g_SynapseClient; 183 183 184 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 185 { 184 #if __GNUC__ >= 4 185 #pragma GCC visibility push(default) 186 #endif 187 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 188 #if __GNUC__ >= 4 189 #pragma GCC visibility pop 190 #endif 186 191 if (strcmp(version, SYNAPSE_VERSION)) 187 192 { GtkRadiant/branches/ZeroRadiant/contrib/hydratoolz/plugin.cpp
r177 r180 373 373 CSynapseClientHydraToolz g_SynapseClient; 374 374 375 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 376 { 375 #if __GNUC__ >= 4 376 #pragma GCC visibility push(default) 377 #endif 378 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 379 #if __GNUC__ >= 4 380 #pragma GCC visibility pop 381 #endif 377 382 if (strcmp(version, SYNAPSE_VERSION)) 378 383 { GtkRadiant/branches/ZeroRadiant/contrib/prtview/prtview.cpp
r177 r180 497 497 CSynapseClientPrtView g_SynapseClient; 498 498 499 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 500 { 499 #if __GNUC__ >= 4 500 #pragma GCC visibility push(default) 501 #endif 502 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 503 #if __GNUC__ >= 4 504 #pragma GCC visibility pop 505 #endif 501 506 if (strcmp(version, SYNAPSE_VERSION)) 502 507 { GtkRadiant/branches/ZeroRadiant/libs/synapse.h
r177 r180 61 61 #define SYNAPSE_DLL_EXPORT WINAPI 62 62 #elif defined(__linux__) || defined(__APPLE__) /* ydnar */ 63 // #define SYNAPSE_DLL_EXPORT __attribute__ ((visibility ("protected"))) 63 64 #define SYNAPSE_DLL_EXPORT 64 65 #else GtkRadiant/branches/ZeroRadiant/plugins/eclassfgd/plugin.cpp
r177 r180 136 136 CSynapseClientFGD g_SynapseClient; 137 137 138 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 139 { 138 #if __GNUC__ >= 4 139 #pragma GCC visibility push(default) 140 #endif 141 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 142 #if __GNUC__ >= 4 143 #pragma GCC visibility pop 144 #endif 140 145 if (strcmp(version, SYNAPSE_VERSION)) 141 146 { GtkRadiant/branches/ZeroRadiant/plugins/entity/plugin.cpp
r177 r180 57 57 CSynapseClientEntity g_SynapseClient; 58 58 59 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 60 { 59 #if __GNUC__ >= 4 60 #pragma GCC visibility push(default) 61 #endif 62 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 63 #if __GNUC__ >= 4 64 #pragma GCC visibility pop 65 #endif 61 66 if (strcmp(version, SYNAPSE_VERSION)) 62 67 { GtkRadiant/branches/ZeroRadiant/plugins/image/image.cpp
r177 r180 56 56 { NULL, SYN_UNKNOWN, 0, NULL } }; 57 57 58 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 59 { 58 #if __GNUC__ >= 4 59 #pragma GCC visibility push(default) 60 #endif 61 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 62 #if __GNUC__ >= 4 63 #pragma GCC visibility pop 64 #endif 60 65 if (strcmp(version, SYNAPSE_VERSION)) 61 66 { GtkRadiant/branches/ZeroRadiant/plugins/image/jpeg.cpp
r177 r180 41 41 #include <glib.h> 42 42 43 #include <jpeglib.h> 44 #include <jerror.h> 45 /* 43 46 extern "C" { 44 47 #include "radiant_jpeglib.h" 45 48 #include "jpeg6/jerror.h" 46 49 } 50 */ 47 51 48 52 #include "image.h" GtkRadiant/branches/ZeroRadiant/plugins/imagehl/imagehl.cpp
r177 r180 51 51 CSynapseClientImageHL g_SynapseClient; 52 52 53 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 54 { 53 #if __GNUC__ >= 4 54 #pragma GCC visibility push(default) 55 #endif 56 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 57 #if __GNUC__ >= 4 58 #pragma GCC visibility pop 59 #endif 55 60 if (strcmp(version, SYNAPSE_VERSION)) 56 61 { GtkRadiant/branches/ZeroRadiant/plugins/imagem8/imagem8.cpp
r177 r180 50 50 CSynapseClientImage g_SynapseClient; 51 51 52 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 53 { 52 #if __GNUC__ >= 4 53 #pragma GCC visibility push(default) 54 #endif 55 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 56 #if __GNUC__ >= 4 57 #pragma GCC visibility pop 58 #endif 54 59 if (strcmp(version, SYNAPSE_VERSION)) 55 60 { GtkRadiant/branches/ZeroRadiant/plugins/imagepng/plugin.cpp
r177 r180 47 47 CSynapseClientImage g_SynapseClient; 48 48 49 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 50 { 49 #if __GNUC__ >= 4 50 #pragma GCC visibility push(default) 51 #endif 52 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 53 #if __GNUC__ >= 4 54 #pragma GCC visibility pop 55 #endif 51 56 if (strcmp(version, SYNAPSE_VERSION)) 52 57 { GtkRadiant/branches/ZeroRadiant/plugins/imagewal/imagewal.cpp
r177 r180 40 40 { NULL, SYN_UNKNOWN, 0, NULL } }; 41 41 42 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 43 { 42 #if __GNUC__ >= 4 43 #pragma GCC visibility push(default) 44 #endif 45 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 46 #if __GNUC__ >= 4 47 #pragma GCC visibility pop 48 #endif 44 49 if (strcmp(version, SYNAPSE_VERSION)) 45 50 { GtkRadiant/branches/ZeroRadiant/plugins/map/plugin.cpp
r177 r180 50 50 { NULL, SYN_UNKNOWN, 0, NULL } }; 51 51 52 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 53 { 52 #if __GNUC__ >= 4 53 #pragma GCC visibility push(default) 54 #endif 55 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 56 #if __GNUC__ >= 4 57 #pragma GCC visibility pop 58 #endif 54 59 if (strcmp(version, SYNAPSE_VERSION)) 55 60 { GtkRadiant/branches/ZeroRadiant/plugins/mapxml/plugin.cpp
r177 r180 22 22 { NULL, SYN_UNKNOWN, 0, NULL } }; 23 23 24 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 25 { 24 #if __GNUC__ >= 4 25 #pragma GCC visibility push(default) 26 #endif 27 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 28 #if __GNUC__ >= 4 29 #pragma GCC visibility pop 30 #endif 26 31 if (strcmp(version, SYNAPSE_VERSION)) 27 32 { GtkRadiant/branches/ZeroRadiant/plugins/model/plugin.cpp
r177 r180 355 355 { NULL, SYN_UNKNOWN, 0, NULL } }; 356 356 357 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 358 { 357 #if __GNUC__ >= 4 358 #pragma GCC visibility push(default) 359 #endif 360 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 361 #if __GNUC__ >= 4 362 #pragma GCC visibility pop 363 #endif 359 364 if (strcmp(version, SYNAPSE_VERSION)) 360 365 { GtkRadiant/branches/ZeroRadiant/plugins/shaders/plugin.cpp
r177 r180 61 61 { NULL, SYN_UNKNOWN, 0, NULL } }; 62 62 63 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 64 { 63 #if __GNUC__ >= 4 64 #pragma GCC visibility push(default) 65 #endif 66 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 67 #if __GNUC__ >= 4 68 #pragma GCC visibility pop 69 #endif 65 70 if (strcmp(version, SYNAPSE_VERSION)) 66 71 { GtkRadiant/branches/ZeroRadiant/plugins/spritemodel/plugin.cpp
r177 r180 214 214 CSynapseClientModel g_SynapseClient; 215 215 216 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 217 { 216 #if __GNUC__ >= 4 217 #pragma GCC visibility push(default) 218 #endif 219 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 220 #if __GNUC__ >= 4 221 #pragma GCC visibility pop 222 #endif 218 223 if (strcmp(version, SYNAPSE_VERSION)) 219 224 { GtkRadiant/branches/ZeroRadiant/plugins/surface/surfdlg_plugin.cpp
r177 r180 62 62 CSynapseClient_SurfDLG g_SynapseClient; 63 63 64 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 65 { 64 #if __GNUC__ >= 4 65 #pragma GCC visibility push(default) 66 #endif 67 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 68 #if __GNUC__ >= 4 69 #pragma GCC visibility pop 70 #endif 66 71 if (strcmp(version, SYNAPSE_VERSION)) 67 72 { GtkRadiant/branches/ZeroRadiant/plugins/surface_heretic2/surfdlg_plugin.cpp
r177 r180 62 62 CSynapseClient_SurfDLG g_SynapseClient; 63 63 64 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 65 { 64 #if __GNUC__ >= 4 65 #pragma GCC visibility push(default) 66 #endif 67 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 68 #if __GNUC__ >= 4 69 #pragma GCC visibility pop 70 #endif 66 71 if (strcmp(version, SYNAPSE_VERSION)) 67 72 { GtkRadiant/branches/ZeroRadiant/plugins/surface_quake2/surfdlg_plugin.cpp
r177 r180 62 62 CSynapseClient_SurfDLG g_SynapseClient; 63 63 64 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 65 { 64 #if __GNUC__ >= 4 65 #pragma GCC visibility push(default) 66 #endif 67 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 68 #if __GNUC__ >= 4 69 #pragma GCC visibility pop 70 #endif 66 71 if (strcmp(version, SYNAPSE_VERSION)) 67 72 { GtkRadiant/branches/ZeroRadiant/plugins/textool/TexTool.cpp
r177 r180 920 920 CSynapseClientTexTool g_SynapseClient; 921 921 922 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 923 { 922 #if __GNUC__ >= 4 923 #pragma GCC visibility push(default) 924 #endif 925 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 926 #if __GNUC__ >= 4 927 #pragma GCC visibility pop 928 #endif 924 929 if (strcmp(version, SYNAPSE_VERSION)) 925 930 { GtkRadiant/branches/ZeroRadiant/plugins/vfspak/vfspak.cpp
r177 r180 47 47 CSynapseClientVFS g_SynapseClient; 48 48 49 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 50 { 49 #if __GNUC__ >= 4 50 #pragma GCC visibility push(default) 51 #endif 52 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 53 #if __GNUC__ >= 4 54 #pragma GCC visibility pop 55 #endif 51 56 if (strcmp(version, SYNAPSE_VERSION)) 52 57 { GtkRadiant/branches/ZeroRadiant/plugins/vfspk3/vfspk3.cpp
r177 r180 51 51 CSynapseClientVFS g_SynapseClient; 52 52 53 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 54 { 55 if (strcmp(version, SYNAPSE_VERSION)) 56 { 53 #if __GNUC__ >= 4 54 #pragma GCC visibility push(default) 55 #endif 56 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 57 #if __GNUC__ >= 4 58 #pragma GCC visibility pop 59 #endif 60 61 if ( strcmp( version, SYNAPSE_VERSION ) ) { 57 62 Syn_Printf("ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version); 58 63 return NULL; … … 60 65 g_pSynapseServer = pServer; 61 66 g_pSynapseServer->IncRef(); 62 Set_Syn_Printf( g_pSynapseServer->Get_Syn_Printf());67 Set_Syn_Printf( g_pSynapseServer->Get_Syn_Printf() ); 63 68 64 g_SynapseClient.AddAPI( VFS_MAJOR, "pk3", sizeof(_QERFileSystemTable));65 g_SynapseClient.AddAPI( RADIANT_MAJOR, NULL, sizeof(_QERFuncTable_1), SYN_REQUIRE, &g_FuncTable);69 g_SynapseClient.AddAPI( VFS_MAJOR, "pk3", sizeof( _QERFileSystemTable ) ); 70 g_SynapseClient.AddAPI( RADIANT_MAJOR, NULL, sizeof( _QERFuncTable_1 ), SYN_REQUIRE, &g_FuncTable ); 66 71 67 72 return &g_SynapseClient; GtkRadiant/branches/ZeroRadiant/plugins/vfswad/vfswad.cpp
r177 r180 53 53 CSynapseClientVFS g_SynapseClient; 54 54 55 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces (const char *version, CSynapseServer *pServer) 56 { 55 #if __GNUC__ >= 4 56 #pragma GCC visibility push(default) 57 #endif 58 extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 59 #if __GNUC__ >= 4 60 #pragma GCC visibility pop 61 #endif 57 62 if (strcmp(version, SYNAPSE_VERSION)) 58 63 {
