[Scons-users] library copy
Dirk Bächle
tshortik at gmx.de
Mon Sep 24 13:54:56 EDT 2012
Philipp,
On 24.09.2012 11:16, Kraus Philipp wrote:
>
> It is somthing like that:
>
> if env["version"] == "1.0" :
> env.AppendUnique(LIBPATH = [""dir1", "dir2"])
> elif env["version"] == "1.1" :
> env.AppendUnique(LIBPATH = [""dir3", "dir4"])
>
> for i in env["LIBS"] :
> x = env.FindFiles(i, evn["LIBPATH"])
> if x :
> Install(x, "targetdir")
>
>
> Is this a correct way or can I do this better?
at the point where you check the env["version"] value you seem to have
all the infos together about which libs in which paths should get used.
Wouldn't this be the ideal place for the Install()?
Something like:
if env["version"] == "1.0" :
env.AppendUnique(LIBPATH = [""dir1", "dir2"])
Install(x, "targetdir")
Regards,
Dirk
More information about the Scons-users
mailing list