From 2a71f14e766c89474469e93ea97c4dd4f5a78c4a Mon Sep 17 00:00:00 2001 From: Lukas Tenbrink Date: Tue, 17 Sep 2024 02:25:31 +0200 Subject: [PATCH] Fix macos demo build target in SConstruct --- SConstruct | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 227e1d6..05dafd0 100644 --- a/SConstruct +++ b/SConstruct @@ -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.") file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"]) +filepath = "" if env["platform"] == "macos" or env["platform"] == "ios": - platlibname = "{}.{}.{}".format(libname, env["platform"], env["target"]) - file = "{}.framework/{}".format(env["platform"], platlibname, platlibname) + filepath = "{}.framework/".format(env["platform"]) + file = "{}.{}.{}".format(libname, env["platform"], env["target"]) -libraryfile = "bin/{}/{}".format(env["platform"], file) +libraryfile = "bin/{}/{}{}".format(env["platform"], filepath, file) library = env.SharedLibrary( libraryfile, 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] if localEnv.get("compiledb", False):