Merge pull request #43 from Ivorforce/patch-1

Fix macos demo build target in SConstruct
pull/51/head
Patrick Exner (FlameLizard) 2024-09-28 13:44:53 +02:00 committed by GitHub
commit 5441927376
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -77,18 +77,19 @@ if env["target"] in ["editor", "template_debug"]:
print("Not including class reference as we're targeting a pre-4.3 baseline.") print("Not including class reference as we're targeting a pre-4.3 baseline.")
file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"]) file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"])
filepath = ""
if env["platform"] == "macos" or env["platform"] == "ios": if env["platform"] == "macos" or env["platform"] == "ios":
platlibname = "{}.{}.{}".format(libname, env["platform"], env["target"]) filepath = "{}.framework/".format(env["platform"])
file = "{}.framework/{}".format(env["platform"], platlibname, platlibname) file = "{}.{}.{}".format(libname, env["platform"], env["target"])
libraryfile = "bin/{}/{}".format(env["platform"], file) libraryfile = "bin/{}/{}{}".format(env["platform"], filepath, file)
library = env.SharedLibrary( library = env.SharedLibrary(
libraryfile, libraryfile,
source=sources, source=sources,
) )
copy = env.InstallAs("{}/bin/{}/lib{}".format(projectdir, env["platform"], file), library) copy = env.InstallAs("{}/bin/{}/{}lib{}".format(projectdir, env["platform"], filepath, file), library)
default_args = [library, copy] default_args = [library, copy]
if localEnv.get("compiledb", False): if localEnv.get("compiledb", False):