summaryrefslogtreecommitdiffstats
path: root/test/Libs/bug2903/SConstruct-libs
blob: 15900628f82a8dfeede291ffcb4c5cebbab9b173 (plain)
1
2
3
4
5
env=Environment()
libfoo = env.SharedLibrary('foo', 'lib.c')
env.InstallAs('${SHLIBPREFIX}bar${SHLIBSUFFIX}', libfoo[0])
if len(libfoo) > 1: # on Windows, there's an import lib (also a .exp, but we don't want that)
   env.InstallAs('${LIBPREFIX}bar${LIBSUFFIX}', libfoo[1])