From 627dfd9a5cdcce9e4122ef3041a38c3da2d3a120 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 27 Sep 2020 19:32:15 +0200 Subject: Load language tags from on-disk files rather than embedding them into a .cc. The .cc method causes compile times (and memory requirements) increase enormously with some compilers. --- wscript | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 25bee8df..b0c07f93 100644 --- a/wscript +++ b/wscript @@ -74,6 +74,7 @@ def configure(conf): if int(gcc[0]) >= 4 and int(gcc[1]) > 1: conf.env.append_value('CXXFLAGS', ['-Wno-maybe-uninitialized']) conf.env.append_value('CXXFLAGS', ['-DLIBDCP_VERSION="%s"' % VERSION]) + conf.env.append_value('CXXFLAGS', ['-DLIBDCP_SHARE_PREFIX="%s/share/libdcp"' % conf.env['PREFIX']]) conf.env.TARGET_WINDOWS = conf.options.target_windows conf.env.TARGET_OSX = sys.platform == 'darwin' @@ -253,6 +254,9 @@ def build(bld): 'SMPTE-429-16.xsd' ]: bld.install_files('${PREFIX}/share/libdcp/xsd', os.path.join('xsd', i)) + for i in ['language', 'region', 'script', 'variant', 'extlang']: + bld.install_files('${PREFIX}/share/libdcp/tags', os.path.join('tags', i)) + bld.add_post_fun(post) def dist(ctx): -- cgit v1.2.3