aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.bat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-03-13 11:28:45 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-03-15 14:49:27 -0600
commit6ab34e41b2d7fa3b6c6ac770e62cdd3ef1fd6d0f (patch)
treeaa27592f3b48c9d4829e1c733d73c26e778ebede /build.bat
parentl18n: add French translation (diff)
downloadwireguard-windows-6ab34e41b2d7fa3b6c6ac770e62cdd3ef1fd6d0f.tar.xz
wireguard-windows-6ab34e41b2d7fa3b6c6ac770e62cdd3ef1fd6d0f.zip
build: generalize generation mechanism to all submodules
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--build.bat6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.bat b/build.bat
index f951f069..12c9da27 100644
--- a/build.bat
+++ b/build.bat
@@ -70,9 +70,9 @@ if exist .deps\prepared goto :render
mkdir %1 >NUL 2>&1
echo [+] Assembling resources %1
windres -i resources.rc -o resources.syso -O coff || exit /b %errorlevel%
- if "%GenerateLocalizations%|%1"=="yes|x86" (
- echo [+] Generating localizations %1
- go generate || exit /b 1
+ if "%GoGenerate%|%1"=="yes|x86" (
+ echo [+] Regenerating files
+ go generate ./... || exit /b 1
)
echo [+] Building program %1
go build -ldflags="-H windowsgui -s -w" -tags walk_use_cgo -trimpath -v -o "%~1\wireguard.exe" || exit /b 1