mirror of
https://github.com/godotengine/godot-cpp-template.git
synced 2025-12-31 21:48:10 +03:00
Fix library copy command
Use InstallAs with the correct target/source order instead of Command.
This commit is contained in:
11
SConstruct
11
SConstruct
@@ -65,16 +65,7 @@ library = env.SharedLibrary(
|
||||
source=sources,
|
||||
)
|
||||
|
||||
|
||||
def copy_bin_to_projectdir(target, source, env):
|
||||
import shutil
|
||||
|
||||
targetfrom = "bin/{}/lib{}".format(env["platform"], file)
|
||||
targetdest = "{}/bin/{}/lib{}".format(projectdir, env["platform"], file)
|
||||
shutil.copyfile(targetfrom, targetdest)
|
||||
|
||||
|
||||
copy = env.Command(libraryfile, None, copy_bin_to_projectdir)
|
||||
copy = env.InstallAs("{}/bin/{}/lib{}".format(projectdir, env["platform"], file), library)
|
||||
|
||||
default_args = [library, copy]
|
||||
if localEnv.get("compiledb", False):
|
||||
|
||||
Reference in New Issue
Block a user