diff options
author | Michal Klocek <michal.klocek@qt.io> | 2021-10-13 07:56:38 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2021-12-03 22:08:05 +0200 |
commit | a49e0b2caafd8aaa09fb586674909b7db462231e (patch) | |
tree | d3f6e46c55af944788f9bdfa7b3dc7527438ac05 | |
parent | 56ba5c9789700433b469ee9a3057eaeabad64d54 (diff) |
Add bitcode support for qtpdf on ios
Adds -fembed-bitcode-marker for debug or -fembed-bitcode
in case of release.
Fixes: QTBUG-94368
Change-Id: I65031a545517799245e8d08d79e78141d26e9c58
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r-- | src/pdf/config/common.pri | 3 | ||||
-rw-r--r-- | src/pdf/configure.json | 11 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/pdf/config/common.pri b/src/pdf/config/common.pri index f688caded..b148e55fa 100644 --- a/src/pdf/config/common.pri +++ b/src/pdf/config/common.pri @@ -76,3 +76,6 @@ qtConfig(pdf-xfa-tiff) { } else { gn_args += pdf_enable_xfa_tiff=false } +qtConfig(pdf-bitcode) { + gn_args += enable_ios_bitcode=true +} diff --git a/src/pdf/configure.json b/src/pdf/configure.json index 069893660..baea3520d 100644 --- a/src/pdf/configure.json +++ b/src/pdf/configure.json @@ -44,7 +44,13 @@ "purpose": "Enables XFA-TIFF support.", "condition": "features.pdf-xfa", "output": ["privateFeature" ] - } + }, + "pdf-bitcode": { + "label": "Bitcode support", + "purpose": "Enables bitcode", + "condition": "config.ios", + "output": ["privateFeature"] + } }, "report": [ ], @@ -57,7 +63,8 @@ "pdf-xfa-bmp", "pdf-xfa-gif", "pdf-xfa-png", - "pdf-xfa-tiff" + "pdf-xfa-tiff", + "pdf-bitcode" ] } ] |