From f6019bd0edcbdfc4d67d26a6bdb4323a732a4bf3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 24 Nov 2010 02:06:56 +0000 Subject: [PATCH] Check for windows.h on VST builds. git-svn-id: svn://localhost/ardour2/branches/3.0@8081 d708f5d6-7413-0410-9779-e7cbd77b26cf --- wscript | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wscript b/wscript index 6447938ec0..ae08133aa3 100644 --- a/wscript +++ b/wscript @@ -373,6 +373,8 @@ def set_options(opt): 'Multiple modifiers must be separated by \'><\'') opt.add_option('--boost-include', type='string', action='store', dest='boost_include', default='', help='directory where Boost header files can be found') + opt.add_option('--wine-include', type='string', action='store', dest='wine_include', default='/usr/include/wine/windows', + help='directory where Wine\'s Windows header files can be found') for i in children: opt.sub_options(i) @@ -524,6 +526,8 @@ def configure(conf): autowaf.display_msg(conf, 'VST Support', opts.vst) if opts.vst: conf.define('VST_SUPPORT', 1) + conf.env.append_value('CPPPATH', Options.options.wine_include) + autowaf.check_header(conf, 'windows.h', mandatory = True) if bool(conf.env['JACK_SESSION']): conf.define ('HAVE_JACK_SESSION', 1) autowaf.display_msg(conf, 'Wiimote Support', opts.wiimote)