Also build a shared library

This commit is contained in:
Nils O. Selåsdal
2014-09-20 21:47:29 +02:00
parent 959d525938
commit 6247bcbdfd
3 changed files with 12 additions and 3 deletions
+5 -3
View File
@@ -13,9 +13,11 @@ sources = ucore_env.Glob('*.c')
#print 'sources:', sources[len(sources)-2]
#Build library
ucore_lib = ucore_env.StaticLibrary(target='ucore' + lib_suffix , source=sources)
ucore_staticlib = ucore_env.StaticLibrary(target='ucore' + lib_suffix , source=sources)
ucore_sharedlib = ucore_env.SharedLibrary(target='ucore' + lib_suffix , source=sources)
#install targets
ucore_env.Alias('install',
ucore_env.Install(os.path.join(prefix, 'lib'), ucore_lib))
ucore_env.Install(os.path.join(prefix, 'lib'), [ucore_staticlib]))
ucore_env.Alias('install',
ucore_env.InstallVersionedLib(os.path.join(prefix, 'lib'), [ucore_sharedlib]))