mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 21:37:04 +08:00
update
This commit is contained in:
parent
fcb8da2c50
commit
0c59a233ea
@ -1,4 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
project(FluentUI VERSION 0.1 LANGUAGES CXX)
|
project(FluentUI VERSION 0.1 LANGUAGES CXX)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(example)
|
add_subdirectory(example)
|
||||||
|
@ -25,10 +25,10 @@ CONFIG(debug,debug|release) {
|
|||||||
win32 {
|
win32 {
|
||||||
contains(QT_ARCH, i386) {
|
contains(QT_ARCH, i386) {
|
||||||
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR
|
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x86/*.dll) $$DESTDIR
|
||||||
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\)
|
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, $$QMAKE_DIR_SEP)
|
||||||
} else {
|
} else {
|
||||||
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR
|
COPYDLL = $$absolute_path($${_PRO_FILE_PWD_}/../third/Win_x64/*.dll) $$DESTDIR
|
||||||
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, \\)
|
QMAKE_PRE_LINK += $$QMAKE_COPY $$replace(COPYDLL, /, $$QMAKE_DIR_SEP)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,28 +1,20 @@
|
|||||||
OUTP = $$OUT_PWD/../bin/FluentUI
|
OUTP = $$OUT_PWD/../bin/FluentUI
|
||||||
BUILDBIN_PATH = $$replace(OUTP, src/../bin, bin)
|
BUILDBIN_PATH = $$replace(OUTP, src/../bin, bin)
|
||||||
message("----------------->")
|
|
||||||
message($$OUTP)
|
|
||||||
message($$BUILDBIN_PATH)
|
|
||||||
QTQMLFLUENT_PATH = $$[QT_INSTALL_QML]/FluentUI
|
QTQMLFLUENT_PATH = $$[QT_INSTALL_QML]/FluentUI
|
||||||
PRESET_PATH = $$PWD/build-preset
|
PRESET_PATH = $$PWD/build-preset
|
||||||
SOLIBFILE_PATH = $$OUT_PWD/libFluentUI.so
|
SOLIBFILE_PATH = $$OUT_PWD/libFluentUI.so
|
||||||
ANDROID = NO
|
ANDROID = NO
|
||||||
|
|
||||||
android{
|
android{
|
||||||
ANDROID=YES
|
ANDROID=YES
|
||||||
QMAKE_PRE_LINK *= md $$replace(OUTP, /, \\)
|
QMAKE_PRE_LINK *= md $$replace(OUTP, /, $$QMAKE_DIR_SEP)
|
||||||
}else{
|
}else{
|
||||||
DESTDIR += $$OUTP
|
DESTDIR += $$OUTP
|
||||||
}
|
}
|
||||||
|
|
||||||
SHAREDSCRIPT = "$$PWD\win_install.bat" SHARED "$$PWD" "$$PRESET_PATH" "$$BUILDBIN_PATH" "$$QTQMLFLUENT_PATH" $$ANDROID "$$SOLIBFILE_PATH"
|
SHAREDSCRIPT = "$$PWD\win_install.bat" SHARED "$$PWD" "$$PRESET_PATH" "$$BUILDBIN_PATH" "$$QTQMLFLUENT_PATH" $$ANDROID "$$SOLIBFILE_PATH"
|
||||||
STATICSCRIPT = "$$PWD\win_install.bat" STATIC "$$PWD" "$$PRESET_PATH" "$$BUILDBIN_PATH" "$$QTQMLFLUENT_PATH" $$ANDROID "$$SOLIBFILE_PATH"
|
STATICSCRIPT = "$$PWD\win_install.bat" STATIC "$$PWD" "$$PRESET_PATH" "$$BUILDBIN_PATH" "$$QTQMLFLUENT_PATH" $$ANDROID "$$SOLIBFILE_PATH"
|
||||||
|
|
||||||
message("-------------------------")
|
|
||||||
message($$SHAREDSCRIPT)
|
|
||||||
CONFIG(sharedlib){
|
CONFIG(sharedlib){
|
||||||
QMAKE_POST_LINK *= $$replace(SHAREDSCRIPT, /, \\)
|
QMAKE_POST_LINK *= $$replace(SHAREDSCRIPT, /, $$QMAKE_DIR_SEP)
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
QMAKE_POST_LINK *= $$replace(STATICSCRIPT, /, \\)
|
QMAKE_POST_LINK *= $$replace(STATICSCRIPT, /, $$QMAKE_DIR_SEP)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user