Fix test on Windows
This commit is contained in:
parent
1a8e489b0f
commit
2853bef8b6
1 changed files with 7 additions and 7 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import os, nimterop/[cimport, git]
|
||||
|
||||
const
|
||||
incl = "soloud/include"
|
||||
src = "soloud/src"
|
||||
|
||||
gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc/*\n")
|
||||
|
||||
cDebug()
|
||||
|
|
@ -10,15 +14,11 @@ cOverride:
|
|||
Soloud* = pointer
|
||||
AlignedFloatBuffer* = pointer
|
||||
|
||||
proc Soloud_destroy*(aSoloud: ptr Soloud) {.importc: "Soloud_destroy".}
|
||||
proc Soloud_destroy*(aSoloud: ptr Soloud) {.importc: "Soloud_destroy", header: cSearchPath(incl/"soloud_c.h").}
|
||||
|
||||
cSkipSymbol("WavStream_stop", "WavStream_setFilter")
|
||||
|
||||
const
|
||||
inc = "soloud/include"
|
||||
src = "soloud/src"
|
||||
|
||||
cIncludeDir(inc)
|
||||
cIncludeDir(incl)
|
||||
|
||||
when defined(Linux):
|
||||
{.passL: "-lpthread".}
|
||||
|
|
@ -37,7 +37,7 @@ cCompile(src/"audiosource", "cpp")
|
|||
cCompile(src/"audiosource", "c")
|
||||
cCompile(src/"filter/*.cpp")
|
||||
|
||||
cImport(inc/"soloud_c.h")
|
||||
cImport(incl/"soloud_c.h")
|
||||
|
||||
var
|
||||
s = Soloud_create()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue