You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Use BoolVariable for third-party options.
This commit is contained in:
@@ -6,7 +6,7 @@ from compat import isbasestring
|
||||
# Not building in a separate env as scene needs it
|
||||
|
||||
# Thirdparty source files
|
||||
if (env['builtin_freetype'] != 'no'):
|
||||
if env['builtin_freetype']:
|
||||
thirdparty_dir = "#thirdparty/freetype/"
|
||||
thirdparty_sources = [
|
||||
"src/autofit/autofit.c",
|
||||
@@ -65,7 +65,7 @@ if (env['builtin_freetype'] != 'no'):
|
||||
env.Append(CPPPATH=[thirdparty_dir, thirdparty_dir + "/include"])
|
||||
|
||||
# also requires libpng headers
|
||||
if (env['builtin_libpng'] != 'no'):
|
||||
if env['builtin_libpng']:
|
||||
env.Append(CPPPATH=["#thirdparty/libpng"])
|
||||
|
||||
lib = env.Library("freetype_builtin", thirdparty_sources)
|
||||
|
||||
Reference in New Issue
Block a user