From dc9cd97994efe9e9c340fc35fed182dcae695084 Mon Sep 17 00:00:00 2001 From: scawful Date: Sun, 28 Sep 2025 18:40:15 -0400 Subject: [PATCH] Add pre-build event for yaze_config.h generation in YAZE project - Introduced a pre-build event in `YAZE.vcxproj` to automatically create the `yaze_config.h` file, defining versioning macros for the project. - This change enhances the build process by ensuring the configuration header is generated in the appropriate build directory, improving maintainability and version tracking. --- YAZE.vcxproj | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/YAZE.vcxproj b/YAZE.vcxproj index 37266efd..5bd70145 100644 --- a/YAZE.vcxproj +++ b/YAZE.vcxproj @@ -84,6 +84,17 @@ true Unicode + + + + + if not exist "$(ProjectDir)build-$(Platform)" mkdir "$(ProjectDir)build-$(Platform)" +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" + Generating yaze_config.h in build directory + + @@ -361,6 +372,9 @@ + + Generated Files + @@ -502,7 +516,6 @@ - @@ -527,6 +540,7 @@ $(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 + Generating yaze_config.h