update to scons for Ton SDL threads
authorJean-Luc Peurière <jlp@nerim.net>
Sun, 2 Jan 2005 16:35:48 +0000 (16:35 +0000)
committerJean-Luc Peurière <jlp@nerim.net>
Sun, 2 Jan 2005 16:35:48 +0000 (16:35 +0000)
SConstruct

index f5b01816f7c9ccc5af07765b7940d0145a0f0e83..04fc91dfe5d9f65203268591cfa35923604dd197 100644 (file)
@@ -184,13 +184,16 @@ elif sys.platform == 'darwin':
        opengl_libpath = []
        opengl_include = []
        # SDL specific stuff.
        opengl_libpath = []
        opengl_include = []
        # SDL specific stuff.
-       sdl_env.ParseConfig ('sdl-config --cflags --libs')
-       sdl_cflags = sdl_env.Dictionary()['CCFLAGS']
+       #sdl_env.ParseConfig ('sdl-config --cflags --libs')
        # Want to use precompiled libraries?
        if use_precomp == 'true':
                sdl_include = [darwin_precomp + 'sdl/include']
                sdl_libpath = [darwin_precomp + 'sdl/lib']
                sdl_lib = ['libSDL.a']
        # Want to use precompiled libraries?
        if use_precomp == 'true':
                sdl_include = [darwin_precomp + 'sdl/include']
                sdl_libpath = [darwin_precomp + 'sdl/lib']
                sdl_lib = ['libSDL.a']
+               sdl_cflags = [ '-I' + darwin_precomp + 'sdl/include' ]
+               sdl_env.Append (CCFLAGS = sdl_cflags )
+               sdl_env.Append (CPPPATH = [darwin_precomp + 'sdl/include'] )
+
        platform_libs = ['stdc++'] 
        extra_includes = ['/sw/include']
        platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']
        platform_libs = ['stdc++'] 
        extra_includes = ['/sw/include']
        platform_libpath = ['/System/Library/Frameworks/OpenGL.framework/Libraries']