diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-13 11:28:45 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-03-15 14:49:27 -0600 |
commit | 6ab34e41b2d7fa3b6c6ac770e62cdd3ef1fd6d0f (patch) | |
tree | aa27592f3b48c9d4829e1c733d73c26e778ebede /build.bat | |
parent | l18n: add French translation (diff) | |
download | wireguard-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 'build.bat')
-rw-r--r-- | build.bat | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |