mirror of
https://github.com/YACReader/yacreader
synced 2025-05-25 18:00:46 -04:00
Copy qm files manually after linking to the output folder
Windows only
This commit is contained in:
parent
2905b7dc29
commit
68e67fd777
@ -202,6 +202,23 @@ TRANSLATIONS = yacreader_es.ts \
|
||||
LRELEASE_DIR = ../release/languages/
|
||||
CONFIG += lrelease
|
||||
|
||||
win32 {
|
||||
CONFIG(release, debug|release) {
|
||||
SOURCE_QM_DIR = $$OUT_PWD/release/*.qm
|
||||
}
|
||||
CONFIG(debug, debug|release) {
|
||||
SOURCE_QM_DIR = $$OUT_PWD/debug/*.qm
|
||||
}
|
||||
|
||||
DEPLOYMENT_OUT_QM_DIR = ../release/languages/
|
||||
OUT_QM_DIR = $${DESTDIR}/languages/
|
||||
|
||||
QMAKE_POST_LINK += $(MKDIR) $$shell_path($${OUT_QM_DIR}) 2> NULL & \
|
||||
$(COPY) $$shell_path($${SOURCE_QM_DIR}) $$shell_path($${OUT_QM_DIR}) & \
|
||||
$(MKDIR) $$shell_path($${DEPLOYMENT_OUT_QM_DIR}) 2> NULL & \
|
||||
$(COPY) $$shell_path($${SOURCE_QM_DIR}) $$shell_path($${DEPLOYMENT_OUT_QM_DIR})
|
||||
}
|
||||
|
||||
unix:!macx {
|
||||
# set install prefix if it's empty
|
||||
isEmpty(PREFIX) {
|
||||
|
@ -291,6 +291,23 @@ TRANSLATIONS = yacreaderlibrary_es.ts \
|
||||
LRELEASE_DIR = ../release/languages/
|
||||
CONFIG += lrelease
|
||||
|
||||
win32 {
|
||||
CONFIG(release, debug|release) {
|
||||
SOURCE_QM_DIR = $$OUT_PWD/release/*.qm
|
||||
}
|
||||
CONFIG(debug, debug|release) {
|
||||
SOURCE_QM_DIR = $$OUT_PWD/debug/*.qm
|
||||
}
|
||||
|
||||
DEPLOYMENT_OUT_QM_DIR = ../release/languages/
|
||||
OUT_QM_DIR = $${DESTDIR}/languages/
|
||||
|
||||
QMAKE_POST_LINK += $(MKDIR) $$shell_path($${OUT_QM_DIR}) 2> NULL & \
|
||||
$(COPY) $$shell_path($${SOURCE_QM_DIR}) $$shell_path($${OUT_QM_DIR}) & \
|
||||
$(MKDIR) $$shell_path($${DEPLOYMENT_OUT_QM_DIR}) 2> NULL & \
|
||||
$(COPY) $$shell_path($${SOURCE_QM_DIR}) $$shell_path($${DEPLOYMENT_OUT_QM_DIR})
|
||||
}
|
||||
|
||||
#QML/GridView
|
||||
QT += quick qml quickwidgets
|
||||
|
||||
|
@ -7,8 +7,6 @@ CONFIG += c++17
|
||||
win32 {
|
||||
#enable c++17 explicitly in msvc
|
||||
QMAKE_CXXFLAGS += /std:c++17 /Zc:__cplusplus /permissive-
|
||||
CONFIG -= debug_and_release
|
||||
!CONFIG(Release):!CONFIG(Debug):CONFIG += Release
|
||||
}
|
||||
|
||||
DEFINES += NOMINMAX
|
||||
|
Loading…
Reference in New Issue
Block a user