diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-17 18:21:28 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-17 18:21:28 -0600 |
| commit | a18ab8fd1d5db37fcb4d88b6769fdc2be629257f (patch) | |
| tree | 8a9f2df21b6f7b2a9f7ca12b09f3ea887de6fdb2 | |
| parent | 66fe786cf03647da35e452e8eb46563b21a64fc3 (diff) | |
| download | nimterop-a18ab8fd1d5db37fcb4d88b6769fdc2be629257f.tar.gz nimterop-a18ab8fd1d5db37fcb4d88b6769fdc2be629257f.zip | |
Add tsoloud test
| -rw-r--r-- | tests/tsoloud.nim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/tsoloud.nim b/tests/tsoloud.nim new file mode 100644 index 0000000..5a919f6 --- /dev/null +++ b/tests/tsoloud.nim @@ -0,0 +1,37 @@ +import os, nimterop/[cimport, git] + +gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc & *\n") + +cDebug() + +const + inc = "soloud/include" + src = "soloud/src" + +cIncludeDir(inc) + +when defined(Linux): + {.passL: "-lpthread".} + cDefine("WITH_OSS") + cCompile(src/"backend/oss/*.cpp") + +when defined(Windows): + {.passC: "-msse".} + {.passL: "-lwinmm".} + cDefine("WITH_WINMM") + cCompile(src/"backend/winmm/*.cpp") + +cCompile(src/"c_api/soloud_c.cpp") +cCompile(src/"core/*.cpp") +cCompile(src/"audiosource", "cpp") +cCompile(src/"audiosource", "c") +cCompile(src/"filter/*.cpp") + +cImport(inc/"soloud_c.h") + +var + s = Soloud_create() + +echo s.Soloud_init() + +s.Soloud_destroy()
\ No newline at end of file |
