Browse Source

Merge pull request #118 from mojofunk/mingw-waf-fixes

Mingw waf fixes
tags/v1.9.11-RC1
Stéphane Letz 10 years ago
parent
commit
61efee41a7
3 changed files with 21 additions and 3 deletions
  1. +3
    -1
      example-clients/transport.c
  2. +2
    -0
      example-clients/wscript
  3. +16
    -2
      wscript

+ 3
- 1
example-clients/transport.c View File

@@ -459,9 +459,11 @@ int main(int argc, char *argv[])
return 1;
}

#ifndef WIN32
signal(SIGQUIT, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGHUP, signal_handler);
#endif
signal(SIGTERM, signal_handler);
signal(SIGINT, signal_handler);

jack_on_shutdown(client, jack_shutdown, 0);


+ 2
- 0
example-clients/wscript View File

@@ -93,6 +93,8 @@ def build(bld):
prog.use += ['RT', 'READLINE']
if bld.env['IS_MACOSX']:
prog.use += ['READLINE']
if bld.env['IS_WINDOWS']:
prog.use += ['READLINE']
prog.target = 'jack_transport'

if bld.env['BUILD_EXAMPLE_CLIENT_REC']:


+ 16
- 2
wscript View File

@@ -400,6 +400,21 @@ def check_for_readline(conf):
def check_for_readline_error(conf):
print_error('--readline requires the readline/readline.h header, but it cannot be found.')

def check_for_mmsystem(conf):
try:
conf.check_cc(fragment='''
#include <windows.h>
#include <mmsystem.h>
int main(void) { return 0; }''',
execute=False,
msg='Checking for header mmsystem.h')
return True
except conf.errors.ConfigurationError:
return False

def check_for_mmsystem_error(conf):
print_error('--winmme requires the mmsystem.h header, but it cannot be found.')

def options(opt):
# options provided by the modules
opt.tool_options('compiler_cxx')
@@ -440,8 +455,7 @@ def options(opt):
portaudio.add_header('windows.h') # only build portaudio on windows
portaudio.add_package('portaudio-2.0', uselib_store='PORTAUDIO', atleast_version='19')
winmme = add_auto_option(opt, 'winmme', help='Enable WinMME driver', conf_dest='BUILD_DRIVER_WINMME')
winmme.add_header('mmsystem.h')
winmme.add_header('windows.h')
winmme.set_check_hook(check_for_mmsystem, check_for_mmsystem_error)

celt = add_auto_option(opt, 'celt', help='Build with CELT')
celt.set_check_hook(check_for_celt, check_for_celt_error)


Loading…
Cancel
Save