[Scons-users] Documentation for the 'Tag' function

Dirk Bächle tshortik at gmx.de
Mon Jun 3 19:25:29 EDT 2013


Hi Andrew,

On 02.06.2013 19:23, Andrew C. Morrow wrote:

>

> The documentation for the 'Tag' function demonstrates attaching Tags

> to the result of calling 'Library'. However, the Package function only

> searches install nodes for the resulting PACKAGE_ attributes, which it

> obtains by calling FindInstalledFiles.

>

> This suggests to me that to be useable, the Tag function should be

> invoked on the result of calling Install, not on the library node.

>

> Which of the following is correct?

>

> # Attach tag to library

> fooLibrary = env.StaticLibrary(target="foo", source=[...])

> env.Tag(fooLibrary, MYTAG="myvalue")

> env.Install("$PREFIX/lib", fooLibrary)

> env.Package(NAME="libfoo", VERSION="1.2.3", PACKAGETYPE="targz")

>

> Or:

>

> # Attach tag to install target

> fooLibrary = env.StaticLibrary(target="foo", source=[...])

> fooLibraryInstall = env.Install("$PREFIX/lib", fooLibrary)

> env.Tag(fooLibraryInstall, MYTAG="myvalue")

> env.Package(NAME="libfoo", VERSION="1.2.3", PACKAGETYPE="targz")

>


both of the above versions should work. On calling Package(), the
"PACKAGE_" attributes get copied to the new files in the PACKAGEROOT
tree if required.
Haven't actually tried this, only checked the sources.

Best regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130604/e607b70a/attachment.htm


More information about the Scons-users mailing list