Windows build scripts - ECHO_ON env variable for debugging

This commit is contained in:
Andrej730
2025-11-21 11:49:35 +05:00
parent 692ef5ecea
commit d3fcf39c76
9 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
:: Usage example for doing an optimized vs2015-x64 build with debug information and using IFC 4: :: Usage example for doing an optimized vs2015-x64 build with debug information and using IFC 4:
:: > build-all.cmd vs2015-x64 RelWithDebInfo -DUSE_IFC4=1 -DENABLE_BUILD_OPTIMIZATIONS=1 :: > build-all.cmd vs2015-x64 RelWithDebInfo -DUSE_IFC4=1 -DENABLE_BUILD_OPTIMIZATIONS=1
@echo off @if not defined ECHO_ON ( echo off )
setlocal EnableDelayedExpansion setlocal EnableDelayedExpansion
+1 -1
View File
@@ -24,7 +24,7 @@
:: Example usage (all arguments are optional): :: Example usage (all arguments are optional):
:: build-deps.cmd vs2022-x64 RelWithDebInfo Build :: build-deps.cmd vs2022-x64 RelWithDebInfo Build
@echo off @if not defined ECHO_ON ( echo off )
echo. echo.
for %%Q in ("%~dp0\.") DO set "batpath=%%~fQ" for %%Q in ("%~dp0\.") DO set "batpath=%%~fQ"
+1 -1
View File
@@ -21,7 +21,7 @@
:: a deduced generator will be used for %1 and BUILD_CFG_DEFAULT for %2 (both set in vs-cfg.cmd) :: a deduced generator will be used for %1 and BUILD_CFG_DEFAULT for %2 (both set in vs-cfg.cmd)
:: Possible extra parameters are passed for the MSBuild call. :: Possible extra parameters are passed for the MSBuild call.
@echo off @if not defined ECHO_ON ( echo off )
set PROJECT_NAME=IfcOpenShell set PROJECT_NAME=IfcOpenShell
echo. echo.
+1 -1
View File
@@ -20,7 +20,7 @@
:: This script initializes various CMake build configuration type related variables. :: This script initializes various CMake build configuration type related variables.
:: This batch file expects CMake build configuration type as %1. :: This batch file expects CMake build configuration type as %1.
@echo off @if not defined ECHO_ON ( echo off )
:: Set up variables depending on the used build configuration type. :: Set up variables depending on the used build configuration type.
set BUILD_CFG=%1 set BUILD_CFG=%1
+1 -1
View File
@@ -21,7 +21,7 @@
:: a deduced generator will be used for %1 and BUILD_CFG_DEFAULT for %2 (both set in vs-cfg.cmd) :: a deduced generator will be used for %1 and BUILD_CFG_DEFAULT for %2 (both set in vs-cfg.cmd)
:: Possible extra parameters are passed for the MSBuild call. :: Possible extra parameters are passed for the MSBuild call.
@echo off @if not defined ECHO_ON ( echo off )
set PROJECT_NAME=IfcOpenShell set PROJECT_NAME=IfcOpenShell
echo. echo.
+1 -1
View File
@@ -17,7 +17,7 @@
:: :: :: ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off @if not defined ECHO_ON ( echo off )
echo. echo.
set PROJECT_NAME=IfcOpenShell set PROJECT_NAME=IfcOpenShell
+1 -1
View File
@@ -19,7 +19,7 @@
:: Pass x86 or x64 as %1, if not specified x64 assumed. :: Pass x86 or x64 as %1, if not specified x64 assumed.
@echo off @if not defined ECHO_ON ( echo off )
set TARGET_ARCH=%1 set TARGET_ARCH=%1
if "%TARGET_ARCH%"=="" set TARGET_ARCH=x64 if "%TARGET_ARCH%"=="" set TARGET_ARCH=x64
if not exist "%~dp0BuildDepsCache-%TARGET_ARCH%.txt". ( if not exist "%~dp0BuildDepsCache-%TARGET_ARCH%.txt". (
+2
View File
@@ -1,3 +1,4 @@
:: Don't check for `ECHO_ON` or it will get too verbose without any benefit.
@echo off @echo off
setlocal ENABLEDELAYEDEXPANSION setlocal ENABLEDELAYEDEXPANSION
@@ -38,5 +39,6 @@ if defined BGC (
echo|set /p="!STYLE!!TEXT!!ESC![0m" echo|set /p="!STYLE!!TEXT!!ESC![0m"
echo. echo.
if defined ECHO_ON ( echo on )
endlocal endlocal
exit /b 0 exit /b 0
+1 -1
View File
@@ -36,7 +36,7 @@
:: ::
:: NOTE: The delayed environment variable expansion needs to be enabled before calling this. :: NOTE: The delayed environment variable expansion needs to be enabled before calling this.
@echo off @if not defined ECHO_ON ( echo off )
set GENERATOR=%1 set GENERATOR=%1