summaryrefslogtreecommitdiff
path: root/gtk2_ardour/wscript
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-10-14 11:30:45 +1000
committerTim Mayberry <mojofunk@gmail.com>2016-11-10 15:23:43 +1000
commit8520312f97680e8e6c25ccceaa8929b15e951ba1 (patch)
tree6d700563aa55200db470157a865240e211d9e7c1 /gtk2_ardour/wscript
parent781d88e4edd4be112a7a16b67516253cd38afbe5 (diff)
Check and link to the pangoft2 module with a mingw build if it exists
This is necessary when pango has been built without all modules included as bundle_env_mingw.cc uses a function from the pango module and results a linker error: bundle_env_mingw.cc:114: undefined reference to `pango_ft2_font_map_get_type' Minimum pango version is taken from the official build scripts.
Diffstat (limited to 'gtk2_ardour/wscript')
-rw-r--r--gtk2_ardour/wscript2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk2_ardour/wscript b/gtk2_ardour/wscript
index 5fe5062854..3fb77ce6d4 100644
--- a/gtk2_ardour/wscript
+++ b/gtk2_ardour/wscript
@@ -349,6 +349,7 @@ def configure(conf):
atleast_version='2.18')
autowaf.check_pkg(conf, 'ogg', uselib_store='OGG', atleast_version='1.1.2')
autowaf.check_pkg(conf, 'x11', uselib_store='X11', atleast_version='1.1', mandatory=False)
+ autowaf.check_pkg(conf, 'pangoft2', uselib_store='PANGOFT2', atleast_version='1.36.8', mandatory=False)
autowaf.check_pkg(conf, 'fontconfig', uselib_store='FONTCONFIG')
@@ -582,6 +583,7 @@ def build(bld):
if bld.env['build_target'] == 'mingw':
obj.linkflags += ' -mwindows'
+ obj.use += [ 'PANGOFT2' ]
if bld.is_defined('HAVE_SUIL'):
obj.source += [ 'lv2_plugin_ui.cc' ]