diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-23 20:58:56 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-23 20:58:56 -0600 |
| commit | 2853bef8b61cc0b0ffb9877cfe3a9e66376da1a4 (patch) | |
| tree | 77445d84372b727320f69545931c8cd453e9afb3 /tests | |
| parent | 1a8e489b0f27c622f1eb65d6794b187e1f953c3e (diff) | |
| download | nimterop-2853bef8b61cc0b0ffb9877cfe3a9e66376da1a4.tar.gz nimterop-2853bef8b61cc0b0ffb9877cfe3a9e66376da1a4.zip | |
Fix test on Windows
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tsoloud.nim | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tsoloud.nim b/tests/tsoloud.nim index 32006b0..8d2143b 100644 --- a/tests/tsoloud.nim +++ b/tests/tsoloud.nim @@ -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() |
