From 66f8369e1a98714fb592d87e42730b91a13f8485 Mon Sep 17 00:00:00 2001 From: Scott Duensing Date: Sat, 26 Aug 2023 17:35:06 -0500 Subject: [PATCH] Windows templates now build. --- build.sh | 9 +++++---- modules/n2nvpn/SCsub | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 4c5b5d9..3832ec1 100755 --- a/build.sh +++ b/build.sh @@ -4,16 +4,17 @@ pushd godot ln -f -s ../custom.py . -COMMON="-j4" -TEMPLATE="${COMMON} disable_3d=yes svg=no" +TEMPLATE="disable_3d=yes svg=no" #scons platform=list #scons --clean # Build editor -#scons platform=linuxbsd target=editor arch=x86_64 lto=full ${COMMON} -scons platform=linuxbsd target=editor arch=x86_64 ${COMMON} +#scons platform=linuxbsd target=editor arch=x86_64 lto=full +#scons platform=linuxbsd target=editor arch=x86_64 + +scons platform=windows target=template_release arch=x86_64 ${TEMPLATE} popd diff --git a/modules/n2nvpn/SCsub b/modules/n2nvpn/SCsub index a83b9ee..acc1cbe 100644 --- a/modules/n2nvpn/SCsub +++ b/modules/n2nvpn/SCsub @@ -55,6 +55,7 @@ if env["platform"] == "windows": "n2n/src/win32/wintap.c" ] env_n2nvpn.add_source_files(env.modules_sources, n2n_src_win) + env_n2nvpn.Append(CPPPATH=["n2n/src"]) # Append CCFLAGS flags for both C and C++ code. # If you need to, you can: