summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDimitrios Apostolou <jimis@qt.io>2020-07-15 13:31:38 +0200
committerDimitrios Apostolou <jimis@qt.io>2020-09-16 20:18:26 +0200
commitbf075da8004718e6a7e8d3870b912e89cea8d08c (patch)
tree921cebddc67b1f9b2550dc2a6f0b3fd75d9cad53 /src
parentb9c85d6b0e274bf0a6287cd56d9e3d7376b0d004 (diff)
Include harfbuzz header files without harfbuzz/ parent directory
This is in accordance to the examples from harfbuzz docs: https://harfbuzz.github.io/ch03s03.html The fix is because `pkg-config --cflags harfbuzz` returns the subdirectory as include path, for example: -I /usr/local/include/harfbuzz and this caused the system-harfbuzz not to be found when /usr/local/include was not included by default (recent change on macOS) and the code was doing #include <harfbuzz/hb.h>. Fixes: QTBUG-85568 Change-Id: I12a34638e8ad5e3085768828457f0bfa1a2c68ad Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt2
-rw-r--r--src/3rdparty/harfbuzz-ng/CMakeLists.txt2
-rw-r--r--src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro2
-rw-r--r--src/gui/configure.json2
-rw-r--r--src/gui/text/qfontengine.cpp2
-rw-r--r--src/gui/text/qharfbuzzng_p.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
index f8d1a77a75..b178d205d5 100644
--- a/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
+++ b/src/3rdparty/harfbuzz-ng/.prev_CMakeLists.txt
@@ -59,7 +59,7 @@ qt_add_3rdparty_library(BundledHarfbuzz
INCLUDE_DIRECTORIES
.core.includes
PUBLIC_INCLUDE_DIRECTORIES
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/harfbuzz>
)
qt_disable_warnings(BundledHarfbuzz)
qt_set_symbol_visibility_hidden(BundledHarfbuzz)
diff --git a/src/3rdparty/harfbuzz-ng/CMakeLists.txt b/src/3rdparty/harfbuzz-ng/CMakeLists.txt
index a76cc629c8..2f895ab4d3 100644
--- a/src/3rdparty/harfbuzz-ng/CMakeLists.txt
+++ b/src/3rdparty/harfbuzz-ng/CMakeLists.txt
@@ -61,7 +61,7 @@ qt_add_3rdparty_library(BundledHarfbuzz
$<TARGET_PROPERTY:Core,INCLUDE_DIRECTORIES> # special case
"${CMAKE_CURRENT_SOURCE_DIR}" # special case
PUBLIC_INCLUDE_DIRECTORIES
- $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/harfbuzz>
)
qt_disable_warnings(BundledHarfbuzz)
qt_set_symbol_visibility_hidden(BundledHarfbuzz)
diff --git a/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro b/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro
index 1c6eb992f0..752d349ebc 100644
--- a/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro
+++ b/src/3rdparty/harfbuzz-ng/harfbuzz-ng.pro
@@ -5,7 +5,7 @@ CONFIG += \
hide_symbols \
exceptions_off rtti_off warn_off
-MODULE_INCLUDEPATH += $$PWD/include
+MODULE_INCLUDEPATH += $$PWD/include/harfbuzz
load(qt_helper_lib)
diff --git a/src/gui/configure.json b/src/gui/configure.json
index 80df53edd1..d5816c5968 100644
--- a/src/gui/configure.json
+++ b/src/gui/configure.json
@@ -236,7 +236,7 @@
"hb_buffer_destroy(buffer);"
]
},
- "headers": "harfbuzz/hb.h",
+ "headers": "hb.h",
"sources": [
"-lharfbuzz"
]
diff --git a/src/gui/text/qfontengine.cpp b/src/gui/text/qfontengine.cpp
index 819b2d14f8..07b19d4d19 100644
--- a/src/gui/text/qfontengine.cpp
+++ b/src/gui/text/qfontengine.cpp
@@ -55,7 +55,7 @@
#if QT_CONFIG(harfbuzz)
# include "qharfbuzzng_p.h"
-# include <harfbuzz/hb-ot.h>
+# include <hb-ot.h>
#endif
#include <algorithm>
diff --git a/src/gui/text/qharfbuzzng_p.h b/src/gui/text/qharfbuzzng_p.h
index 4fb7e0aef7..a7cd84fedc 100644
--- a/src/gui/text/qharfbuzzng_p.h
+++ b/src/gui/text/qharfbuzzng_p.h
@@ -59,7 +59,7 @@ QT_REQUIRE_CONFIG(harfbuzz);
#include <QtCore/qchar.h>
#if defined(QT_BUILD_GUI_LIB)
-# include <harfbuzz/hb.h>
+# include <hb.h>
#else
// a minimal set of HB types required for Qt libs other than Gui