diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-07 21:21:49 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-07 21:21:49 +0000 |
| commit | 6c2e8c4812a80ac6052da8ff82b49bb8f97cfb43 (patch) | |
| tree | c54d2d1fe323d8d2897b24ec113ef4c6573a2a94 /src | |
| parent | 7e0ebcd1f19c8365d16a5fb5a42907867d15cb20 (diff) | |
Allow static builds.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wscript | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/wscript b/src/wscript index 6c7f2392..9fb6a7e7 100644 --- a/src/wscript +++ b/src/wscript @@ -1,5 +1,9 @@ def build(bld): - obj = bld(features = 'cxx cxxshlib') + if bld.env.STATIC_LIBDCP: + obj = bld(features = 'cxx cxxstlib') + else: + obj = bld(features = 'cxx cxxshlib') + obj.name = 'libdcp' obj.target = 'dcp' obj.export_includes = ['.'] @@ -50,3 +54,7 @@ def build(bld): """ bld.install_files('${PREFIX}/include/libdcp', headers) + if bld.env.STATIC_LIBDCP: + bld.install_files('${PREFIX}/lib', 'libdcp.a') + else: + bld.install_files('${PREFIX}/lib', 'libdcp.so') |
