From 06e1f5b92e4126dda4f549f9ad78455a223d9af2 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 25 Aug 2015 14:43:53 +0300 Subject: qtwebengine: fix problem with recursive qmake call On RaspberryPi, the EGL include paths were not included in the generated ninja build files, because the pro files were run in wrong order. Fix the order, but remove compiler overrides, as they would break the build again. Signed-off-by: Samuli Piippo Signed-off-by: Martin Jansa --- .../0004-Generate-usable-qmake_extras.gypi.patch | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 recipes-qt/qt5/qtwebengine/0004-Generate-usable-qmake_extras.gypi.patch (limited to 'recipes-qt/qt5/qtwebengine/0004-Generate-usable-qmake_extras.gypi.patch') diff --git a/recipes-qt/qt5/qtwebengine/0004-Generate-usable-qmake_extras.gypi.patch b/recipes-qt/qt5/qtwebengine/0004-Generate-usable-qmake_extras.gypi.patch new file mode 100644 index 00000000..89f56e05 --- /dev/null +++ b/recipes-qt/qt5/qtwebengine/0004-Generate-usable-qmake_extras.gypi.patch @@ -0,0 +1,71 @@ +From 9d2fafdd9a15adf51d8383bdd545d73e76ad0428 Mon Sep 17 00:00:00 2001 +From: Samuli Piippo +Date: Mon, 11 May 2015 13:47:06 +0300 +Subject: [PATCH] Generate usable qmake_extras.gypi + +Running qmake recursively does not take .depends into account, so +the SUBDIRS need to be in correct order so that qmake_extras.gypi +is used for the ninja files. Do no try to write compiler tools as +it will break the build. + +Task-number: QTBUG-45706 +Upstream-Status: Pending +--- + src/core/core.pro | 7 ++++--- + src/core/gyp_configure_host.pro | 3 --- + src/core/gyp_configure_target.pro | 3 --- + 3 files changed, 4 insertions(+), 9 deletions(-) + +diff --git a/src/core/core.pro b/src/core/core.pro +index cf00f39..747b711 100644 +--- a/src/core/core.pro ++++ b/src/core/core.pro +@@ -12,9 +12,7 @@ gyp_run.depends = core_gyp_generator + core_module.file = core_module.pro + core_module.depends = gyp_run + +-SUBDIRS += core_gyp_generator \ +- gyp_run \ +- core_module ++SUBDIRS += core_gyp_generator + + !win32 { + # gyp_configure_host.pro and gyp_configure_target.pro are phony pro files that +@@ -28,3 +26,6 @@ SUBDIRS += core_gyp_generator \ + gyp_run.depends += gyp_configure_host gyp_configure_target + SUBDIRS += gyp_configure_host gyp_configure_target + } ++ ++SUBDIRS += gyp_run \ ++ core_module +diff --git a/src/core/gyp_configure_host.pro b/src/core/gyp_configure_host.pro +index 3eb6738..d6820c4 100644 +--- a/src/core/gyp_configure_host.pro ++++ b/src/core/gyp_configure_host.pro +@@ -6,9 +6,6 @@ option(host_build) + + GYPI_CONTENTS = "{" \ + " 'make_global_settings': [" \ +- " ['CC.host', '$$which($$QMAKE_CC)']," \ +- " ['CXX.host', '$$which($$QMAKE_CXX)']," \ +- " ['LD.host', '$$which($$QMAKE_LINK)']," + + GYPI_FILE = $$absolute_path('qmake_extras.gypi') + !build_pass { +diff --git a/src/core/gyp_configure_target.pro b/src/core/gyp_configure_target.pro +index 4d52044..f02bfa0 100644 +--- a/src/core/gyp_configure_target.pro ++++ b/src/core/gyp_configure_target.pro +@@ -3,9 +3,6 @@ TEMPLATE = aux + + TOOLCHAIN_INCLUDES = $${QMAKE_INCDIR_EGL} $${INCLUDEPATH} $${QMAKE_INCDIR} + +-GYPI_CONTENTS += " ['CC', '$$which($$QMAKE_CC)']," \ +- " ['CXX', '$$which($$QMAKE_CXX)']," \ +- " ['LD', '$$which($$QMAKE_LINK)']," + GYPI_CONTENTS += " ]," \ + " 'target_defaults': {" \ + " 'target_conditions': [" \ +-- +1.9.1 + -- cgit v1.2.3-54-g00ecf