Merge pull request #107188 from berarma/moviewriter-add-theora

Add Ogg Theora support to MovieWriter
This commit is contained in:
Rémi Verschelde 2025-06-10 16:22:57 +02:00
commit cc9761c3f0
No known key found for this signature in database
GPG key ID: C3336907360768E1
13 changed files with 774 additions and 53 deletions

View file

@ -257,14 +257,20 @@ def configure(env: "SConsEnvironment"):
if not env["builtin_libtheora"]:
env["builtin_libogg"] = False # Needed to link against system libtheora
env["builtin_libvorbis"] = False # Needed to link against system libtheora
env.ParseConfig("pkg-config theora theoradec --cflags --libs")
if env.editor_build:
env.ParseConfig("pkg-config theora theoradec theoraenc --cflags --libs")
else:
env.ParseConfig("pkg-config theora theoradec --cflags --libs")
else:
if env["arch"] in ["x86_64", "x86_32"]:
env["x86_libtheora_opt_gcc"] = True
if not env["builtin_libvorbis"]:
env["builtin_libogg"] = False # Needed to link against system libvorbis
env.ParseConfig("pkg-config vorbis vorbisfile --cflags --libs")
if env.editor_build:
env.ParseConfig("pkg-config vorbis vorbisfile vorbisenc --cflags --libs")
else:
env.ParseConfig("pkg-config vorbis vorbisfile --cflags --libs")
if not env["builtin_libogg"]:
env.ParseConfig("pkg-config ogg --cflags --libs")