[Scons-users] Import library in lib subdirectory
LRN
lrn1986 at gmail.com
Wed Dec 26 11:05:30 EST 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Here's what i do:
prefix = ARGUMENTS.get ('prefix', None)
destdir = ARGUMENTS.get ('destdir', None)
if prefix == None:
prefix = '/usr/local'
foo = env.SharedLibrary (target = "foo", source = ["foo.c"],
SHLIBPREFIX = 'lib', LIBSUFFIX='.dll.a')
if destdir is not None:
destprefix = destdir + prefix
env.Install (os.path.join (destprefix, 'bin'), [foo])
env.Alias('install', destprefix)
And when i do `scons prefix=/ destdir=c:/bar install', i end up having
libfoo.dll.a import library in c:/bar/bin/ directory instead of
c:/bar/lib. How do i make SharedLibrary or Install put the import
library into /lib subdirectory?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with undefined - http://www.enigmail.net/
iQEcBAEBAgAGBQJQ2yBJAAoJEOs4Jb6SI2CwgRIIAK4SF+F56Fy424sG/ajML6ZY
hzsh6TL0mRzVkQx9H1V59W164PQJxMUJxK4MMJWBQW58BzM0P0xL1ypgIRLG3lId
nOyQN9Z5P9cvDtt/ve8LVbN0jA1iYQP+Rh3jFC5h3TWNGP/WTrpyyuS7lwiZ21rE
d8a+VPniWR7bAqi1Fjk/EmNkwGDYGvvc8E6WsqW22hLjRgObLVO0DchwtOypMCw+
QnkHxOSHYD5lAiOd06Zuiqlwyy9IwbYGr9DqkoN2R3w+3Uz7gpwhCzkxGIf8NIGa
H5VTqIOe2W5hs75pAbiq1ioV3jLMuPt5bVoGRCXEFUBCbWw5LlWFlQGX+dYYPW0=
=tsuP
-----END PGP SIGNATURE-----
More information about the Scons-users
mailing list