From a5d13e19dd7f6037e10b649c49805922ae5e0fa6 Mon Sep 17 00:00:00 2001
From: SineStriker <trueful@163.com>
Date: 周五, 22 12月 2023 17:04:29 +0800
Subject: [PATCH] Prepare to remove style support again

---
 src/stylesupport/CMakeLists.txt |   25 +++++++++++++++++++++++++
 1 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/src/stylesupport/CMakeLists.txt b/src/stylesupport/CMakeLists.txt
index eea48a5..787fa8c 100644
--- a/src/stylesupport/CMakeLists.txt
+++ b/src/stylesupport/CMakeLists.txt
@@ -5,11 +5,36 @@
 
 set(_src
     qwkstylesupportglobal.h
+    styleagent.h
+    styleagent_p.h
+    styleagent.cpp
 )
+
+set(_links_private)
+
+if(WIN32)
+    list(APPEND _src
+        styleagent_win.cpp
+    )
+elseif(APPLE)
+    list(APPEND _links_private
+        "-framework Foundation"
+        "-framework Cocoa"
+        "-framework AppKit"
+    )
+    list(APPEND _src
+        styleagent_mac.cpp
+    )
+else()
+    list(APPEND _src
+        styleagent_linux.cpp
+    )
+endif()
 
 qwk_add_library(${PROJECT_NAME} AUTOGEN
     SOURCES ${_src}
     LINKS QWKCore
+    LINKS_PRIVATE ${_links_private}
     QT_LINKS Core Gui
     QT_INCLUDE_PRIVATE Core Gui
     PREFIX QWK_STYLESUPPORT

--
Gitblit v1.9.1