diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-26 02:18:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-26 02:21:16 +0100 |
| commit | 69fabac6d2219c07cfdcd9a8fe6e92bf4669be46 (patch) | |
| tree | 1627020b59fb7380f6e7a4d5ba42de8f1955242c /features/wscript | |
| parent | 811e70bdd09a618f8b0a512950a7f3254c591614 (diff) | |
Add a simple cucumber test.
Diffstat (limited to 'features/wscript')
| -rw-r--r-- | features/wscript | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/features/wscript b/features/wscript new file mode 100644 index 000000000..4b2d0b283 --- /dev/null +++ b/features/wscript @@ -0,0 +1,40 @@ +# +# Copyright (C) 2025 Carl Hetherington <cth@carlh.net> +# +# This file is part of DCP-o-matic. +# +# DCP-o-matic 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. +# +# DCP-o-matic 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 DCP-o-matic. If not, see <http://www.gnu.org/licenses/>. +# + + +def configure(conf): + conf.env['LIB_CUCUMBER'] = 'cucumber-cpp' + + conf.check_cxx(fragment=""" + #include <cucumber-cpp/generic.hpp>\n + #include <cucumber-cpp/autodetect.hpp>\n + int main() { return 0; }\n + """, + msg='Checking for cucumber-cpp library', + uselib_store='CUCUMBER_CPP') + + +def build(bld): + obj = bld(features='cxx cxxprogram') + obj.name = 'dcpomatic_cucumber' + obj.uselib = 'CUCUMBER CUCUMBER_CPP BOOST_FILESYSTEM BOOST_THREAD BOOST_REGEX BOOST_THREAD BOOST_TEST WXWIDGETS DCP ' + obj.uselib += 'AVFORMAT AVFILTER AVCODEC AVUTIL SWSCALE SWRESAMPLE ' + obj.use = 'libdcpomatic2' + obj.source = 'step_definitions/dcpomatic.cc' + obj.target = obj.name |
