Skip to content

Commit

Permalink
Merge pull request #43 from Ivorforce/patch-1
Browse files Browse the repository at this point in the history
Fix macos demo build target in SConstruct
  • Loading branch information
paddy-exe authored Sep 28, 2024
2 parents 0f2e4a0 + 2a71f14 commit 5441927
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5441927

Please sign in to comment.