mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Use BoolVariable for third-party options.
This commit is contained in:
@@ -6,7 +6,7 @@ Import('env_modules')
|
||||
env_theora = env_modules.Clone()
|
||||
|
||||
# Thirdparty source files
|
||||
if (env['builtin_libtheora'] != 'no'):
|
||||
if env['builtin_libtheora']:
|
||||
thirdparty_dir = "#thirdparty/libtheora/"
|
||||
thirdparty_sources = [
|
||||
#"analyze.c",
|
||||
@@ -74,9 +74,9 @@ if (env['builtin_libtheora'] != 'no'):
|
||||
env_theora.Append(CPPPATH=[thirdparty_dir])
|
||||
|
||||
# also requires libogg and libvorbis
|
||||
if (env['builtin_libogg'] != 'no'):
|
||||
if env['builtin_libogg']:
|
||||
env_theora.Append(CPPPATH=["#thirdparty/libogg"])
|
||||
if (env['builtin_libvorbis'] != 'no'):
|
||||
if env['builtin_libvorbis']:
|
||||
env_theora.Append(CPPPATH=["#thirdparty/libvorbis"])
|
||||
|
||||
# Godot source files
|
||||
|
||||
Reference in New Issue
Block a user