diff options
author | David Robillard <d@drobilla.net> | 2020-11-27 17:58:12 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-27 21:42:52 +0100 |
commit | 7c991383000520d03acfb7a1adfd834dd7c8e35e (patch) | |
tree | 4a80722b54b6e6192a67adaf43f0e1105adaf5b2 /wscript | |
parent | 96b68f0c39b02b41f96245cedcc156c60c3317e2 (diff) | |
download | patchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.tar.gz patchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.tar.bz2 patchage-7c991383000520d03acfb7a1adfd834dd7c8e35e.zip |
Replace boost::format with fmt
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -186,7 +186,21 @@ def configure(conf): conf.define('PATCHAGE_USE_LIGHT_THEME', 1) # Boost headers - conf.check_cxx(header_name='boost/format.hpp') + conf.check_cxx(header_name='boost/optional.hpp') + + # Check for system provided fmt + conf.check_pkg('fmt', + uselib_store='FMT', + system=True, + mandatory=False) + + if not conf.env.HAVE_FMT: + # Fall back to minimal bundled version if not found + Logs.warn("System fmt library not found, using bundled copy") + include_dir = conf.path.find_node('subprojects/fmt/include') + conf.define('FMT_HEADER_ONLY', 1) + conf.env.LIB_FMT = [] + conf.env.INCLUDES_FMT = [include_dir.abspath()] conf.env.PATCHAGE_VERSION = PATCHAGE_VERSION @@ -221,7 +235,7 @@ def build(bld): prog = bld(features = 'cxx cxxprogram', includes = ['.', 'src'], target = out_base + bld.env.APP_INSTALL_NAME, - uselib = 'DBUS GANV DBUS_GLIB GTKMM GTHREAD GTK_OSX', + uselib = 'DBUS GANV DBUS_GLIB FMT GTKMM GTHREAD GTK_OSX', install_path = '${BINDIR}') prog.source = ''' src/Configuration.cpp |