Browse Source

Merge pull request #49 from e9925248/master

Various build fixes for using waf and mingw
tags/v1.9.10
Stéphane Letz 11 years ago
parent
commit
26bc2bcbeb
3 changed files with 23 additions and 1 deletions
  1. +4
    -1
      common/wscript
  2. +5
    -0
      example-clients/midi_dump.c
  3. +14
    -0
      windows/wscript

+ 4
- 1
common/wscript View File

@@ -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')


+ 5
- 0
example-clients/midi_dump.c View File

@@ -4,10 +4,15 @@
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <inttypes.h>
#include <jack/jack.h>
#include <jack/midiport.h>
#include <jack/ringbuffer.h>

#ifdef __MINGW32__
#include <pthread.h>
#endif

#ifndef WIN32
#include <signal.h>
#include <pthread.h>


+ 14
- 0
windows/wscript View File

@@ -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 ""


Loading…
Cancel
Save