1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

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.

(cherry picked from commit 36738ddda4)
This commit is contained in:
Rémi Verschelde
2016-10-14 08:27:59 +02:00
parent 8263fca121
commit e04ec9565b
16 changed files with 115 additions and 19 deletions

View File

@@ -69,7 +69,6 @@ def get_flags():
return [
('builtin_zlib', 'no'),
('glew', 'yes'),
("openssl", "system"),
('freetype','yes'), # use system freetype
('libpng', 'system'),
@@ -178,6 +177,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"])