From c6f1aa5e0d88368881305b998d96581d2a5446db Mon Sep 17 00:00:00 2001
From: Sine Striker <trueful@163.com>
Date: 周五, 21 6月 2024 13:22:19 +0800
Subject: [PATCH] Update MSBuild

---
 share/msbuild/QWindowKit.props.in |    3 +++
 share/install.cmake               |    6 ++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/share/install.cmake b/share/install.cmake
index 0080395..1e64011 100644
--- a/share/install.cmake
+++ b/share/install.cmake
@@ -77,6 +77,12 @@
     to_dos_separator(MSBUILD_QWK_INSTALL_LIBDIR)
     to_dos_separator(MSBUILD_QWK_INSTALL_INCDIR)
 
+    if(QWINDOWKIT_BUILD_STATIC)
+        set(MSBUILD_QWK_STATIC_MACRO 
+            "<PreprocessorDefinitions>QWK_CORE_STATIC;QWK_WIDGETS_STATIC;QWK_QUICK_STATIC</PreprocessorDefinitions>"
+        )
+    endif()
+
     configure_file(${CMAKE_CURRENT_LIST_DIR}/msbuild/QWindowKit.props.in
         ${_build_data_dir}/msbuild/QWindowKit.props
         @ONLY
diff --git a/share/msbuild/QWindowKit.props.in b/share/msbuild/QWindowKit.props.in
index 1fd54c4..53282a0 100644
--- a/share/msbuild/QWindowKit.props.in
+++ b/share/msbuild/QWindowKit.props.in
@@ -15,4 +15,7 @@
       <AdditionalDependencies Condition="'$(Configuration)'=='Release'">@MSBUILD_QWK_LIBRARY_LIST_RELEASE@;%(AdditionalDependencies);</AdditionalDependencies>
     </Link>
   </ItemDefinitionGroup>
+  <PropertyGroup>
+    @MSBUILD_QWK_STATIC_MACRO@
+  </PropertyGroup>
 </Project>

--
Gitblit v1.9.1