From 99eee4f6c8462ecee46c5663b562696f032a796f Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Sep 2025 18:36:11 -0400 Subject: [PATCH] Add custom build step for yaze_config.h generation in YAZE project - Introduced a custom build step in `YAZE.vcxproj` to generate the `yaze_config.h` file, defining versioning macros for different build configurations (Debug and Release) across multiple platforms (Win32, x64, ARM64). - This enhancement streamlines the build process by automating the creation of configuration headers, improving maintainability and version tracking. --- YAZE.vcxproj | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/YAZE.vcxproj b/YAZE.vcxproj index 9d4f27cd..37266efd 100644 --- a/YAZE.vcxproj +++ b/YAZE.vcxproj @@ -505,6 +505,31 @@ + + + + Document + + + + + + + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + echo #define YAZE_VERSION_MAJOR 0 > "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_MINOR 3 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" & echo #define YAZE_VERSION_PATCH 1 >> "$(ProjectDir)build-$(Platform)\yaze_config.h" + $(ProjectDir)build-$(Platform)\yaze_config.h + + +