diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-20 17:18:55 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-03-20 17:18:55 -0400 |
commit | 16ce39c2309769789784a1f74e41ce0c49a75282 (patch) | |
tree | b972f83e621ab142577e30392fe61fb3293bee47 /libs/gtkmm2ext/wscript | |
parent | 4caecfa310a973773a74e74939896133ad6d4c8d (diff) |
initial, prototype modifications to permit compilation of local libraries as static libs. required a "fix" to libs/pbd/debug.cc to even get the program up and running, and still does not work due to issues with boost::shared_ptr::enable_shared_from_this. controlled by configure-time --internal-{static,shared}-libs, set to shared by default (as has been the case for years)
Diffstat (limited to 'libs/gtkmm2ext/wscript')
-rw-r--r-- | libs/gtkmm2ext/wscript | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/wscript b/libs/gtkmm2ext/wscript index 2f7d8b77b4..f2d53117ad 100644 --- a/libs/gtkmm2ext/wscript +++ b/libs/gtkmm2ext/wscript @@ -1,5 +1,6 @@ #!/usr/bin/env python from waflib.extras import autowaf as autowaf +from waflib import Options import os # Version of this package (even if built as a child) @@ -82,14 +83,18 @@ def configure(conf): def build(bld): - obj = bld(features = 'c cxx cxxshlib cshlib') - obj.source = gtkmm2ext_sources + if bld.is_defined ('INTERNAL_SHARED_LIBS'): + obj = bld.shlib(features = 'c cxx cshlib cxxshlib', source=gtkmm2ext_sources) + else: + obj = bld.stlib(features = 'c cxx cstlib cxxstlib', source=gtkmm2ext_sources) + obj.cxxflags = [ '-fPIC' ] + obj.export_includes = ['.'] obj.includes = ['.'] obj.name = 'libgtkmm2ext' obj.target = 'gtkmm2ext' obj.uselib = 'GTKMM GTK GTKOSX OSX GDK' - obj.use = 'libpbd' + obj.use = [ 'libpbd' ] obj.vnum = GTKMM2EXT_LIB_VERSION obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3') obj.defines = [ |