Merge pull request #21 from Faless/fix/install_bin

Fix library copy command
main
Patrick Exner (FlameLizard) 2023-11-27 23:14:10 +01:00 committed by GitHub
commit 9cda3eb0ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -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):