From d161ce61160c8d5ce8d18e9d61a7ab5f3e2f9c29 Mon Sep 17 00:00:00 2001 From: Cosmin Truta Date: Mon, 23 Sep 2024 20:14:19 +0300 Subject: [PATCH] [libpng16] projects: Add a build launcher to the Visual Studio project Add projects/vstudio/build.bat, a wrapper for `devenv [...] /build`. This is a cherry-pick of commit f1c01b5c36fc4fdcd9238c5295cc5565a9caa43e from branch 'libpng18'. --- projects/vstudio/build.bat | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 projects/vstudio/build.bat diff --git a/projects/vstudio/build.bat b/projects/vstudio/build.bat new file mode 100644 index 000000000..d129d4b6e --- /dev/null +++ b/projects/vstudio/build.bat @@ -0,0 +1,25 @@ +@echo off +@setlocal enableextensions + +if "%~1" == "/?" goto :help +if "%~1" == "-?" goto :help +if "%~1" == "/help" goto :help +if "%~1" == "-help" goto :help +if "%~1" == "--help" goto :help +goto :run + +:help +echo Usage: +echo %~nx0 [SOLUTION_CONFIG] +echo Examples: +echo %~nx0 "Release|Win32" (default) +echo %~nx0 "Debug|Win32" +echo %~nx0 "Release|ARM64" +echo %~nx0 "Debug|ARM64" +echo etc. +exit /b 2 + +:run +set _SOLUTION_CONFIG="%~1" +if %_SOLUTION_CONFIG% == "" set _SOLUTION_CONFIG="Release|Win32" +devenv "%~dp0.\vstudio.sln" /build %_SOLUTION_CONFIG%