make tsoloud work on OSX (#84)
This commit is contained in:
parent
69aaa87253
commit
ef8149778c
2 changed files with 10 additions and 10 deletions
|
|
@ -22,16 +22,21 @@ cSkipSymbol("WavStream_stop", "WavStream_setFilter")
|
|||
|
||||
cIncludeDir(incl)
|
||||
|
||||
when defined(Linux):
|
||||
when defined(osx):
|
||||
cDefine("WITH_COREAUDIO")
|
||||
{.passL: "-framework CoreAudio -framework AudioToolbox".}
|
||||
cCompile(src/"backend/coreaudio/*.cpp")
|
||||
elif defined(Linux):
|
||||
{.passL: "-lpthread".}
|
||||
cDefine("WITH_OSS")
|
||||
cCompile(src/"backend/oss/*.cpp")
|
||||
|
||||
when defined(Windows):
|
||||
elif defined(Windows):
|
||||
{.passC: "-msse".}
|
||||
{.passL: "-lwinmm".}
|
||||
cDefine("WITH_WINMM")
|
||||
cCompile(src/"backend/winmm/*.cpp")
|
||||
else:
|
||||
static: doAssert false
|
||||
|
||||
cCompile(src/"c_api/soloud_c.cpp")
|
||||
cCompile(src/"core/*.cpp")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue