summaryrefslogtreecommitdiffstats
path: root/src/pdf/configure/BUILD.root.gn.in
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@qt.io>2021-12-14 16:42:50 +0100
committerMichal Klocek <michal.klocek@qt.io>2022-04-04 17:29:27 +0000
commita5ecc6826225e1dde4dcd39b265c2de85372d4a6 (patch)
tree34c1450537b02b2228d2c542fc329dc7cf9a9ebf /src/pdf/configure/BUILD.root.gn.in
parente34a05ecf0b1e158130f8d4e2d6fcf2aa432cc4b (diff)
Add static builds for qtpdf
Add 3rdparty installed headers so static builds can use bundled qt libs. Fix static gn and archiver/librarian setup. Task-number: QTBUG-87154 Task-number: QTBUG-88614 Change-Id: Iad7682da92b558b500140f415acc0bc9c9a1c22e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io> (cherry picked from commit 99d77b9f1eed817cb3eae68d9e7224a01d55d656)
Diffstat (limited to 'src/pdf/configure/BUILD.root.gn.in')
-rw-r--r--src/pdf/configure/BUILD.root.gn.in22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/pdf/configure/BUILD.root.gn.in b/src/pdf/configure/BUILD.root.gn.in
index a3cd32a23..68089f8cf 100644
--- a/src/pdf/configure/BUILD.root.gn.in
+++ b/src/pdf/configure/BUILD.root.gn.in
@@ -1,5 +1,27 @@
import("//build/config/features.gni")
+config("qt_libpng_config") {
+ include_dirs = [ @GN_PNG_INCLUDES@ ]
+ defines = [ "USE_SYSTEM_LIBPNG" ]
+}
+config ("qt_libjpeg_config") {
+ include_dirs = [ @GN_JPEG_INCLUDES@ ]
+}
+config("qt_harfbuzz_config") {
+ visibility = [
+ "//third_party:freetype_harfbuzz",
+ "//third_party/freetype:freetype_source",
+ ]
+ include_dirs = [ @GN_HARFBUZZ_INCLUDES@ ]
+}
+config("qt_freetype_config") {
+ visibility = [
+ "//third_party:freetype_harfbuzz",
+ "//third_party/harfbuzz-ng:harfbuzz_source",
+ ]
+ include_dirs = [ @GN_FREETYPE_INCLUDES@ ]
+}
+
config("QtPdf_config") {
cflags = [
@GN_CFLAGS_C@,