This commit is contained in:
朱子楚\zhuzi 2023-05-11 20:10:42 +08:00
parent 0a1c6d54bc
commit a0dae17117
2 changed files with 29 additions and 10 deletions

View File

@ -9,12 +9,11 @@ if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif()
##
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
##
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/bin)
else()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/bin)
endif()
##
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/lib)
#
add_definitions(-DVERSION=1,2,9,0)
@ -70,3 +69,7 @@ target_link_libraries(fluentui PUBLIC
if(WIN32)
target_link_libraries(fluentui PRIVATE dwmapi user32)
endif()
#debugd
set_target_properties(fluentui PROPERTIES DEBUG_POSTFIX "d")
set_target_properties(fluentuiplugin PROPERTIES DEBUG_POSTFIX "d")

View File

@ -1,4 +1,4 @@
MetaInfo {
MetaInfo {
Type {
name: "FluentUI.Controls.FluButton"
icon: "images/button-icon16.png"
@ -7,11 +7,27 @@ MetaInfo {
name: "FluButton"
category: "FluentUI - Controls"
libraryIcon: "images/button-icon.png"
version: "2.0"
version: "1.0"
requiredImport: "FluentUI"
toolTip: qsTr("A button with text.")
Property { name: "text"; type: "binding"; value: "qsTr(\"Button\")" }
}
}
Type {
name: "FluentUI.Controls.FluText"
icon: "images/label-icon16.png"
ItemLibraryEntry {
name: "FluText"
category: "FluentUI - Controls"
libraryIcon: "images/label-icon.png"
version: "1.0"
requiredImport: "FluentUI"
toolTip: qsTr("A text.")
Property { name: "text"; type: "binding"; value: "qsTr(\"Text\")" }
}
}
}