summaryrefslogtreecommitdiffstats
path: root/src/pdf/configure.cmake
blob: ac4e4e25f90bbcc824436052aab2f5869f2b8566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

qt_feature("pdf-v8" PRIVATE
    LABEL "Support V8"
    PURPOSE "Enables javascript support."
    AUTODETECT FALSE
    CONDITION NOT IOS
)
qt_feature("pdf-xfa" PRIVATE
    LABEL "Support XFA"
    PURPOSE "Enables XFA support."
    CONDITION QT_FEATURE_pdf_v8
)
qt_feature("pdf-xfa-bmp" PRIVATE
    LABEL "Support XFA-BMP"
    PURPOSE "Enables XFA-BMP support."
    CONDITION QT_FEATURE_pdf_xfa
)
qt_feature("pdf-xfa-gif" PRIVATE
    LABEL "Support XFA-GIF"
    PURPOSE "Enables XFA-GIF support."
    CONDITION QT_FEATURE_pdf_xfa
)
qt_feature("pdf-xfa-png" PRIVATE
    LABEL "Support XFA-PNG"
    PURPOSE "Enables XFA-PNG support."
    CONDITION QT_FEATURE_pdf_xfa
)
qt_feature("pdf-xfa-tiff" PRIVATE
    LABEL "Support XFA-TIFF"
    PURPOSE "Enables XFA-TIFF support."
    CONDITION QT_FEATURE_pdf_xfa
)
qt_feature("pdf-bitcode" PRIVATE
    LABEL "Bitcode support"
    PURPOSE "Enables bitcode"
    CONDITION IOS
)
qt_feature("pdf-static-runtime" PRIVATE
    LABEL "Use static runtime"
    PURPOSE "Enables static runtime"
    CONDITION WIN32 AND QT_FEATURE_static AND QT_FEATURE_static_runtime
)
qt_configure_add_summary_section(NAME "Qt PDF")
qt_configure_add_summary_entry(ARGS "pdf-v8")
qt_configure_add_summary_entry(ARGS "pdf-xfa")
qt_configure_add_summary_entry(ARGS "pdf-xfa-bmp")
qt_configure_add_summary_entry(ARGS "pdf-xfa-gif")
qt_configure_add_summary_entry(ARGS "pdf-xfa-png")
qt_configure_add_summary_entry(ARGS "pdf-xfa-tiff")
qt_configure_add_summary_entry(ARGS "pdf-bitcode")
qt_configure_add_summary_entry(ARGS "pdf-static-runtime")
qt_configure_end_summary_section()