diff options
| author | Rémi Verschelde | 2016-10-14 08:27:59 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2016-10-15 12:01:28 +0200 |
| commit | 36738ddda4f732fff7bbfb7b4605a47a0bd7c045 (patch) | |
| tree | 9b3a77f6d4872be2ec55fe9467c8fe24a9e582a3 /platform | |
| parent | 249836e530f51cbb2f8692a479a35900c425fdd5 (diff) | |
| download | godot-36738ddda4f732fff7bbfb7b4605a47a0bd7c045.tar.gz godot-36738ddda4f732fff7bbfb7b4605a47a0bd7c045.tar.zst godot-36738ddda4f732fff7bbfb7b4605a47a0bd7c045.zip | |
glew: Split thirdparty files and isolate env
Not fully happy about the way this one interacts with the various
platforms. Maybe the platform_config.h should be generated by the
SCsub instead of passing a define just to know where is the header.
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/haiku/detect.py | 1 | ||||
| -rw-r--r-- | platform/osx/detect.py | 4 | ||||
| -rw-r--r-- | platform/osx/platform_config.h | 2 | ||||
| -rw-r--r-- | platform/server/detect.py | 2 | ||||
| -rw-r--r-- | platform/windows/detect.py | 1 | ||||
| -rw-r--r-- | platform/windows/platform_config.h | 4 | ||||
| -rw-r--r-- | platform/x11/detect.py | 4 | ||||
| -rw-r--r-- | platform/x11/platform_config.h | 4 |
8 files changed, 8 insertions, 14 deletions
diff --git a/platform/haiku/detect.py b/platform/haiku/detect.py index f36b0c567..8aa810e18 100644 --- a/platform/haiku/detect.py +++ b/platform/haiku/detect.py @@ -24,7 +24,6 @@ def get_opts(): def get_flags(): return [ ('builtin_zlib', 'no'), - ('glew', 'yes'), ] def configure(env): diff --git a/platform/osx/detect.py b/platform/osx/detect.py index 01ea09fa2..43ddfa0d1 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -28,9 +28,7 @@ def get_opts(): def get_flags(): return [ - ('legacygl', 'yes'), - ('builtin_zlib', 'no'), - ('glew', 'yes'), + ('builtin_zlib', 'no'), ] diff --git a/platform/osx/platform_config.h b/platform/osx/platform_config.h index 86505206a..f02a4bc44 100644 --- a/platform/osx/platform_config.h +++ b/platform/osx/platform_config.h @@ -27,5 +27,5 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include <alloca.h> -#define GLES2_INCLUDE_H "gl_context/GL/glew.h" +#define GLES2_INCLUDE_H "GL/glew.h" #define PTHREAD_RENAME_SELF diff --git a/platform/server/detect.py b/platform/server/detect.py index e6fab2043..543c88c5c 100644 --- a/platform/server/detect.py +++ b/platform/server/detect.py @@ -27,7 +27,7 @@ def get_opts(): def get_flags(): return [ - ('builtin_zlib', 'no'), + ('builtin_zlib', 'no'), ] diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 12ea5a93e..ce308a49c 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -176,7 +176,6 @@ def get_opts(): def get_flags(): return [ - ('glew','yes'), ('openssl','builtin'), #use builtin openssl ] diff --git a/platform/windows/platform_config.h b/platform/windows/platform_config.h index 9e2075081..31512a105 100644 --- a/platform/windows/platform_config.h +++ b/platform/windows/platform_config.h @@ -30,6 +30,4 @@ //#else //#include <alloca.h> //#endif -#define GLES2_INCLUDE_H "gl_context/GL/glew.h" - - +#define GLES2_INCLUDE_H "GL/glew.h" diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 90122eef4..3ebefb640 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -69,7 +69,6 @@ def get_flags(): return [ ('builtin_zlib', 'no'), - ('glew', 'yes'), ("openssl", "system"), ('freetype','yes'), # use system freetype ('libpng', 'system'), @@ -179,6 +178,9 @@ def configure(env): env.Append(CPPFLAGS=['-DOPENGL_ENABLED']) + if (env["glew"] == "system"): + env.ParseConfig('pkg-config glew --cflags --libs') + if os.system("pkg-config --exists alsa")==0: print("Enabling ALSA") env.Append(CPPFLAGS=["-DALSA_ENABLED"]) diff --git a/platform/x11/platform_config.h b/platform/x11/platform_config.h index 3b47b2c92..015953157 100644 --- a/platform/x11/platform_config.h +++ b/platform/x11/platform_config.h @@ -34,6 +34,4 @@ #define PTHREAD_BSD_SET_NAME #endif -#define GLES2_INCLUDE_H "gl_context/GL/glew.h" - - +#define GLES2_INCLUDE_H "GL/glew.h" |
