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]
|
[result.h]
|
||||||
defines = true
|
defines = true
|
||||||
|
|
||||||
|
[thread_context.h]
|
||||||
|
preprocess = false
|
||||||
|
|
||||||
[hid.h]
|
[hid.h]
|
||||||
defines = true
|
defines = true
|
||||||
search.static_assert = "static_assert"
|
search.static_assert = "static_assert"
|
||||||
|
|
@ -166,6 +169,26 @@ import libnx/ext/integer128
|
||||||
template BIT*(n): auto = (1.uint shl n)
|
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]
|
[svc.nim]
|
||||||
search.timport = "../types"
|
search.timport = "../types"
|
||||||
replace.timport = "libnx/wrapper/types"
|
replace.timport = "libnx/wrapper/types"
|
||||||
|
|
@ -310,6 +333,11 @@ prepend.o = """
|
||||||
import libnx/ext/integer128
|
import libnx/ext/integer128
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
[fence.nim]
|
||||||
|
prepend.o = """
|
||||||
|
import libnx/wrapper/types
|
||||||
|
"""
|
||||||
|
|
||||||
[cons.nim]
|
[cons.nim]
|
||||||
search.o = "type\n"
|
search.o = "type\n"
|
||||||
prepend.o = """
|
prepend.o = """
|
||||||
|
|
@ -346,11 +374,16 @@ replace.threedmoo = "debugDevice_3DMOO*"
|
||||||
search.timport = "../types"
|
search.timport = "../types"
|
||||||
replace.timport = "libnx/wrapper/types"
|
replace.timport = "libnx/wrapper/types"
|
||||||
|
|
||||||
|
search.fimport = "../nvidia/fence"
|
||||||
|
replace.fimport = "libnx/wrapper/fence"
|
||||||
|
|
||||||
[romfs_dev.nim]
|
[romfs_dev.nim]
|
||||||
search.timport = "../types"
|
search.timport = "../types"
|
||||||
replace.timport = "libnx/wrapper/types"
|
replace.timport = "libnx/wrapper/types"
|
||||||
search.servimport = "../services/"
|
search.servimport = "../services/"
|
||||||
replace.servimport = "libnx/wrapper/"
|
replace.servimport = "libnx/wrapper/"
|
||||||
|
search.o = "../libnx"
|
||||||
|
replace.o = "libnx"
|
||||||
|
|
||||||
[n.sourcefile]
|
[n.sourcefile]
|
||||||
"${output}/*.nim"
|
"${output}/*.nim"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue