diff options
Diffstat (limited to 'src/pdf')
-rw-r--r-- | src/pdf/config/common.pri | 20 | ||||
-rw-r--r-- | src/pdf/pdfcore.pro | 6 |
2 files changed, 26 insertions, 0 deletions
diff --git a/src/pdf/config/common.pri b/src/pdf/config/common.pri index dd5bfa293..66021c635 100644 --- a/src/pdf/config/common.pri +++ b/src/pdf/config/common.pri @@ -1,6 +1,26 @@ include($$QTWEBENGINE_OUT_ROOT/src/pdf/qtpdf-config.pri) QT_FOR_CONFIG += pdf-private +qtConfig(webengine-qt-png) { + gn_args += pdfium_use_qt_libpng=true + gn_args += "pdfium_qt_libpng_includes=\"$$system_path($$QMAKE_INCDIR_LIBPNG)\"" +} + +qtConfig(webengine-qt-jpeg) { + gn_args += use_qt_libjpeg=true + gn_args += "qt_libjpeg_includes=\"$$system_path($$QMAKE_INCDIR_LIBJPEG)\"" +} + +qtConfig(webengine-qt-harfbuzz) { + gn_args += use_qt_harfbuzz=true + gn_args += "qt_harfbuzz_includes=\"$$system_path($$QMAKE_INCDIR_HARFBUZZ)\"" +} + +qtConfig(webengine-qt-freetype) { + gn_args += use_qt_freetype=true + gn_args += "qt_freetype_includes=\"$$system_path($$QMAKE_INCDIR_FREETYPE)\"" +} + qtConfig(pdf-v8) { gn_args += pdf_enable_v8=true } else { diff --git a/src/pdf/pdfcore.pro b/src/pdf/pdfcore.pro index 2dfe39dc0..5ce7ed871 100644 --- a/src/pdf/pdfcore.pro +++ b/src/pdf/pdfcore.pro @@ -77,4 +77,10 @@ HEADERS += \ api/qpdfselection.h \ api/qpdfselection_p.h \ + +qtConfig(webengine-qt-freetype): QMAKE_USE_PRIVATE+= freetype +qtConfig(webengine-qt-png): QMAKE_USE_PRIVATE+= libpng +qtConfig(webengine-qt-harfbuzz): QMAKE_USE_PRIVATE+= harfbuzz +qtConfig(webengine-qt-jpeg): QMAKE_USE_PRIVATE+= libjpeg + load(qt_module) |