From cf53bf7fa434c78d902b78378e55b4c38c095bba Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 13 Oct 2021 16:37:12 +0200 Subject: Handle qtpdf compilation with static runtime Add feature to enable compilation with static runtime. Fixes: QTBUG-94046 Change-Id: I6e150cfaad020dfd942c45111139556b7e50dce5 Reviewed-by: Allan Sandfeld Jensen --- src/pdf/config/common.pri | 3 +++ src/pdf/configure.json | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/pdf/config/common.pri b/src/pdf/config/common.pri index b148e55fa..c97d8036a 100644 --- a/src/pdf/config/common.pri +++ b/src/pdf/config/common.pri @@ -79,3 +79,6 @@ qtConfig(pdf-xfa-tiff) { qtConfig(pdf-bitcode) { gn_args += enable_ios_bitcode=true } +qtConfig(pdf-static-runtime) { + gn_args += qt_uses_static_runtime=true +} diff --git a/src/pdf/configure.json b/src/pdf/configure.json index baea3520d..b1f872982 100644 --- a/src/pdf/configure.json +++ b/src/pdf/configure.json @@ -50,6 +50,12 @@ "purpose": "Enables bitcode", "condition": "config.ios", "output": ["privateFeature"] + }, + "pdf-static-runtime": { + "label": "Use static runtime", + "purpose": "Enables static runtime", + "condition": "config.static && config.static_runtime", + "output": ["privateFeature"] } }, "report": [ @@ -64,7 +70,8 @@ "pdf-xfa-gif", "pdf-xfa-png", "pdf-xfa-tiff", - "pdf-bitcode" + "pdf-bitcode", + "pdf-static-runtime" ] } ] -- cgit v1.2.3