Fixed broken copy after link on Windows.
--HG-- branch : develop
This commit is contained in:
parent
435fd166f6
commit
776d8be8bb
|
@ -27,6 +27,8 @@ defineTest(copyToDestdir) {
|
||||||
DDIR = $$2
|
DDIR = $$2
|
||||||
mkpath($$DDIR)
|
mkpath($$DDIR)
|
||||||
|
|
||||||
|
message("----------------------------------------------begin------------------------------------------------")
|
||||||
|
message("Copy to" $$DDIR "after link")
|
||||||
for(FILE, files) {
|
for(FILE, files) {
|
||||||
|
|
||||||
# Replace slashes in paths with backslashes for Windows
|
# Replace slashes in paths with backslashes for Windows
|
||||||
|
@ -35,9 +37,11 @@ defineTest(copyToDestdir) {
|
||||||
DDIR ~= s,/,\\,g
|
DDIR ~= s,/,\\,g
|
||||||
}
|
}
|
||||||
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
QMAKE_POST_LINK += $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t)
|
||||||
|
message("Command:" $$QMAKE_COPY $$quote($$FILE) $$quote($$DDIR) $$escape_expand(\\n\\t))
|
||||||
}
|
}
|
||||||
|
|
||||||
export(QMAKE_POST_LINK)
|
export(QMAKE_POST_LINK)
|
||||||
|
message("----------------------------------------------end---------------------------------------------------")
|
||||||
}
|
}
|
||||||
|
|
||||||
# We use precompiled headers for more fast compilation source code.
|
# We use precompiled headers for more fast compilation source code.
|
||||||
|
|
|
@ -182,20 +182,12 @@ message(Examples: $$[QT_INSTALL_EXAMPLES])
|
||||||
# Path to recource file.
|
# Path to recource file.
|
||||||
win32:RC_FILE = share/resources/valentina.rc
|
win32:RC_FILE = share/resources/valentina.rc
|
||||||
|
|
||||||
# Set "make install" command for Unix-like systems.
|
|
||||||
unix{
|
|
||||||
isEmpty(PREFIX){
|
|
||||||
PREFIX = $$DEFAULT_PREFIX
|
|
||||||
}
|
|
||||||
|
|
||||||
# Keep path to all files with standard measurements we support right now
|
# Keep path to all files with standard measurements we support right now
|
||||||
INSTALL_STANDARD_MEASHUREMENTS += share/resources/tables/standard/GOST_man_ru.vst
|
INSTALL_STANDARD_MEASHUREMENTS += share/resources/tables/standard/GOST_man_ru.vst
|
||||||
|
|
||||||
# Prefix for binary file.
|
# Add to this variable all translation files that you want install with program.
|
||||||
unix:!macx{
|
# For generation *.qm file first you need create *.ts. See section TRANSLATIONS.
|
||||||
# Add to this variable all translation files that you want install with program.
|
INSTALL_TRANSLATIONS += \
|
||||||
# For generation *.qm file first you need create *.ts. See section TRANSLATIONS.
|
|
||||||
INSTALL_TRANSLATIONS += \
|
|
||||||
share/translations/valentina_ru_RU.qm \
|
share/translations/valentina_ru_RU.qm \
|
||||||
share/translations/valentina_uk_UA.qm \
|
share/translations/valentina_uk_UA.qm \
|
||||||
share/translations/valentina_de_DE.qm \
|
share/translations/valentina_de_DE.qm \
|
||||||
|
@ -205,8 +197,14 @@ unix:!macx{
|
||||||
share/translations/valentina_it_IT.qm \
|
share/translations/valentina_it_IT.qm \
|
||||||
share/translations/valentina_nl_NL.qm
|
share/translations/valentina_nl_NL.qm
|
||||||
|
|
||||||
|
# Set "make install" command for Unix-like systems.
|
||||||
|
unix{
|
||||||
|
# Prefix for binary file.
|
||||||
|
isEmpty(PREFIX){
|
||||||
|
PREFIX = $$DEFAULT_PREFIX
|
||||||
|
}
|
||||||
|
|
||||||
|
unix:!macx{
|
||||||
DATADIR =$$PREFIX/share
|
DATADIR =$$PREFIX/share
|
||||||
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
|
DEFINES += DATADIR=\\\"$$DATADIR\\\" PKGDATADIR=\\\"$$PKGDATADIR\\\"
|
||||||
|
|
||||||
|
@ -236,8 +234,7 @@ unix:!macx{
|
||||||
translations \
|
translations \
|
||||||
standard
|
standard
|
||||||
}
|
}
|
||||||
}
|
macx{
|
||||||
macx{
|
|
||||||
# Some macx stuff
|
# Some macx stuff
|
||||||
QMAKE_MAC_SDK = macosx
|
QMAKE_MAC_SDK = macosx
|
||||||
|
|
||||||
|
@ -328,8 +325,7 @@ macx{
|
||||||
QMAKE_BUNDLE_DATA += \
|
QMAKE_BUNDLE_DATA += \
|
||||||
standard \
|
standard \
|
||||||
frameworks
|
frameworks
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Run generation *.qm file for available *.ts files each time you run qmake.
|
# Run generation *.qm file for available *.ts files each time you run qmake.
|
||||||
|
@ -344,6 +340,7 @@ macx{
|
||||||
for(DIR, INSTALL_TRANSLATIONS) {
|
for(DIR, INSTALL_TRANSLATIONS) {
|
||||||
#add these absolute paths to a variable which
|
#add these absolute paths to a variable which
|
||||||
#ends up as 'mkcommands = path1 path2 path3 ...'
|
#ends up as 'mkcommands = path1 path2 path3 ...'
|
||||||
|
|
||||||
tr_path += $${PWD}/$$DIR
|
tr_path += $${PWD}/$$DIR
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user