X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/35bf863b1c31c0f1679b214c1b9a742eba918c5e..e6056257ab676ea10a51ef96e19b1f1092f95b40:/wxPython/setup.py diff --git a/wxPython/setup.py b/wxPython/setup.py index 516529fdce..dfef8c1d50 100755 --- a/wxPython/setup.py +++ b/wxPython/setup.py @@ -28,7 +28,7 @@ on. """ -BUILD_GLCANVAS = 1 # If true, build the contrib/glcanvas extension module +BUILD_GLCANVAS = 0 # If true, build the contrib/glcanvas extension module BUILD_OGL = 1 # If true, build the contrib/ogl extension module BUILD_STC = 1 # If true, build the contrib/stc extension module BUILD_IEWIN = 0 # Internet Explorer wrapper (experimental) @@ -232,6 +232,29 @@ if os.name == 'nt': +elif os.name == 'posix' and sys.platform == "darwin1": + # Flags and such for a Darwin (Max OS X) build of Python + + WXDIR = '..' # assumes IN_CVS_TREE + WXPLAT = '__WXMAC__' + GENDIR = 'mac' + + includes = ['src'] + defines = [('SWIG_GLOBAL', None), + ('HAVE_CONFIG_H', None), + ('WXP_USE_THREAD', '1'), + ] + libdirs = [] + libs = [] + + cflags = os.popen(WX_CONFIG + ' --cxxflags', 'r').read()[:-1] + cflags = string.split(cflags) + + lflags = os.popen(WX_CONFIG + ' --libs', 'r').read()[:-1] + lflags = string.split(lflags) + + + elif os.name == 'posix': # Set flags for Unix type platforms @@ -277,7 +300,8 @@ swig_args = ['-c++', '-shadow', '-python', '-keyword', '-dnone', #'-dascii', #'-docstring', '-Sbefore', - '-I./src', '-D'+WXPLAT] + '-I./src', '-D'+WXPLAT, + ] swig_deps = ['src/my_typemaps.i']