summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2022-05-09 10:32:24 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2022-05-09 11:17:24 +0000
commit357dcbf7d9510b5282a18e8211e2494f353b4e5e (patch)
treec27d1ba2853306d92f42c641becb009779199924
parent3443c0d6144b5ad2965d1e9a712bc15169d9f4ee (diff)
downloadqtwebengine-chromium-357dcbf7d9510b5282a18e8211e2494f353b4e5e.tar.gz
Find fontconfig using pkg-config
We already verify that it can be found like that during configure Pick-to: 94-based 90-based Task-number: QTBUG-61158 Change-Id: I569590e96a490c4ed6e6dc560fbd110d86d77956 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--chromium/components/services/font/BUILD.gn1
-rw-r--r--chromium/third_party/fontconfig/BUILD.gn5
2 files changed, 4 insertions, 2 deletions
diff --git a/chromium/components/services/font/BUILD.gn b/chromium/components/services/font/BUILD.gn
index b065131e035..f3e544ed29f 100644
--- a/chromium/components/services/font/BUILD.gn
+++ b/chromium/components/services/font/BUILD.gn
@@ -42,6 +42,7 @@ if ((is_linux || is_chromeos) && enable_plugins) {
"//base:base",
"//ppapi/buildflags:buildflags",
"//ppapi/c",
+ "//third_party/fontconfig",
]
}
}
diff --git a/chromium/third_party/fontconfig/BUILD.gn b/chromium/third_party/fontconfig/BUILD.gn
index 1bee7acb6b9..4cc32d62774 100644
--- a/chromium/third_party/fontconfig/BUILD.gn
+++ b/chromium/third_party/fontconfig/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/sanitizers/sanitizers.gni")
+import("//build/config/linux/pkg_config.gni")
import("//third_party/fontconfig/fontconfig.gni")
assert(is_linux || is_chromeos)
@@ -110,8 +111,8 @@ if (use_bundled_fontconfig) {
}
}
} else {
- config("fontconfig_config") {
- libs = [ "fontconfig" ]
+ pkg_config("fontconfig_config") {
+ packages = [ "fontconfig" ]
}
group("fontconfig") {