Skip to content

Commit 5441927

Browse files
authored
Merge pull request #43 from Ivorforce/patch-1
Fix macos demo build target in SConstruct
2 parents 0f2e4a0 + 2a71f14 commit 5441927

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

SConstruct

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,19 @@ if env["target"] in ["editor", "template_debug"]:
7777
print("Not including class reference as we're targeting a pre-4.3 baseline.")
7878

7979
file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"])
80+
filepath = ""
8081

8182
if env["platform"] == "macos" or env["platform"] == "ios":
82-
platlibname = "{}.{}.{}".format(libname, env["platform"], env["target"])
83-
file = "{}.framework/{}".format(env["platform"], platlibname, platlibname)
83+
filepath = "{}.framework/".format(env["platform"])
84+
file = "{}.{}.{}".format(libname, env["platform"], env["target"])
8485

85-
libraryfile = "bin/{}/{}".format(env["platform"], file)
86+
libraryfile = "bin/{}/{}{}".format(env["platform"], filepath, file)
8687
library = env.SharedLibrary(
8788
libraryfile,
8889
source=sources,
8990
)
9091

91-
copy = env.InstallAs("{}/bin/{}/lib{}".format(projectdir, env["platform"], file), library)
92+
copy = env.InstallAs("{}/bin/{}/{}lib{}".format(projectdir, env["platform"], filepath, file), library)
9293

9394
default_args = [library, copy]
9495
if localEnv.get("compiledb", False):

0 commit comments

Comments
 (0)