diff options
Diffstat (limited to 'platform/haiku/detect.py')
-rw-r--r-- | platform/haiku/detect.py | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py index 19fe2f79fb..b5fd550442 100644 --- a/platform/haiku/detect.py +++ b/platform/haiku/detect.py @@ -10,10 +10,10 @@ def get_name(): def can_build(): if (os.name != "posix"): return False - + if (sys.platform == "darwin"): return False - + return True def get_opts(): @@ -34,13 +34,12 @@ def configure(env): env["bits"]="64" else: env["bits"]="32" - + env.Append(CPPPATH = ['#platform/haiku']) - - # TODO: add clang and try gcc2 too - env["CC"] = "gcc-x86" - env["CXX"] = "g++-x86" - + + env["CC"] = "gcc" + env["CXX"] = "g++" + if (env["target"]=="release"): if (env["debug_release"]=="yes"): env.Append(CCFLAGS=['-g2']) @@ -50,12 +49,12 @@ def configure(env): env.Append(CCFLAGS=['-O2','-ffast-math','-DDEBUG_ENABLED']) elif (env["target"]=="debug"): env.Append(CCFLAGS=['-g2', '-Wall','-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED']) - + #env.Append(CCFLAGS=['-DFREETYPE_ENABLED']) env.Append(CPPFLAGS = ['-DGLEW_ENABLED', '-DOPENGL_ENABLED', '-DMEDIA_KIT_ENABLED']) env.Append(CPPFLAGS = ['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DGLES_OVER_GL']) env.Append(LIBS = ['be', 'game', 'media', 'network', 'bnetapi', 'z', 'GL', 'GLEW']) - + import methods env.Append(BUILDERS = {'GLSL120' : env.Builder(action = methods.build_legacygl_headers, suffix = 'glsl.h',src_suffix = '.glsl')}) env.Append(BUILDERS = {'GLSL' : env.Builder(action = methods.build_glsl_headers, suffix = 'glsl.h',src_suffix = '.glsl')}) |