diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-08-31 23:40:12 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-08-31 23:40:12 +0200 |
| commit | 69bbedaa39eb2ff29ebd80be7dfc77b0aa2b06af (patch) | |
| tree | 5be4b1b35e8fcaa39abbf7c8d35edbae67a2c4f9 /tools/wscript | |
| parent | 7f95292018aa08fde55d2ebf521247a587f67f03 (diff) | |
Cleanup: use a loop.
Diffstat (limited to 'tools/wscript')
| -rw-r--r-- | tools/wscript | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/tools/wscript b/tools/wscript index 53721212..9ff55617 100644 --- a/tools/wscript +++ b/tools/wscript @@ -34,23 +34,13 @@ def build(bld): uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_CTH BOOST_FILESYSTEM LIBXML++ XMLSEC1 OPENSSL XERCES DL MAGICK' - obj = bld(features='cxx cxxprogram') - obj.use = ['libdcp%s' % bld.env.API_VERSION] - obj.uselib = uselib - obj.source = 'dcpdiff.cc common.cc' - obj.target = 'dcpdiff' - - obj = bld(features='cxx cxxprogram') - obj.use = ['libdcp%s' % bld.env.API_VERSION] - obj.uselib = uselib - obj.source = 'dcpinfo.cc common.cc' - obj.target = 'dcpinfo' + for f in ['diff', 'info', 'verify']: + obj = bld(features='cxx cxxprogram') + obj.use = ['libdcp%s' % bld.env.API_VERSION] + obj.uselib = uselib + obj.source = 'dcp%s.cc common.cc' % f + obj.target = 'dcp%s' % f - obj = bld(features='cxx cxxprogram') - obj.use = ['libdcp%s' % bld.env.API_VERSION] - obj.uselib = uselib - obj.source = 'dcpverify.cc common.cc' - obj.target = 'dcpverify' for f in ['dumpimage', 'dumpsub', 'decryptmxf', 'kdm', 'thumb', 'recover']: obj = bld(features='cxx cxxprogram') |
