You've already forked godot
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:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user