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]
|
import os, nimterop/[cimport, git]
|
||||||
|
|
||||||
|
const
|
||||||
|
incl = "soloud/include"
|
||||||
|
src = "soloud/src"
|
||||||
|
|
||||||
gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc/*\n")
|
gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc/*\n")
|
||||||
|
|
||||||
cDebug()
|
cDebug()
|
||||||
|
|
@ -10,15 +14,11 @@ cOverride:
|
||||||
Soloud* = pointer
|
Soloud* = pointer
|
||||||
AlignedFloatBuffer* = 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")
|
cSkipSymbol("WavStream_stop", "WavStream_setFilter")
|
||||||
|
|
||||||
const
|
cIncludeDir(incl)
|
||||||
inc = "soloud/include"
|
|
||||||
src = "soloud/src"
|
|
||||||
|
|
||||||
cIncludeDir(inc)
|
|
||||||
|
|
||||||
when defined(Linux):
|
when defined(Linux):
|
||||||
{.passL: "-lpthread".}
|
{.passL: "-lpthread".}
|
||||||
|
|
@ -37,7 +37,7 @@ cCompile(src/"audiosource", "cpp")
|
||||||
cCompile(src/"audiosource", "c")
|
cCompile(src/"audiosource", "c")
|
||||||
cCompile(src/"filter/*.cpp")
|
cCompile(src/"filter/*.cpp")
|
||||||
|
|
||||||
cImport(inc/"soloud_c.h")
|
cImport(incl/"soloud_c.h")
|
||||||
|
|
||||||
var
|
var
|
||||||
s = Soloud_create()
|
s = Soloud_create()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue