update
parent
0a1c6d54bc
commit
a0dae17117
|
@ -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()
|
||||||
|
|
||||||
|
#如果是debug,则生成的库文件名后面拼接d
|
||||||
|
set_target_properties(fluentui PROPERTIES DEBUG_POSTFIX "d")
|
||||||
|
set_target_properties(fluentuiplugin PROPERTIES DEBUG_POSTFIX "d")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
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\")" }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue