Port demo files to Godot 4.0

This commit is contained in:
Twarit Waikar
2022-07-31 21:27:47 +05:30
parent d0c59416d1
commit 521341e7bf
22 changed files with 255220 additions and 212771 deletions

View File

@@ -37,6 +37,9 @@ opts.Add(PathVariable("macos_openssl_static_crypto", "Path to OpenSSL libcrypto.
# Updates the environment with the option variables.
opts.Update(env)
if env["p"] != "":
env["platform"] = env["p"]
if env["platform"] == "osx":
# Use only clang on osx because we need to do universal builds
env["CXX"] = "clang++"
@@ -54,7 +57,7 @@ Export("env")
SConscript("thirdparty/SCsub")
if env["godot_cpp"]:
if ARGUMENTS.get("use_custom_api_file", False) and ARGUMENTS.get("custom_api_file", "") != "":
if ARGUMENTS.get("custom_api_file", "") != "":
ARGUMENTS["custom_api_file"] = "../" + ARGUMENTS["custom_api_file"]
SConscript("godot-cpp/SConstruct")