summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-09-27 19:32:15 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-27 19:33:09 +0200
commit627dfd9a5cdcce9e4122ef3041a38c3da2d3a120 (patch)
treea250e81f9d6b746bfbadb2428dbdea8c1ac1de6d /wscript
parentf3e69079eefa18407b110ff23df26f7711ebf7e5 (diff)
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.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
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):