Fix more build script issues
This commit is contained in:
parent
8937928b3e
commit
4b7874c837
1 changed files with 33 additions and 0 deletions
33
libnxGen.cfg
33
libnxGen.cfg
|
|
@ -34,6 +34,9 @@ defines=true
|
|||
[result.h]
|
||||
defines = true
|
||||
|
||||
[thread_context.h]
|
||||
preprocess = false
|
||||
|
||||
[hid.h]
|
||||
defines = true
|
||||
search.static_assert = "static_assert"
|
||||
|
|
@ -166,6 +169,26 @@ import libnx/ext/integer128
|
|||
template BIT*(n): auto = (1.uint shl n)
|
||||
"""
|
||||
|
||||
[thread_context.nim]
|
||||
search.timport = "../types"
|
||||
replace.timport = "libnx/wrapper/types"
|
||||
|
||||
prepend.o = """
|
||||
import libnx/ext/integer128
|
||||
"""
|
||||
|
||||
search.cpuall = "RegisterGroup_CpuAll ="
|
||||
comment.cpuall = 1
|
||||
|
||||
search.fpugprs = "RegisterGroup_FpuGprs ="
|
||||
prepend.fpugprs = "RegisterGroup_CpuAll = BIT(0) or BIT(1), ## /< All CPU registers."
|
||||
|
||||
search.fpuall = "RegisterGroup_FpuGprs or RegisterGroup_FpuSprs"
|
||||
replace.fpuall = "BIT(2) or BIT(3)"
|
||||
|
||||
search.groupall = "RegisterGroup_CpuAll or RegisterGroup_FpuAll"
|
||||
replace.groupall = "BIT(0) or BIT(1) or BIT(2) or BIT(3)"
|
||||
|
||||
[svc.nim]
|
||||
search.timport = "../types"
|
||||
replace.timport = "libnx/wrapper/types"
|
||||
|
|
@ -310,6 +333,11 @@ prepend.o = """
|
|||
import libnx/ext/integer128
|
||||
"""
|
||||
|
||||
[fence.nim]
|
||||
prepend.o = """
|
||||
import libnx/wrapper/types
|
||||
"""
|
||||
|
||||
[cons.nim]
|
||||
search.o = "type\n"
|
||||
prepend.o = """
|
||||
|
|
@ -346,11 +374,16 @@ replace.threedmoo = "debugDevice_3DMOO*"
|
|||
search.timport = "../types"
|
||||
replace.timport = "libnx/wrapper/types"
|
||||
|
||||
search.fimport = "../nvidia/fence"
|
||||
replace.fimport = "libnx/wrapper/fence"
|
||||
|
||||
[romfs_dev.nim]
|
||||
search.timport = "../types"
|
||||
replace.timport = "libnx/wrapper/types"
|
||||
search.servimport = "../services/"
|
||||
replace.servimport = "libnx/wrapper/"
|
||||
search.o = "../libnx"
|
||||
replace.o = "libnx"
|
||||
|
||||
[n.sourcefile]
|
||||
"${output}/*.nim"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue