summaryrefslogtreecommitdiffstats
path: root/platform/haiku/detect.py
diff options
context:
space:
mode:
authorKostadin Damyanov <maxmight@gmail.com>2015-05-29 23:36:48 +0300
committerKostadin Damyanov <maxmight@gmail.com>2015-05-29 23:36:48 +0300
commitdb459fba1db908b21d6ea3e99c6e75d65c6cc6b0 (patch)
treea402ee37ef48d5640eb0ade6642d6f64b5fe1ea6 /platform/haiku/detect.py
parent513d509783678d1a6c9fd47d7e2e822d886f2c84 (diff)
downloadredot-engine-db459fba1db908b21d6ea3e99c6e75d65c6cc6b0.tar.gz
Haiku: fix build, link with libGL and libGLEW
Diffstat (limited to 'platform/haiku/detect.py')
-rw-r--r--platform/haiku/detect.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py
index bb123c6aa0..2c15720a92 100644
--- a/platform/haiku/detect.py
+++ b/platform/haiku/detect.py
@@ -50,6 +50,11 @@ def configure(env):
env.Append(CCFLAGS=['-g2', '-Wall','-DDEBUG_ENABLED','-DDEBUG_MEMORY_ENABLED'])
#env.Append(CCFLAGS=['-DFREETYPE_ENABLED'])
- env.Append(CPPFLAGS = ['-DOPENGL_ENABLED', '-DGLEW_ENABLED'])
+ env.Append(CPPFLAGS = ['-DOPENGL_ENABLED'])
env.Append(CPPFLAGS = ['-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DGLES_OVER_GL'])
- env.Append(LIBS = ['be', 'z', 'network', 'bnetapi'])
+ env.Append(LIBS = ['be', 'GL', 'GLEW', 'z', 'network', 'bnetapi'])
+
+ 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')})
+ env.Append(BUILDERS = {'GLSL120GLES' : env.Builder(action = methods.build_gles2_headers, suffix = 'glsl.h',src_suffix = '.glsl')})