Changeset 181

Show
Ignore:
Timestamp:
11/03/07 10:00:38 (8 months ago)
Author:
timo
Message:

compiles on OSX (10.4.10 Intel)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • GtkRadiant/branches/ZeroRadiant/config.py

    r180 r181  
    1 import sys, traceback, platform, re, commands 
     1import sys, traceback, platform, re, commands, platform 
    22 
    33if __name__ != '__main__': 
     
    2626                self.config_selected = [ 'release' ] 
    2727                # those are global to each config 
    28                 self.cc = 'gcc-4.1' 
    29                 self.cxx = 'g++-4.1' 
     28                self.platform = platform.system() 
     29                if ( self.platform == 'Darwin' ): 
     30                        self.cc = 'gcc' 
     31                        self.cxx = 'g++' 
     32                else: 
     33                        self.cc = 'gcc-4.1' 
     34                        self.cxx = 'g++-4.1' 
    3035 
    3136        def __repr__( self ): 
     
    109114                baseflags = [ '-pipe', '-Wall', '-fmessage-length=0', '-fvisibility=hidden', xml2.split( ' ' ) ] 
    110115#               baseflags += [ '-m32' ] 
     116 
     117                if ( self.platform == 'Darwin' ): 
     118                        env.Append( CPPPATH = [ '/Developer/SDKs/MacOSX10.4u.sdk/usr/X11R6/include' ] ) 
     119 
    111120                if ( useGtk ): 
    112121                        ( ret, gtk2 ) = commands.getstatusoutput( 'pkg-config gtk+-2.0 --cflags' ) 
     
    126135                        gliblibs = commands.getoutput( 'pkg-config glib-2.0 --libs' ) 
    127136                        env.Append( LINKFLAGS = gliblibs.split( ' ' ) ) 
     137 
    128138                if ( useGtkGL ): 
    129139                        ( ret, gtkgl ) = commands.getstatusoutput( 'pkg-config gtkglext-1.0 --cflags' ) 
  • GtkRadiant/branches/ZeroRadiant/utils.py

    r179 r181  
    44# http://scons.sourceforge.net 
    55 
    6 import os, commands, platform, xml.sax, re, string 
     6import os, commands, platform, xml.sax, re, string, platform 
    77 
    88class vcproj( xml.sax.handler.ContentHandler ): 
     
    4747# setup as an AddPostAction of a regular SharedLibrary call 
    4848def CheckUnresolved( source, target, env ): 
     49        # TODO: implement this for OSX 
     50        if ( platform.system() == 'Darwin' ): 
     51                return None 
    4952        print 'CheckUnresolved %s' % target[0].abspath 
    5053        if ( not os.path.isfile( target[0].abspath ) ):