4
0
mirror of https://github.com/QuasarApp/installer-framework.git synced 2025-05-04 17:29:33 +00:00

introduce no_app_bundle.pri

- it tries to copy the needed qt_menu.nib dir

Change-Id: I04fe564f62e16847a417e47c9a0719c043c1f027
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
This commit is contained in:
Tim Jenssen 2013-05-23 22:42:16 +02:00
parent 5e1f41cd07
commit d1bb751a38
14 changed files with 51 additions and 8 deletions
installerfw.prino_app_bundle.pri
src/sdk
tests
auto
downloadspeed
environmentvariable
fileengineclient
fileengineserver
tools
archivegen
binarycreator
extractbinarydata
getrepositorycontent
repocompare
repogen

@ -102,7 +102,6 @@ DEFINES += QT_NO_CAST_FROM_ASCII "_GIT_SHA1_=$$GIT_SHA1" IFW_VERSION=$$IFW_VERSI
static {
LIBS += -l7z
win32-g++*: LIBS += -lmpr -luuid
macx:equals(TEMPLATE, app):CONFIG -= app_bundle
win32:exists($$IFW_LIB_PATH/installer.lib):POST_TARGETDEPS += $$IFW_LIB_PATH/installer.lib
unix:exists($$IFW_LIB_PATH/libinstaller.a):POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a

28
no_app_bundle.pri Normal file

@ -0,0 +1,28 @@
!isEmpty(NO_APP_BUNDLE_PRI_INCLUDED) {
error("no_app_bundle.pri already included")
}
NO_APP_BUNDLE_PRI_INCLUDED = 1
equals(TEMPLATE, app):CONFIG -= app_bundle
isEqual(QT_MAJOR_VERSION, 4):static:contains(QT, gui) {
isEmpty(DESTDIR) {
MY_DEST_DIR=$$OUT_PWD
} else {
MY_DEST_DIR=$$DESTDIR
}
!exists($$(MY_DEST_DIR)/qt_menu.nib) {
# try to get the qt_menu.nib path from the environment variable
isEmpty(QT_MENU_NIB_DIR): QT_MENU_NIB_DIR = $$(QT_MENU_NIB_DIR)
# everything which has not the IFW_APP_PATH as target can try to copy it from there
exists($$IFW_APP_PATH/qt_menu.nib):QT_MENU_NIB_DIR=$$IFW_APP_PATH/qt_menu.nib
isEmpty(QT_MENU_NIB_DIR) {
warning(Please call qmake with QT_MENU_NIB_DIR=<YOUR_QT_SRC_DIR>/src/gui/mac/qt_menu.nib)
} else {
system($$QMAKE_COPY -r $$quote($$QT_MENU_NIB_DIR) $$quote($$MY_DEST_DIR))
}
}
}

@ -96,3 +96,5 @@ win32 {
QMAKE_MANIFEST = installerbase.manifest
}
}
macx:include(../../no_app_bundle.pri)

@ -4,7 +4,6 @@ include(../../installerfw.pri)
isEmpty(TEMPLATE):TEMPLATE=app
QT += testlib
CONFIG += qt warn_on console depend_includepath testcase
CONFIG -= app_bundle
DEFINES -= QT_NO_CAST_FROM_ASCII
# prefix test binary with tst_
@ -16,3 +15,4 @@ DEFINES -= QT_NO_CAST_FROM_ASCII
# # the below gets added to later by testcase.prf
# check.commands = cd . & set PATH=$$lib;%PATH%& cmd /c
#}
macx:include(../../no_app_bundle.pri)

@ -8,7 +8,9 @@ QT -= gui
QT += network
CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
SOURCES += main.cpp
macx:include(../../no_app_bundle.pri)

@ -8,8 +8,9 @@ QT -= gui
QT += testlib
CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
HEADERS = environmentvariabletest.h
SOURCES = environmentvariabletest.cpp
macx:include(../../no_app_bundle.pri)

@ -8,7 +8,8 @@ QT -= gui
QT += network
CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
SOURCES += fileengineclient.cpp
macx:include(../../no_app_bundle.pri)

@ -7,7 +7,8 @@ include(../../installerfw.pri)
QT -= gui
CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
SOURCES += fileengineserver.cpp
macx:include(../../no_app_bundle.pri)

@ -13,3 +13,5 @@ DESTDIR = $$IFW_APP_PATH
SOURCES += archive.cpp \
../common/repositorygen.cpp
HEADERS += ../common/repositorygen.h
macx:include(../../no_app_bundle.pri)

@ -16,3 +16,5 @@ SOURCES = binarycreator.cpp \
../common/repositorygen.cpp
HEADERS = rcc/rcc.h
RESOURCES += binarycreator.qrc
macx:include(../../no_app_bundle.pri)

@ -8,7 +8,8 @@ QT -= gui
LIBS += -linstaller -l7z
CONFIG += console
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
SOURCES += main.cpp
macx:include(../../no_app_bundle.pri)

@ -20,3 +20,4 @@ HEADERS += \
downloader.h \
domnodedebugstreamoperator.h
macx:include(../../no_app_bundle.pri)

@ -5,7 +5,6 @@ TARGET = repocompare
include(../../installerfw.pri)
QT += network
CONFIG -= app_bundle
DESTDIR = $$IFW_APP_PATH
SOURCES += main.cpp\
@ -16,3 +15,5 @@ HEADERS += mainwindow.h \
repositorymanager.h
FORMS += mainwindow.ui
macx:include(../../no_app_bundle.pri)

@ -13,3 +13,5 @@ DESTDIR = $$IFW_APP_PATH
SOURCES += repogen.cpp \
../common/repositorygen.cpp
HEADERS += ../common/repositorygen.h
macx:include(../../no_app_bundle.pri)