ogg/vorbis/opus: Make them modules and unbundle thirdparty libs
Took the opportunity to undo the Godot changed made to the opus source. The opus module should eventually be built in its own environment to avoid polluting others with too many include dirs and defines. TODO: Fix the platform/ stuff for opus.
This commit is contained in:
@ -155,6 +155,17 @@ def configure(env):
|
||||
if (env["enet"] == "system"):
|
||||
env.ParseConfig('pkg-config libenet --cflags --libs')
|
||||
|
||||
if (env["libogg"] == "system"):
|
||||
env.ParseConfig('pkg-config ogg --cflags --libs')
|
||||
|
||||
if (env["libvorbis"] == "system"):
|
||||
env["libogg"] = "system" # Needed to link against system libvorbis
|
||||
env.ParseConfig('pkg-config vorbis vorbisfile ogg --cflags --libs')
|
||||
|
||||
if (env["opus"] == "system"):
|
||||
env["libogg"] = "system" # Needed to link against system opus
|
||||
env.ParseConfig('pkg-config opus opusfile ogg --cflags --libs')
|
||||
|
||||
|
||||
env.Append(CPPFLAGS=['-DOPENGL_ENABLED'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user