diff --git a/common/wscript b/common/wscript index cc2ab567..4302b1e2 100644 --- a/common/wscript +++ b/common/wscript @@ -15,7 +15,10 @@ def configure(conf): conf.env['BUILD_ADAPTER'] = conf.is_defined('HAVE_SAMPLERATE') if conf.env['IS_WINDOWS']: - conf.check_cc(function_name='regcomp', header_name='regex.h', lib='regex', uselib_store="REGEX", define_name='HAVE_REGEX_H') + try: + conf.check_cc(function_name='regcomp', header_name='regex.h', lib='regex', uselib_store="REGEX", define_name='HAVE_REGEX_H') + except: + conf.check_cc(function_name='regcomp', header_name='regex.h', lib='tre', uselib_store="REGEX", define_name='HAVE_REGEX_H') conf.check_cc(function_name='htons', header_name='winsock2.h', lib='ws2_32', uselib_store="WS2_32", define_name='HAVE_WINSOCK2_H') conf.check_cc(function_name='timeGetDevCaps', header_name=['windows.h', 'mmsystem.h'], lib='winmm', uselib_store="WINMM", define_name='HAVE_MMSYSTEM_H') conf.check_cc(function_name='EnumProcesses', header_name=['windows.h', 'psapi.h'], lib='psapi', uselib_store="PSAPI", define_name='HAVE_PSAPI_H') diff --git a/example-clients/midi_dump.c b/example-clients/midi_dump.c index 3785a445..503af59d 100644 --- a/example-clients/midi_dump.c +++ b/example-clients/midi_dump.c @@ -4,10 +4,15 @@ #include #include #include +#include #include #include #include +#ifdef __MINGW32__ +#include +#endif + #ifndef WIN32 #include #include diff --git a/windows/wscript b/windows/wscript new file mode 100644 index 00000000..fdae9bb2 --- /dev/null +++ b/windows/wscript @@ -0,0 +1,14 @@ +#! /usr/bin/env python +# encoding: utf-8 + +import Build +import re +import os + +def configure(conf): + conf.check_cc(function_name='Pa_GetVersion', header_name='portaudio.h', lib='portaudio', uselib_store="PORTAUDIO", define_name='HAVE_PORTAUDIO') + conf.env['BUILD_DRIVER_PORTAUDIO'] = conf.is_defined('HAVE_PORTAUDIO') + +def build(bld): + print "" +