From a49e0b2caafd8aaa09fb586674909b7db462231e Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Wed, 13 Oct 2021 07:56:38 +0200 Subject: Add bitcode support for qtpdf on ios MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds -fembed-bitcode-marker for debug or -fembed-bitcode in case of release. Fixes: QTBUG-94368 Change-Id: I65031a545517799245e8d08d79e78141d26e9c58 Reviewed-by: Michael BrĂ¼ning --- src/pdf/config/common.pri | 3 +++ 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" ] } ] -- cgit v1.2.3