make tsoloud work on OSX (#84)
This commit is contained in:
parent
69aaa87253
commit
ef8149778c
2 changed files with 10 additions and 10 deletions
|
|
@ -40,13 +40,8 @@ proc testAll() =
|
|||
when defined(Windows):
|
||||
execCmd "nim c -r tests/tmath.nim"
|
||||
execCmd "nim cpp -r tests/tmath.nim"
|
||||
tsoloud()
|
||||
elif defined(osx):
|
||||
discard
|
||||
elif existsEnv("TRAVIS"):
|
||||
discard
|
||||
else:
|
||||
tsoloud()
|
||||
if defined(OSX) or defined(Windows) or not existsEnv("TRAVIS"):
|
||||
tsoloud() # requires some libraries on linux, need them installed in TRAVIS
|
||||
|
||||
task test, "Test":
|
||||
for options in ["", "-d:release"]:
|
||||
|
|
|
|||
|
|
@ -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