mirror of
https://github.com/QuasarApp/installer-framework.git
synced 2025-05-06 18:19: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:
parent
5e1f41cd07
commit
d1bb751a38
@ -102,7 +102,6 @@ DEFINES += QT_NO_CAST_FROM_ASCII "_GIT_SHA1_=$$GIT_SHA1" IFW_VERSION=$$IFW_VERSI
|
|||||||
static {
|
static {
|
||||||
LIBS += -l7z
|
LIBS += -l7z
|
||||||
win32-g++*: LIBS += -lmpr -luuid
|
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
|
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
|
unix:exists($$IFW_LIB_PATH/libinstaller.a):POST_TARGETDEPS += $$IFW_LIB_PATH/libinstaller.a
|
||||||
|
28
no_app_bundle.pri
Normal file
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
|
QMAKE_MANIFEST = installerbase.manifest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -4,7 +4,6 @@ include(../../installerfw.pri)
|
|||||||
isEmpty(TEMPLATE):TEMPLATE=app
|
isEmpty(TEMPLATE):TEMPLATE=app
|
||||||
QT += testlib
|
QT += testlib
|
||||||
CONFIG += qt warn_on console depend_includepath testcase
|
CONFIG += qt warn_on console depend_includepath testcase
|
||||||
CONFIG -= app_bundle
|
|
||||||
|
|
||||||
DEFINES -= QT_NO_CAST_FROM_ASCII
|
DEFINES -= QT_NO_CAST_FROM_ASCII
|
||||||
# prefix test binary with tst_
|
# prefix test binary with tst_
|
||||||
@ -16,3 +15,4 @@ DEFINES -= QT_NO_CAST_FROM_ASCII
|
|||||||
# # the below gets added to later by testcase.prf
|
# # the below gets added to later by testcase.prf
|
||||||
# check.commands = cd . & set PATH=$$lib;%PATH%& cmd /c
|
# check.commands = cd . & set PATH=$$lib;%PATH%& cmd /c
|
||||||
#}
|
#}
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -8,7 +8,9 @@ QT -= gui
|
|||||||
QT += network
|
QT += network
|
||||||
|
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -8,8 +8,9 @@ QT -= gui
|
|||||||
QT += testlib
|
QT += testlib
|
||||||
|
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
HEADERS = environmentvariabletest.h
|
HEADERS = environmentvariabletest.h
|
||||||
SOURCES = environmentvariabletest.cpp
|
SOURCES = environmentvariabletest.cpp
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -8,7 +8,8 @@ QT -= gui
|
|||||||
QT += network
|
QT += network
|
||||||
|
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
SOURCES += fileengineclient.cpp
|
SOURCES += fileengineclient.cpp
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -7,7 +7,8 @@ include(../../installerfw.pri)
|
|||||||
QT -= gui
|
QT -= gui
|
||||||
|
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
SOURCES += fileengineserver.cpp
|
SOURCES += fileengineserver.cpp
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -13,3 +13,5 @@ DESTDIR = $$IFW_APP_PATH
|
|||||||
SOURCES += archive.cpp \
|
SOURCES += archive.cpp \
|
||||||
../common/repositorygen.cpp
|
../common/repositorygen.cpp
|
||||||
HEADERS += ../common/repositorygen.h
|
HEADERS += ../common/repositorygen.h
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -16,3 +16,5 @@ SOURCES = binarycreator.cpp \
|
|||||||
../common/repositorygen.cpp
|
../common/repositorygen.cpp
|
||||||
HEADERS = rcc/rcc.h
|
HEADERS = rcc/rcc.h
|
||||||
RESOURCES += binarycreator.qrc
|
RESOURCES += binarycreator.qrc
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -8,7 +8,8 @@ QT -= gui
|
|||||||
LIBS += -linstaller -l7z
|
LIBS += -linstaller -l7z
|
||||||
|
|
||||||
CONFIG += console
|
CONFIG += console
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
SOURCES += main.cpp
|
SOURCES += main.cpp
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -20,3 +20,4 @@ HEADERS += \
|
|||||||
downloader.h \
|
downloader.h \
|
||||||
domnodedebugstreamoperator.h
|
domnodedebugstreamoperator.h
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -5,7 +5,6 @@ TARGET = repocompare
|
|||||||
include(../../installerfw.pri)
|
include(../../installerfw.pri)
|
||||||
|
|
||||||
QT += network
|
QT += network
|
||||||
CONFIG -= app_bundle
|
|
||||||
DESTDIR = $$IFW_APP_PATH
|
DESTDIR = $$IFW_APP_PATH
|
||||||
|
|
||||||
SOURCES += main.cpp\
|
SOURCES += main.cpp\
|
||||||
@ -16,3 +15,5 @@ HEADERS += mainwindow.h \
|
|||||||
repositorymanager.h
|
repositorymanager.h
|
||||||
|
|
||||||
FORMS += mainwindow.ui
|
FORMS += mainwindow.ui
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
@ -13,3 +13,5 @@ DESTDIR = $$IFW_APP_PATH
|
|||||||
SOURCES += repogen.cpp \
|
SOURCES += repogen.cpp \
|
||||||
../common/repositorygen.cpp
|
../common/repositorygen.cpp
|
||||||
HEADERS += ../common/repositorygen.h
|
HEADERS += ../common/repositorygen.h
|
||||||
|
|
||||||
|
macx:include(../../no_app_bundle.pri)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user