From f1589e9d1ac69900b5b4f664e496f530e2e91ed1 Mon Sep 17 00:00:00 2001 From: parker-int64 Date: Fri, 26 May 2023 10:24:30 +0800 Subject: [PATCH 1/2] The debug shared library only works on windows --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 73c9b78..a59132b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -72,4 +72,9 @@ if(WIN32) endif() #如果是debug,则生成的库文件名后面拼接d -set_target_properties(fluentuiplugin PROPERTIES DEBUG_POSTFIX "d") +# 在MinGW和GCC/Clang中, 默认不会链接带`d`后缀的动态库 +if(MSVC) + set_target_properties(fluentuiplugin PROPERTIES DEBUG_POSTFIX "d") +endif(MSVC) + + From 183e29dfaae5ff74f2379e1084a83eb238d18235 Mon Sep 17 00:00:00 2001 From: parker-int64 Date: Fri, 26 May 2023 10:25:28 +0800 Subject: [PATCH 2/2] The framelesshelper flag Global::Option::ForceHideWindowFrameBorder only available on windows --- example/src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/example/src/main.cpp b/example/src/main.cpp index d923b32..ff36319 100644 --- a/example/src/main.cpp +++ b/example/src/main.cpp @@ -21,7 +21,9 @@ FRAMELESSHELPER_USE_NAMESPACE QGuiApplication::setOrganizationDomain("https://zhuzichu520.github.io"); QGuiApplication::setApplicationName("FluentUI"); QGuiApplication app(argc, argv); +#ifdef Q_OS_WIN // 此设置仅在Windows下生效 FramelessConfig::instance()->set(Global::Option::ForceHideWindowFrameBorder); +#endif FramelessConfig::instance()->set(Global::Option::DisableLazyInitializationForMicaMaterial); FramelessConfig::instance()->set(Global::Option::CenterWindowBeforeShow); FramelessConfig::instance()->set(Global::Option::ForceNonNativeBackgroundBlur);