Make work with n.sourcefile

This commit is contained in:
Joey Yakimowich-Payne 2018-07-13 18:09:57 +09:00
commit f748e4dcdc
2 changed files with 5 additions and 96 deletions

View file

@ -23,4 +23,6 @@ before install:
setupTask()
task test, "Run tests":
exec "nim c -r tests/test.nim"
discard
# no tests because code needs to run on the Switch :(
# exec "nim c -r tests/test.nim"

View file

@ -66,8 +66,6 @@ replace.lock = "LOCK"
search.cdecl = "stdcall"
replace.cdecl = "cdecl"
[console.h]
[n.prepare]
git = "https://github.com/switchbrew/libnx"
execute = """
@ -311,7 +309,6 @@ import libnx/ext/integer128
"""
[acc.nim]
search.o = "import libnx"
prepend.o = """
import libnx/ext/integer128
"""
@ -348,105 +345,15 @@ template CONSOLE_CROSSED_OUT*: int = BIT(8).int
search.threedmoo = "debugDevice_3DMOO"
replace.threedmoo = "debugDevice_3DMOO*"
[apm.nim]
key = blank
[applet.nim]
key = blank
[audio.nim]
key = blank
[binder.nim]
key = blank
[cache.nim]
key = blank
[condvar.nim]
key = blank
[csrng.nim]
key = blank
[detect.nim]
key = blank
[env.nim]
key = blank
[fatal.nim]
key = blank
[fsldr.nim]
key = blank
[fspr.nim]
key = blank
[gfx.nim]
search.timport = "../types"
replace.timport = "libnx/wrapper/types"
[ioctl.nim]
key = blank
[irs.nim]
key = blank
[jit.nim]
key = blank
[ldr.nim]
key = blank
[lr.nim]
key = blank
[mutex.nim]
key = blank
[nro.nim]
key = blank
[ns.nim]
key = blank
[nv.nim]
key = blank
[nvgfx.nim]
key = blank
[nvioctl.nim]
key = blank
[pl.nim]
key = blank
[pm.nim]
key = blank
[random.nim]
key = blank
[result.nim]
key = blank
[romfs_dev.nim]
search.timport = "../types"
replace.timport = "libnx/wrapper/types"
search.servimport = "../services/"
replace.servimport = "libnx/wrapper/"
[rwlock.nim]
key = blank
[semaphore.nim]
key = blank
[sm.nim]
key = blank
[smm.nim]
key = blank
[socket.nim]
key = blank
[spl.nim]
key = blank
[switch.nim]
key = blank
[thread.nim]
key = blank
[time.nim]
key = blank
[tls.nim]
key = blank
[tmem.nim]
key = blank
[usb.nim]
key = blank
[usb_comms.nim]
key = blank
[utf.nim]
key = blank
[vi.nim]
key = blank
[virtmem.nim]
key = blank
[n.sourcefile]
"${output}/*.nim"