Changeset 180

Show
Ignore:
Timestamp:
10/23/07 23:00:48 (9 months ago)
Author:
timo
Message:

some updates to the Linux build system - obtained a core binary and all required modules

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/SConscript.lib

    r179 r180  
    1212 
    1313env = Environment() 
    14 settings.SetupEnvironment( env, config
     14settings.SetupEnvironment( env, config['name']
    1515proj = utils.vcproj( os.path.join( GetLaunchDir(), project ) ) 
    1616 
     
    2121        add_sources.append( 'l_net_berkeley.c' ) 
    2222 
    23 #env.StaticLibrary( libname, [ os.path.join( libpath, i ) for i in files ] ) 
     23emit_func = env.StaticObject 
     24try: 
     25        if ( config['shared'] ): 
     26                emit_func = env.SharedObject 
     27except: 
     28        pass 
     29 
    2430objects = [] 
    2531for i in files + add_sources: 
    26         objects.append( env.StaticObject( os.path.join( libpath, i ) ) ) 
     32        objects.append( emit_func( os.path.join( libpath, i ) ) ) 
    2733 
    2834Return( 'objects' ) 
  • GtkRadiant/branches/ZeroRadiant/SConscript.radiant

    r179 r180  
    99 
    1010env = Environment() 
    11 settings.SetupEnvironment( env, config, useGtk = True, useGtkGL = True ) 
     11settings.SetupEnvironment( env, config['name'], useGtk = True, useGtkGL = True ) 
    1212proj = utils.vcproj( os.path.join( GetLaunchDir(), 'radiant/radiant.vcproj' ) ) 
    1313 
    14 env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] ) 
     14radiant = env.Program( 'radiant.bin', lib_objects + [ os.path.join( 'radiant', i ) for i in proj.getSourceFiles() ] ) 
    1515 
     16Return( 'radiant' ) 
     17 
     18 
  • GtkRadiant/branches/ZeroRadiant/config.py

    r179 r180  
    5252        def emit( self ): 
    5353                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 
    5558                        Export( 'utils', 'settings', 'config' ) 
    56                         build_dir = os.path.join( 'build', config
     59                        build_dir = os.path.join( 'build', config_name
    5760                        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?) 
    5962                        lib_objects = [] 
    6063                        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' ]: 
     
    6265                                lib_objects += SConscript( os.path.join( build_dir, 'SConscript.lib' ) ) 
    6366                        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 ): 
    67101                env['CC'] = self.cc 
    68102                env['CXX'] = self.cxx 
     
    73107                xml2libs = commands.getoutput( 'xml2-config --libs' ) 
    74108                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' ] 
    76111                if ( useGtk ): 
    77112                        ( ret, gtk2 ) = commands.getstatusoutput( 'pkg-config gtk+-2.0 --cflags' ) 
     
    83118                        env.Append( LINKFLAGS = gtk2libs.split( ' ' ) ) 
    84119                else: 
     120                        # always setup at least glib 
    85121                        ( ret, glib ) = commands.getstatusoutput( 'pkg-config glib-2.0 --cflags' ) 
    86122                        if ( ret != 0 ): 
     
    88124                                assert( False ) 
    89125                        baseflags += glib.split( ' ' ) 
     126                        gliblibs = commands.getoutput( 'pkg-config glib-2.0 --libs' ) 
     127                        env.Append( LINKFLAGS = gliblibs.split( ' ' ) ) 
    90128                if ( useGtkGL ): 
    91129                        ( ret, gtkgl ) = commands.getstatusoutput( 'pkg-config gtkglext-1.0 --cflags' ) 
     
    96134                        gtkgllibs = commands.getoutput( 'pkg-config gtkglext-1.0 --libs' ) 
    97135                        env.Append( LINKFLAGS = gtkgllibs.split( ' ' ) ) 
     136                if ( useJPEG ): 
     137                        env.Append( LIBS = 'jpeg' ) 
    98138                         
    99139                env.Append( CFLAGS = baseflags ) 
     
    105145                        env.Append( CPPDEFINES = [ '_DEBUG' ] )                          
    106146                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' ] ) 
    108151 
    109152# parse the config statement line to produce/update an existing config list 
  • GtkRadiant/branches/ZeroRadiant/contrib/bkgrnd2d/plugin.cpp

    r177 r180  
    255255CSynapseClientBkgrnd2d g_SynapseClient; 
    256256     
    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 
     260extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     261#if __GNUC__ >= 4 
     262#pragma GCC visibility pop 
     263#endif 
    259264  if (strcmp(version, SYNAPSE_VERSION)) 
    260265  { 
  • GtkRadiant/branches/ZeroRadiant/contrib/bobtoolz/bobToolz-GTK.cpp

    r177 r180  
    220220CSynapseClientBobtoolz g_SynapseClient; 
    221221 
    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 
     225extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     226#if __GNUC__ >= 4 
     227#pragma GCC visibility pop 
     228#endif 
    224229  if (strcmp(version, SYNAPSE_VERSION)) 
    225230  { 
  • GtkRadiant/branches/ZeroRadiant/contrib/camera/camera.cpp

    r177 r180  
    185185CameraSynapseClient g_SynapseClient; 
    186186 
    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 
     190extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     191#if __GNUC__ >= 4 
     192#pragma GCC visibility pop 
     193#endif 
    189194  if (strcmp(version, SYNAPSE_VERSION)) 
    190195  { 
  • GtkRadiant/branches/ZeroRadiant/contrib/gtkgensurf/plugin.cpp

    r177 r180  
    182182GenSurfSynapseClient g_SynapseClient; 
    183183 
    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 
     187extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     188#if __GNUC__ >= 4 
     189#pragma GCC visibility pop 
     190#endif 
    186191  if (strcmp(version, SYNAPSE_VERSION)) 
    187192  { 
  • GtkRadiant/branches/ZeroRadiant/contrib/hydratoolz/plugin.cpp

    r177 r180  
    373373CSynapseClientHydraToolz g_SynapseClient; 
    374374 
    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 
     378extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     379#if __GNUC__ >= 4 
     380#pragma GCC visibility pop 
     381#endif 
    377382  if (strcmp(version, SYNAPSE_VERSION)) 
    378383  { 
  • GtkRadiant/branches/ZeroRadiant/contrib/prtview/prtview.cpp

    r177 r180  
    497497CSynapseClientPrtView g_SynapseClient; 
    498498 
    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 
     502extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     503#if __GNUC__ >= 4 
     504#pragma GCC visibility pop 
     505#endif 
    501506  if (strcmp(version, SYNAPSE_VERSION)) 
    502507  { 
  • GtkRadiant/branches/ZeroRadiant/libs/synapse.h

    r177 r180  
    6161  #define SYNAPSE_DLL_EXPORT WINAPI 
    6262#elif defined(__linux__) || defined(__APPLE__)  /* ydnar */ 
     63//  #define SYNAPSE_DLL_EXPORT __attribute__ ((visibility ("protected"))) 
    6364  #define SYNAPSE_DLL_EXPORT 
    6465#else 
  • GtkRadiant/branches/ZeroRadiant/plugins/eclassfgd/plugin.cpp

    r177 r180  
    136136CSynapseClientFGD g_SynapseClient; 
    137137 
    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 
     141extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     142#if __GNUC__ >= 4 
     143#pragma GCC visibility pop 
     144#endif 
    140145  if (strcmp(version, SYNAPSE_VERSION)) 
    141146  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/entity/plugin.cpp

    r177 r180  
    5757CSynapseClientEntity g_SynapseClient; 
    5858 
    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 
     62extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     63#if __GNUC__ >= 4 
     64#pragma GCC visibility pop 
     65#endif 
    6166  if (strcmp(version, SYNAPSE_VERSION)) 
    6267  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/image/image.cpp

    r177 r180  
    5656    { NULL, SYN_UNKNOWN, 0, NULL } }; 
    5757 
    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 
     61extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     62#if __GNUC__ >= 4 
     63#pragma GCC visibility pop 
     64#endif 
    6065  if (strcmp(version, SYNAPSE_VERSION)) 
    6166  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/image/jpeg.cpp

    r177 r180  
    4141#include <glib.h> 
    4242 
     43#include <jpeglib.h> 
     44#include <jerror.h> 
     45 /* 
    4346extern "C" { 
    4447#include "radiant_jpeglib.h" 
    4548#include "jpeg6/jerror.h" 
    4649} 
     50 */ 
    4751 
    4852#include "image.h" 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagehl/imagehl.cpp

    r177 r180  
    5151CSynapseClientImageHL g_SynapseClient; 
    5252 
    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 
     56extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     57#if __GNUC__ >= 4 
     58#pragma GCC visibility pop 
     59#endif 
    5560  if (strcmp(version, SYNAPSE_VERSION)) 
    5661  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagem8/imagem8.cpp

    r177 r180  
    5050CSynapseClientImage g_SynapseClient; 
    5151 
    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 
     55extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     56#if __GNUC__ >= 4 
     57#pragma GCC visibility pop 
     58#endif 
    5459  if (strcmp(version, SYNAPSE_VERSION)) 
    5560  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagepng/plugin.cpp

    r177 r180  
    4747CSynapseClientImage g_SynapseClient; 
    4848 
    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 
     52extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     53#if __GNUC__ >= 4 
     54#pragma GCC visibility pop 
     55#endif 
    5156  if (strcmp(version, SYNAPSE_VERSION)) 
    5257  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/imagewal/imagewal.cpp

    r177 r180  
    4040    { NULL, SYN_UNKNOWN, 0, NULL } }; 
    4141 
    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 
     45extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     46#if __GNUC__ >= 4 
     47#pragma GCC visibility pop 
     48#endif 
    4449  if (strcmp(version, SYNAPSE_VERSION)) 
    4550  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/map/plugin.cpp

    r177 r180  
    5050    { NULL, SYN_UNKNOWN, 0, NULL } };     
    5151 
    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 
     55extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     56#if __GNUC__ >= 4 
     57#pragma GCC visibility pop 
     58#endif 
    5459  if (strcmp(version, SYNAPSE_VERSION)) 
    5560  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/mapxml/plugin.cpp

    r177 r180  
    2222    { NULL, SYN_UNKNOWN, 0, NULL } }; 
    2323   
    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 
     27extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     28#if __GNUC__ >= 4 
     29#pragma GCC visibility pop 
     30#endif 
    2631  if (strcmp(version, SYNAPSE_VERSION)) 
    2732  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/model/plugin.cpp

    r177 r180  
    355355    { NULL, SYN_UNKNOWN, 0, NULL } }; 
    356356 
    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 
     360extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     361#if __GNUC__ >= 4 
     362#pragma GCC visibility pop 
     363#endif 
    359364  if (strcmp(version, SYNAPSE_VERSION)) 
    360365  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/shaders/plugin.cpp

    r177 r180  
    6161    { NULL, SYN_UNKNOWN, 0, NULL } }; 
    6262 
    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 
     66extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     67#if __GNUC__ >= 4 
     68#pragma GCC visibility pop 
     69#endif 
    6570  if (strcmp(version, SYNAPSE_VERSION)) 
    6671  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/spritemodel/plugin.cpp

    r177 r180  
    214214CSynapseClientModel g_SynapseClient; 
    215215     
    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 
     219extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     220#if __GNUC__ >= 4 
     221#pragma GCC visibility pop 
     222#endif 
    218223  if (strcmp(version, SYNAPSE_VERSION)) 
    219224  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/surface/surfdlg_plugin.cpp

    r177 r180  
    6262CSynapseClient_SurfDLG g_SynapseClient; 
    6363 
    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 
     67extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     68#if __GNUC__ >= 4 
     69#pragma GCC visibility pop 
     70#endif 
    6671  if (strcmp(version, SYNAPSE_VERSION)) 
    6772  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/surface_heretic2/surfdlg_plugin.cpp

    r177 r180  
    6262CSynapseClient_SurfDLG g_SynapseClient; 
    6363 
    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 
     67extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     68#if __GNUC__ >= 4 
     69#pragma GCC visibility pop 
     70#endif 
    6671  if (strcmp(version, SYNAPSE_VERSION)) 
    6772  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/surface_quake2/surfdlg_plugin.cpp

    r177 r180  
    6262CSynapseClient_SurfDLG g_SynapseClient; 
    6363 
    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 
     67extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     68#if __GNUC__ >= 4 
     69#pragma GCC visibility pop 
     70#endif 
    6671  if (strcmp(version, SYNAPSE_VERSION)) 
    6772  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/textool/TexTool.cpp

    r177 r180  
    920920CSynapseClientTexTool g_SynapseClient; 
    921921 
    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 
     925extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     926#if __GNUC__ >= 4 
     927#pragma GCC visibility pop 
     928#endif 
    924929  if (strcmp(version, SYNAPSE_VERSION)) 
    925930  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/vfspak/vfspak.cpp

    r177 r180  
    4747CSynapseClientVFS g_SynapseClient; 
    4848 
    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 
     52extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     53#if __GNUC__ >= 4 
     54#pragma GCC visibility pop 
     55#endif 
    5156  if (strcmp(version, SYNAPSE_VERSION)) 
    5257  { 
  • GtkRadiant/branches/ZeroRadiant/plugins/vfspk3/vfspk3.cpp

    r177 r180  
    5151CSynapseClientVFS g_SynapseClient; 
    5252 
    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 
     56extern "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 ) ) { 
    5762    Syn_Printf("ERROR: synapse API version mismatch: should be '" SYNAPSE_VERSION "', got '%s'\n", version); 
    5863    return NULL; 
     
    6065  g_pSynapseServer = pServer; 
    6166  g_pSynapseServer->IncRef(); 
    62   Set_Syn_Printf(g_pSynapseServer->Get_Syn_Printf()); 
     67  Set_Syn_Printf( g_pSynapseServer->Get_Syn_Printf() ); 
    6368   
    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 ); 
    6671 
    6772  return &g_SynapseClient; 
  • GtkRadiant/branches/ZeroRadiant/plugins/vfswad/vfswad.cpp

    r177 r180  
    5353CSynapseClientVFS g_SynapseClient; 
    5454 
    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 
     58extern "C" CSynapseClient* SYNAPSE_DLL_EXPORT Synapse_EnumerateInterfaces( const char *version, CSynapseServer *pServer ) { 
     59#if __GNUC__ >= 4 
     60#pragma GCC visibility pop 
     61#endif 
    5762  if (strcmp(version, SYNAPSE_VERSION)) 
    5863  {