diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-10-13 16:37:12 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2021-12-06 14:05:48 +0200 |
commit | cf53bf7fa434c78d902b78378e55b4c38c095bba (patch) | |
tree | 88fb5892dc6135302d5129348700da94948018e6 | |
parent | a49e0b2caafd8aaa09fb586674909b7db462231e (diff) |
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 <allan.jensen@qt.io>
-rw-r--r-- | src/pdf/config/common.pri | 3 | ||||
-rw-r--r-- | src/pdf/configure.json | 9 |
2 files changed, 11 insertions, 1 deletions
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" ] } ] |