fix #62 (toast now addressed relatively); macros=>procs + other fixes (#70)

* fixes https://github.com/genotrance/nimterop/issues/62
*  toast is now automatically built on demand, and doesn't depend on PATH
- [ ] todo: need to track its deps properly to trigger rebuilding it; using same algo as shown here https://github.com/genotrance/nimterop/issues/69 but using nim deps instead of c deps
* many other fixes
  * trying to follow https://github.com/timotheecour/vitanim/wiki/Nim-best-practices
This commit is contained in:
Timothee Cour 2019-01-29 21:06:26 -08:00 • committed by genotrance
commit 839c4007f6
15 changed files with 173 additions and 108 deletions

View file

@ -1,10 +1,12 @@
import os, nimterop/[cimport, git]
import os, nimterop/[cimport, git, paths]
const
incl = "soloud/include"
src = "soloud/src"
baseDir = nimteropBuildDir()/"soloud"
incl = baseDir/"include"
src = baseDir/"src"
gitPull("https://github.com/jarikomppa/soloud", "soloud", "include/*\nsrc/*\n")
static:
gitPull("https://github.com/jarikomppa/soloud", baseDir, "include/*\nsrc/*\n")
cDebug()
cDisableCaching()
@ -50,4 +52,4 @@ when declared(WavStream_stop):
assert "WavStream_stop() not skipped"
when declared(WavStream_setFilter):
assert "WavStream_setFilter not skipped"
assert "WavStream_setFilter not skipped"