From c177301ef888021f91f8476baddcb8c3e585cfd7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 5 Mar 2020 10:34:28 +0100 Subject: Build libdcp with force-cpp11 if it is passed in as an option to libsub. --- cscript | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cscript') diff --git a/cscript b/cscript index 4d9d017..800811d 100644 --- a/cscript +++ b/cscript @@ -1,5 +1,5 @@ # -# Copyright (C) 2012-2019 Carl Hetherington +# Copyright (C) 2012-2020 Carl Hetherington # # This file is part of libsub. # @@ -19,8 +19,9 @@ import os -def dependencies(target): - return (('asdcplib', 'carl'), ('libcxml', '0d18df4'), ('libdcp', None)) +def dependencies(target, options): + libdcp_options = { 'force-cpp11': True} if options['force-cpp11'] else {} + return (('asdcplib', 'carl'), ('libcxml', '0d18df4'), ('libdcp', None, libdcp_options)) def build(target, options): cmd = './waf configure --prefix=%s' % target.directory -- cgit v1.2.3