Do not build an app bundle in debug mode.
--HG-- branch : develop
This commit is contained in:
parent
5bb90ab92d
commit
3d377bcbfd
|
@ -221,50 +221,52 @@ unix{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
CONFIG(release, debug|release){
|
||||||
|
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
MACOS_DIR = "Contents/MacOS"
|
MACOS_DIR = "Contents/MacOS"
|
||||||
# On macx we will use app bundle. Bundle doesn't need bin directory inside.
|
# On macx we will use app bundle. Bundle doesn't need bin directory inside.
|
||||||
# See issue #166: Creating OSX Homebrew (Mac OS X package manager) formula.
|
# See issue #166: Creating OSX Homebrew (Mac OS X package manager) formula.
|
||||||
target.path = $$MACOS_DIR
|
target.path = $$MACOS_DIR
|
||||||
|
|
||||||
#languages added inside translations.pri
|
#languages added inside translations.pri
|
||||||
|
|
||||||
# Symlinks also good names for copying. Make will take origin file and copy them with using symlink name.
|
# Symlinks also good names for copying. Make will take origin file and copy them with using symlink name.
|
||||||
# For bundle this names more then enough. We don't need care much about libraries versions.
|
# For bundle this names more then enough. We don't need care much about libraries versions.
|
||||||
libraries.path = $$FRAMEWORKS_DIR
|
libraries.path = $$FRAMEWORKS_DIR
|
||||||
libraries.files += $${OUT_PWD}/../../libs/qmuparser/$${DESTDIR}/libqmuparser.2.dylib
|
libraries.files += $${OUT_PWD}/../../libs/qmuparser/$${DESTDIR}/libqmuparser.2.dylib
|
||||||
libraries.files += $${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}/libvpropertyexplorer.1.dylib
|
libraries.files += $${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}/libvpropertyexplorer.1.dylib
|
||||||
|
|
||||||
# logo on macx.
|
# logo on macx.
|
||||||
ICON = $$PWD/../../../dist/Tape.icns
|
ICON = $$PWD/../../../dist/Tape.icns
|
||||||
|
|
||||||
QMAKE_INFO_PLIST = $$PWD/../../../dist/macx/tape/Info.plist
|
QMAKE_INFO_PLIST = $$PWD/../../../dist/macx/tape/Info.plist
|
||||||
|
|
||||||
# Copy to bundle multisize measurements files
|
# Copy to bundle multisize measurements files
|
||||||
multisize.path = $$RESOURCES_DIR/tables/multisize/
|
multisize.path = $$RESOURCES_DIR/tables/multisize/
|
||||||
multisize.files = $$INSTALL_MULTISIZE_MEASUREMENTS
|
multisize.files = $$INSTALL_MULTISIZE_MEASUREMENTS
|
||||||
|
|
||||||
# Copy to bundle templates files
|
# Copy to bundle templates files
|
||||||
templates.path = $$RESOURCES_DIR/tables/templates/
|
templates.path = $$RESOURCES_DIR/tables/templates/
|
||||||
templates.files = $$INSTALL_STANDARD_TEMPLATES
|
templates.files = $$INSTALL_STANDARD_TEMPLATES
|
||||||
|
|
||||||
# Copy to bundle multisize measurements files
|
# Copy to bundle multisize measurements files
|
||||||
# We cannot add none exist files to bundle through QMAKE_BUNDLE_DATA. That's why we must do this manually.
|
# We cannot add none exist files to bundle through QMAKE_BUNDLE_DATA. That's why we must do this manually.
|
||||||
QMAKE_POST_LINK += $$VCOPY $$quote($${OUT_PWD}/$${DESTDIR}/diagrams.rcc) $$quote($$shell_path($${OUT_PWD}/$$DESTDIR/$${TARGET}.app/$$RESOURCES_DIR/)) $$escape_expand(\\n\\t)
|
QMAKE_POST_LINK += $$VCOPY $$quote($${OUT_PWD}/$${DESTDIR}/diagrams.rcc) $$quote($$shell_path($${OUT_PWD}/$$DESTDIR/$${TARGET}.app/$$RESOURCES_DIR/)) $$escape_expand(\\n\\t)
|
||||||
|
|
||||||
format.path = $$RESOURCES_DIR/
|
format.path = $$RESOURCES_DIR/
|
||||||
format.files += $$PWD/../../../dist/macx/i-measurements.icns
|
format.files += $$PWD/../../../dist/macx/i-measurements.icns
|
||||||
format.files += $$PWD/../../../dist/macx/s-measurements.icns
|
format.files += $$PWD/../../../dist/macx/s-measurements.icns
|
||||||
|
|
||||||
QMAKE_BUNDLE_DATA += \
|
QMAKE_BUNDLE_DATA += \
|
||||||
templates \
|
templates \
|
||||||
multisize \
|
multisize \
|
||||||
libraries \
|
libraries \
|
||||||
format
|
format
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -461,7 +463,9 @@ noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
macx{
|
CONFIG(release, debug|release){
|
||||||
# run macdeployqt to include all qt libraries in packet
|
macx{
|
||||||
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
# run macdeployqt to include all qt libraries in packet
|
||||||
|
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -207,65 +207,67 @@ unix{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
CONFIG(release, debug|release){
|
||||||
|
QMAKE_RPATHDIR += @executable_path/../Frameworks
|
||||||
|
|
||||||
# Path to resources in app bundle
|
# Path to resources in app bundle
|
||||||
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
#RESOURCES_DIR = "Contents/Resources" defined in translation.pri
|
||||||
FRAMEWORKS_DIR = "Contents/Frameworks"
|
FRAMEWORKS_DIR = "Contents/Frameworks"
|
||||||
MACOS_DIR = "Contents/MacOS"
|
MACOS_DIR = "Contents/MacOS"
|
||||||
# On macx we will use app bundle. Bundle doesn't need bin directory inside.
|
# On macx we will use app bundle. Bundle doesn't need bin directory inside.
|
||||||
# See issue #166: Creating OSX Homebrew (Mac OS X package manager) formula.
|
# See issue #166: Creating OSX Homebrew (Mac OS X package manager) formula.
|
||||||
target.path = $$MACOS_DIR
|
target.path = $$MACOS_DIR
|
||||||
|
|
||||||
#languages added inside translations.pri
|
#languages added inside translations.pri
|
||||||
|
|
||||||
# Symlinks also good names for copying. Make will take origin file and copy them with using symlink name.
|
# Symlinks also good names for copying. Make will take origin file and copy them with using symlink name.
|
||||||
# For bundle this names more then enough. We don't need care much about libraries versions.
|
# For bundle this names more then enough. We don't need care much about libraries versions.
|
||||||
libraries.path = $$FRAMEWORKS_DIR
|
libraries.path = $$FRAMEWORKS_DIR
|
||||||
libraries.files += $${OUT_PWD}/../../libs/qmuparser/$${DESTDIR}/libqmuparser.2.dylib
|
libraries.files += $${OUT_PWD}/../../libs/qmuparser/$${DESTDIR}/libqmuparser.2.dylib
|
||||||
libraries.files += $${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}/libvpropertyexplorer.1.dylib
|
libraries.files += $${OUT_PWD}/../../libs/vpropertyexplorer/$${DESTDIR}/libvpropertyexplorer.1.dylib
|
||||||
|
|
||||||
tape.path = $$MACOS_DIR
|
tape.path = $$MACOS_DIR
|
||||||
tape.files += $${OUT_PWD}/../tape/$${DESTDIR}/tape.app/$$MACOS_DIR/tape
|
tape.files += $${OUT_PWD}/../tape/$${DESTDIR}/tape.app/$$MACOS_DIR/tape
|
||||||
|
|
||||||
# Utility pdftops need for saving a layout image to PS and EPS formates.
|
# Utility pdftops need for saving a layout image to PS and EPS formates.
|
||||||
xpdf.path = $$MACOS_DIR
|
xpdf.path = $$MACOS_DIR
|
||||||
xpdf.files += $${PWD}/../../../dist/macx/bin64/pdftops
|
xpdf.files += $${PWD}/../../../dist/macx/bin64/pdftops
|
||||||
|
|
||||||
# logo on macx.
|
# logo on macx.
|
||||||
ICON = ../../../dist/Valentina.icns
|
ICON = ../../../dist/Valentina.icns
|
||||||
|
|
||||||
QMAKE_INFO_PLIST = $$PWD/../../../dist/macx/valentina/Info.plist
|
QMAKE_INFO_PLIST = $$PWD/../../../dist/macx/valentina/Info.plist
|
||||||
|
|
||||||
# Copy to bundle multisize measurements files
|
# Copy to bundle multisize measurements files
|
||||||
multisize.path = $$RESOURCES_DIR/tables/multisize/
|
multisize.path = $$RESOURCES_DIR/tables/multisize/
|
||||||
multisize.files = $$INSTALL_MULTISIZE_MEASUREMENTS
|
multisize.files = $$INSTALL_MULTISIZE_MEASUREMENTS
|
||||||
|
|
||||||
# Copy to bundle templates files
|
# Copy to bundle templates files
|
||||||
templates.path = $$RESOURCES_DIR/tables/templates/
|
templates.path = $$RESOURCES_DIR/tables/templates/
|
||||||
templates.files = $$INSTALL_STANDARD_TEMPLATES
|
templates.files = $$INSTALL_STANDARD_TEMPLATES
|
||||||
|
|
||||||
# Path to label templates after installation
|
# Path to label templates after installation
|
||||||
label.path = $$RESOURCES_DIR/labels/
|
label.path = $$RESOURCES_DIR/labels/
|
||||||
label.files = $$INSTALL_LABEL_TEMPLATES
|
label.files = $$INSTALL_LABEL_TEMPLATES
|
||||||
|
|
||||||
icns_resources.path = $$RESOURCES_DIR/
|
icns_resources.path = $$RESOURCES_DIR/
|
||||||
icns_resources.files += $$PWD/../../../dist/macx/i-measurements.icns
|
icns_resources.files += $$PWD/../../../dist/macx/i-measurements.icns
|
||||||
icns_resources.files += $$PWD/../../../dist/macx/s-measurements.icns
|
icns_resources.files += $$PWD/../../../dist/macx/s-measurements.icns
|
||||||
icns_resources.files += $$PWD/../../../dist/macx/pattern.icns
|
icns_resources.files += $$PWD/../../../dist/macx/pattern.icns
|
||||||
|
|
||||||
# Copy to bundle multisize measurements files
|
# Copy to bundle multisize measurements files
|
||||||
# We cannot add none exist files to bundle through QMAKE_BUNDLE_DATA. That's why we must do this manually.
|
# We cannot add none exist files to bundle through QMAKE_BUNDLE_DATA. That's why we must do this manually.
|
||||||
QMAKE_POST_LINK += $$VCOPY $$quote($${OUT_PWD}/../tape/$${DESTDIR}/tape.app/$$RESOURCES_DIR/diagrams.rcc) $$quote($$shell_path($${OUT_PWD}/$$DESTDIR/$${TARGET}.app/$$RESOURCES_DIR/)) $$escape_expand(\\n\\t)
|
QMAKE_POST_LINK += $$VCOPY $$quote($${OUT_PWD}/../tape/$${DESTDIR}/tape.app/$$RESOURCES_DIR/diagrams.rcc) $$quote($$shell_path($${OUT_PWD}/$$DESTDIR/$${TARGET}.app/$$RESOURCES_DIR/)) $$escape_expand(\\n\\t)
|
||||||
|
|
||||||
QMAKE_BUNDLE_DATA += \
|
QMAKE_BUNDLE_DATA += \
|
||||||
templates \
|
templates \
|
||||||
multisize \
|
multisize \
|
||||||
label \
|
label \
|
||||||
libraries \
|
libraries \
|
||||||
tape \
|
tape \
|
||||||
xpdf \
|
xpdf \
|
||||||
icns_resources
|
icns_resources
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -607,7 +609,9 @@ noDebugSymbols{ # For enable run qmake with CONFIG+=noDebugSymbols
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
macx{
|
CONFIG(release, debug|release){
|
||||||
# run macdeployqt to include all qt libraries in packet
|
macx{
|
||||||
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
# run macdeployqt to include all qt libraries in packet
|
||||||
|
QMAKE_POST_LINK += $$[QT_INSTALL_BINS]/macdeployqt $${OUT_PWD}/$${DESTDIR}/$${TARGET}.app
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user