Skip to content

Commit

Permalink
Merge pull request #21 from Faless/fix/install_bin
Browse files Browse the repository at this point in the history
Fix library copy command
  • Loading branch information
paddy-exe authored Nov 27, 2023
2 parents e6323bd + ac1499b commit 682db5a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 682db5a

Please sign in to comment.