main
朱子楚\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) set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "" FORCE)
endif() endif()
## ##
if(CMAKE_BUILD_TYPE STREQUAL "Debug") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/bin)
else() ##
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/bin) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_PREFIX_PATH}/lib)
endif()
# #
add_definitions(-DVERSION=1,2,9,0) add_definitions(-DVERSION=1,2,9,0)
@ -70,3 +69,7 @@ target_link_libraries(fluentui PUBLIC
if(WIN32) if(WIN32)
target_link_libraries(fluentui PRIVATE dwmapi user32) target_link_libraries(fluentui PRIVATE dwmapi user32)
endif() endif()
#debugd
set_target_properties(fluentui PROPERTIES DEBUG_POSTFIX "d")
set_target_properties(fluentuiplugin PROPERTIES DEBUG_POSTFIX "d")

View File

@ -1,5 +1,5 @@
MetaInfo { MetaInfo {
Type { Type {
name: "FluentUI.Controls.FluButton" name: "FluentUI.Controls.FluButton"
icon: "images/button-icon16.png" icon: "images/button-icon16.png"
@ -7,11 +7,27 @@ MetaInfo {
name: "FluButton" name: "FluButton"
category: "FluentUI - Controls" category: "FluentUI - Controls"
libraryIcon: "images/button-icon.png" libraryIcon: "images/button-icon.png"
version: "2.0" version: "1.0"
requiredImport: "FluentUI" requiredImport: "FluentUI"
toolTip: qsTr("A button with text.") toolTip: qsTr("A button with text.")
Property { name: "text"; type: "binding"; value: "qsTr(\"Button\")" } 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\")" }
}
}
} }