From ceff67e0bab4d34c5b791d1f1b1d43c7a4e44d84 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 2 Dec 2016 13:03:53 +0100 Subject: Fix font load error messages inside non-app-bundle tests Some fonts were failing to load in tests because macOS does not consider some font paths when an application is built without an Info.plist file (as is the case for a non-bundle application). It is possible though to embed a plist file into the executable by passing the path to the file as a linker argument. This change generates an Info.plist for each test, and embeds it into the final executable, thus fixing the font problems. Task-number: QTBUG-57354 Change-Id: I4c3c29442b9d308ee6a327645054a67c4b008ef8 Reviewed-by: Jake Petroules --- tests/auto/quick/tests.pri | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auto/quick') diff --git a/tests/auto/quick/tests.pri b/tests/auto/quick/tests.pri index efe9ff9d0..e00537b9e 100644 --- a/tests/auto/quick/tests.pri +++ b/tests/auto/quick/tests.pri @@ -13,11 +13,11 @@ INCLUDEPATH += \ QT += testlib network quick webengine -macx: CONFIG -= app_bundle - # This define is used by some tests to look up resources in the source tree DEFINES += TESTS_SOURCE_DIR=\\\"$$PWD/\\\" isQMLTestSupportApiEnabled() { DEFINES += ENABLE_QML_TESTSUPPORT_API } + +include(../embed_info_plist.pri) -- cgit v1.2.3