Add nims config files to build easily
This commit is contained in:
parent
418297770b
commit
2659ef683f
6 changed files with 23 additions and 4 deletions
4
config.nims
Normal file
4
config.nims
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
switch("passC", "-I" & thisDir() & "/src/libnx/wrapper/nx/include")
|
||||
switch("passL", "-specs="&thisDir()&"/src/libnx/wrapper/nx/switch.specs -L"&thisDir()&"/src/libnx/wrapper/nx/lib -lnx")
|
||||
#switch("passC", "-I$DEVKITPRO/libnx/include")
|
||||
#switch("passL", "-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx")
|
||||
4
examples/accounts/config.nims
Normal file
4
examples/accounts/config.nims
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
switch("passC", "-I" & thisDir() & "/../../src/libnx/wrapper/nx/include")
|
||||
switch("passL", "-specs=" & thisDir() & "/../../src/libnx/wrapper/nx/switch.specs -L" & thisDir() & "/../../src/libnx/wrapper/nx/lib -lnx")
|
||||
#switch("passC", "-I$DEVKITPRO/libnx/include")
|
||||
#switch("passL", "-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx")
|
||||
4
examples/helloworld/config.nims
Normal file
4
examples/helloworld/config.nims
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
switch("passC", "-I" & thisDir() & "/../../src/libnx/wrapper/nx/include")
|
||||
switch("passL", "-specs=" & thisDir() & "/../../src/libnx/wrapper/nx/switch.specs -L" & thisDir() & "/../../src/libnx/wrapper/nx/lib -lnx")
|
||||
#switch("passC", "-I$DEVKITPRO/libnx/include")
|
||||
#switch("passL", "-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx")
|
||||
|
|
@ -20,6 +20,7 @@ filter=lock
|
|||
|
||||
[n.exclude]
|
||||
"${output}/nim.cfg"
|
||||
"${output}/config.nims"
|
||||
|
||||
[n.prepare]
|
||||
git = "https://github.com/switchbrew/libnx"
|
||||
|
|
@ -77,6 +78,12 @@ create = """
|
|||
--path:"../../"
|
||||
"""
|
||||
|
||||
[src/libnx/wrapper/config.nims]
|
||||
create = """
|
||||
switch("passC", "-I" & thisDir() & "/nx/include")
|
||||
switch("passL", "-specs=" & thisDir() & "/nx/switch.specs -L" & thisDir() & "/nx/lib -lnx")
|
||||
"""
|
||||
|
||||
[result.h]
|
||||
defines = true
|
||||
|
||||
|
|
|
|||
4
nim.cfg
4
nim.cfg
|
|
@ -1,4 +0,0 @@
|
|||
--passC "-I$DEVKITPRO/libnx/include"
|
||||
--passL "-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx"
|
||||
#--passC="-I$HOME/Projects/nim-libnx/src/libnx/wrapper/nx/include"
|
||||
#--passL="-specs=$HOME/Projects/nim-libnx/src/libnx/wrapper/nx/switch.specs -L$HOME/Projects/nim-libnx/src/libnx/wrapper/nx/lib -lnx"
|
||||
4
src/libnx/config.nims
Normal file
4
src/libnx/config.nims
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
switch("passC", "-I" & thisDir() & "/wrapper/nx/include")
|
||||
switch("passL", "-specs=" & thisDir() & "/wrapper/nx/switch.specs -L" & thisDir() & "/wrapper/nx/lib -lnx")
|
||||
#switch("passC", "-I$DEVKITPRO/libnx/include")
|
||||
#switch("passL", "-specs=$DEVKITPRO/libnx/switch.specs -L$DEVKITPRO/libnx/lib -lnx")
|
||||
Loading…
Add table
Add a link
Reference in a new issue