mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-02 14:58:03 +03:00
Added portaudio version
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2538 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
7274cb4dce
commit
65b10ebe9f
2 changed files with 23 additions and 4 deletions
|
@ -83,6 +83,25 @@ def CheckSDL(context, version):
|
|||
context.env.ParseConfig('sdl-config --cflags --libs')
|
||||
return int(ret)
|
||||
|
||||
def CheckPortaudio(context, version):
|
||||
context.Message( 'Checking for lib portaudio version > %s... ' % version)
|
||||
context.env.Append(LIBS = 'portaudio')
|
||||
found = context.TryRun("""
|
||||
#include <portaudio.h>
|
||||
#include <stdio.h>
|
||||
int main(int argc, char **argv) {
|
||||
printf("%d", Pa_GetVersion());
|
||||
return 0;
|
||||
}
|
||||
""", '.c')[1]
|
||||
|
||||
ret = (found and (version <= found))
|
||||
|
||||
context.Result(ret)
|
||||
return int(ret)
|
||||
|
||||
|
||||
|
||||
def GenerateRevFile(flavour, template, output):
|
||||
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue