improved project config
This commit is contained in:
parent
07a4e65730
commit
c394fbd51c
22
general.pri
22
general.pri
|
@ -13,21 +13,14 @@ unix {
|
||||||
}
|
}
|
||||||
# prefix
|
# prefix
|
||||||
targetprefix = $$(TARGET_PREFIX)
|
targetprefix = $$(TARGET_PREFIX)
|
||||||
equals(targetprefix, "") {
|
|
||||||
win32 {
|
|
||||||
targetprefix = ../../..
|
|
||||||
} else {
|
|
||||||
targetprefix = ../..
|
|
||||||
}
|
|
||||||
}
|
|
||||||
message("Using target prefix \"$${targetprefix}\".")
|
message("Using target prefix \"$${targetprefix}\".")
|
||||||
# print install root
|
# print install root
|
||||||
message("Using install root \"$$(INSTALL_ROOT)\".")
|
message("Using install root \"$$(INSTALL_ROOT)\".")
|
||||||
# target
|
# target
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
TARGET = $$targetprefix/$${projectname}d
|
TARGET = $${targetprefix}$${projectname}d
|
||||||
} else {
|
} else {
|
||||||
TARGET = $$targetprefix/$$projectname
|
TARGET = $${targetprefix}$${projectname}
|
||||||
}
|
}
|
||||||
# variables to check target architecture
|
# variables to check target architecture
|
||||||
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
win32-g++:QMAKE_TARGET.arch = $$QMAKE_HOST.arch
|
||||||
|
@ -79,3 +72,14 @@ guiqtwidgets {
|
||||||
DEFINES += GUI_QTWIDGETS
|
DEFINES += GUI_QTWIDGETS
|
||||||
DEFINES += MODEL_UNDO_SUPPORT
|
DEFINES += MODEL_UNDO_SUPPORT
|
||||||
}
|
}
|
||||||
|
# configuration for cross compliation with mingw-w64
|
||||||
|
mingw-w64-manualstrip-dll {
|
||||||
|
QMAKE_POST_LINK=$${CROSS_COMPILE}strip --strip-unneeded ./release/$(TARGET); \
|
||||||
|
$${CROSS_COMPILE}strip --strip-unneeded ./release/lib$(TARGET).a
|
||||||
|
}
|
||||||
|
mingw-w64-manualstrip-exe {
|
||||||
|
QMAKE_POST_LINK=$${CROSS_COMPILE}strip --strip-unneeded ./release/$(TARGET)
|
||||||
|
}
|
||||||
|
mingw-w64-noversion {
|
||||||
|
VERSION = ""
|
||||||
|
}
|
||||||
|
|
|
@ -109,12 +109,12 @@ FORMS += gui/adddownloaddialog.ui \
|
||||||
RESOURCES += resources/icons.qrc \
|
RESOURCES += resources/icons.qrc \
|
||||||
resources/json.qrc
|
resources/json.qrc
|
||||||
|
|
||||||
|
win32:include(windowsicon.pri)
|
||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
README.md \
|
README.md \
|
||||||
LICENSE
|
LICENSE
|
||||||
|
|
||||||
#win32:RC_FILE += windowsicon.rc
|
|
||||||
|
|
||||||
CONFIG(debug, debug|release) {
|
CONFIG(debug, debug|release) {
|
||||||
LIBS += -L../../ -lc++utilitiesd
|
LIBS += -L../../ -lc++utilitiesd
|
||||||
!no-gui {
|
!no-gui {
|
||||||
|
@ -132,15 +132,14 @@ INCLUDEPATH += ../
|
||||||
# installs
|
# installs
|
||||||
target.path = $$(INSTALL_ROOT)/bin
|
target.path = $$(INSTALL_ROOT)/bin
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
icon.path = $$(INSTALL_ROOT)/share/icons/hicolor/scalable/apps/
|
!mingw-w64-install {
|
||||||
icon.files = $${PWD}/resources/icons/hicolor/scalable/apps/$${projectname}.svg
|
icon.path = $$(INSTALL_ROOT)/share/icons/hicolor/scalable/apps/
|
||||||
INSTALLS += icon
|
icon.files = $${PWD}/resources/icons/hicolor/scalable/apps/$${projectname}.svg
|
||||||
menu.path = $$(INSTALL_ROOT)/share/applications/
|
INSTALLS += icon
|
||||||
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
|
menu.path = $$(INSTALL_ROOT)/share/applications/
|
||||||
INSTALLS += menu
|
menu.files = $${PWD}/resources/desktop/applications/$${projectname}.desktop
|
||||||
translations.path = $$(INSTALL_ROOT)/share/$${projectname}/translations/
|
INSTALLS += menu
|
||||||
translations.files = $${PWD}/translations/*.qm
|
}
|
||||||
INSTALLS += translations
|
|
||||||
json.path = $$(INSTALL_ROOT)/share/$${projectname}/json/
|
json.path = $$(INSTALL_ROOT)/share/$${projectname}/json/
|
||||||
json.files = $${PWD}/resources/json/groovesharkauthenticationinfo.json
|
json.files = $${PWD}/resources/json/groovesharkauthenticationinfo.json
|
||||||
INSTALLS += json
|
INSTALLS += json
|
||||||
|
|
Loading…
Reference in New Issue