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:
:: > build-all.cmd vs2015-x64 RelWithDebInfo -DUSE_IFC4=1 -DENABLE_BUILD_OPTIMIZATIONS=1
@echo off
@if not defined ECHO_ON ( echo off )
setlocal EnableDelayedExpansion
+1 -1
View File
@@ -24,7 +24,7 @@
:: Example usage (all arguments are optional):
:: build-deps.cmd vs2022-x64 RelWithDebInfo Build
@echo off
@if not defined ECHO_ON ( echo off )
echo.
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)
:: Possible extra parameters are passed for the MSBuild call.
@echo off
@if not defined ECHO_ON ( echo off )
set PROJECT_NAME=IfcOpenShell
echo.
+1 -1
View File
@@ -20,7 +20,7 @@
:: This script initializes various CMake build configuration type related variables.
:: 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 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)
:: Possible extra parameters are passed for the MSBuild call.
@echo off
@if not defined ECHO_ON ( echo off )
set PROJECT_NAME=IfcOpenShell
echo.
+1 -1
View File
@@ -17,7 +17,7 @@
:: ::
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off
@if not defined ECHO_ON ( echo off )
echo.
set PROJECT_NAME=IfcOpenShell
+1 -1
View File
@@ -19,7 +19,7 @@
:: Pass x86 or x64 as %1, if not specified x64 assumed.
@echo off
@if not defined ECHO_ON ( echo off )
set TARGET_ARCH=%1
if "%TARGET_ARCH%"=="" set TARGET_ARCH=x64
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
setlocal ENABLEDELAYEDEXPANSION
@@ -38,5 +39,6 @@ if defined BGC (
echo|set /p="!STYLE!!TEXT!!ESC![0m"
echo.
if defined ECHO_ON ( echo on )
endlocal
exit /b 0
+1 -1
View File
@@ -36,7 +36,7 @@
::
:: 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