X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=examples%2Fwscript;h=d062af1b8241ae316db8cc9486cb71faf4eb4390;hb=a5f9d0cc02e328315348bfcedb9e96df426a1857;hp=46d3287baff781a193dc10a742e06b1ca3afdd95;hpb=ef9344c554e373557d263c569ac8bc44c6a16554;p=libdcp.git diff --git a/examples/wscript b/examples/wscript index 46d3287b..d062af1b 100644 --- a/examples/wscript +++ b/examples/wscript @@ -1,8 +1,27 @@ +# +# Copyright (C) 2012-2016 Carl Hetherington +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +# + def build(bld): - obj = bld(features = 'cxx cxxprogram') - obj.name = 'examples' - obj.use = 'libdcp' - obj.uselib = 'OPENJPEG' - obj.source = 'make_dcp.cc' - obj.target = 'make_dcp' - obj.install_path = '' + for example in ['make_dcp', 'read_dcp', 'make_kdm']: + obj = bld(features='cxx cxxprogram') + obj.name = example + obj.use = 'libdcp%s' % bld.env.API_VERSION + obj.uselib = 'OPENJPEG CXML OPENMP ASDCPLIB_CTH BOOST_FILESYSTEM OPENSSL XMLSEC1 MAGICK' + obj.source = example + '.cc' + obj.target = example + obj.install_path = ''