Support new switch build version

This commit is contained in:
Joey Yakimowich-Payne 2018-07-06 13:31:42 +09:00
commit 13eba9d972
7 changed files with 3 additions and 14 deletions

View file

@ -1,4 +0,0 @@
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")

View file

@ -1,4 +0,0 @@
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")

View file

@ -1,2 +0,0 @@
--path="../../src"
--os="nintendoswitch"

View file

@ -0,0 +1 @@
--path="../../src"

View file

@ -16,8 +16,8 @@ task setup, "Download and generate bindings":
exec "nimgen libnxGen.cfg"
task buildExamples, "Build switch examples":
exec "switch_build --author='jyapayne' --version='1.0.0' examples/helloworld/helloworld.nim"
exec "switch_build --author='jyapayne' --version='1.0.0' examples/accounts/account_ex.nim"
exec "switch_build --libnxPath='" & thisDir() & "/src/libnx/wrapper/nx/' --author='jyapayne' --version='1.0.0' examples/helloworld/helloworld.nim"
exec "switch_build --libnxPath='" & thisDir() & "/src/libnx/wrapper/nx/' --author='jyapayne' --version='1.0.0' examples/accounts/account_ex.nim"
before install:
setupTask()

View file

@ -30,8 +30,6 @@ rename = "$replace(console=con)"
git = "https://github.com/switchbrew/libnx"
execute = """
cd ${output}
# for listing users
curl https://patch-diff.githubusercontent.com/raw/switchbrew/libnx/pull/103.patch | git am
make
"""