summaryrefslogtreecommitdiffstats
path: root/src/qml/configure.json
blob: 3fc1fd528bf8aad2f6e058298764b47f71ebbad2 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
{
    "module": "qml",
    "depends": [
        "core-private",
        "network-private"
    ],

    "commandline": {
        "options": {
            "qml-network": "boolean",
            "qml-debug": "boolean"
        }
    },

    "tests": {
        "cxx14_make_unique": {
            "label": "C++14 make_unique()",
            "type": "compile",
            "test": {
                "include": "memory",
                "main": [
                    "std::unique_ptr<int> ptr = std::make_unique<int>();"
                ],
                "qmake": "CONFIG += c++11"
            }
        },
        "pointer_32bit": {
            "label": "32bit pointers",
            "type": "compile",
            "test": {
                "main": "static_assert(sizeof(void *) == 4, \"fail\");"
            }
        },
        "pointer_64bit": {
            "label": "64bit pointers",
            "type": "compile",
            "test": {
                "main": "static_assert(sizeof(void *) == 8, \"fail\");"
            }
        },
        "arm_thumb": {
            "label": "THUMB mode on ARM",
            "type": "compile",
            "test": {
                "main": [
                    "#if defined(thumb2) || defined(__thumb2__)",
                    "#    define THUMB_OK",
                    "#elif (defined(__thumb) || defined(__thumb__)) && __TARGET_ARCH_THUMB-0 == 4",
                    "#    define THUMB_OK",
                    "#elif defined(__ARM_ARCH_ISA_THUMB) && __ARM_ARCH_ISA_THUMB == 2",
                    "// clang 3.5 and later will set this if the core supports the Thumb-2 ISA.",
                    "#    define THUMB_OK",
                    "#else",
                    "#    error \"fail\"",
                    "#endif"
                ]
            }
        },
        "arm_fp": {
            "label": "Sufficiently recent FPU on ARM",
            "type": "compile",
            "test": {
                "main": [
                    "// if !defined(__ARM_FP) we might be on MSVC or we might have a device",
                    "// without an FPU.",
                    "// TODO: The latter case is not supported, but the test still succeeds.",
                    "#if defined(__ARM_FP) && (__ARM_FP <= 0x04)",
                    "#    error \"fail\"",
                    "#endif"
                ]
            }
        }
    },

    "features": {
        "cxx14_make_unique": {
            "label": "C++14 make_unique",
            "condition": "features.c++14 || tests.cxx14_make_unique",
            "output": [ "privateFeature" ]
        },
        "qml-network": {
            "label": "QML network support",
            "purpose": "Provides network transparency.",
            "section": "QML",
            "condition": "features.network",
            "output": [ "publicFeature" ]
        },
        "qml-jit": {
            "label": "QML just-in-time compiler",
            "purpose": "Provides a JIT for QML and JavaScript",
            "section": "QML",
            "condition": [
                "   (arch.i386   && tests.pointer_32bit && features.sse2)
                 || (arch.x86_64 && tests.pointer_64bit && features.sse2)
                 || (arch.arm    && tests.pointer_32bit && tests.arm_fp && tests.arm_thumb
                     && (config.linux || config.ios || config.tvos || config.qnx))
                 || (arch.arm64  && tests.pointer_64bit && tests.arm_fp
                     && (config.linux || config.ios || config.tvos || config.qnx || config.integrity))"
            ],
            "output": [ "privateFeature" ],
            "autoDetect": "!config.ios && !config.tvos",
            "comment": "On arm and arm64 we need a specialization of cacheFlush() for each OS to be
                        enabeled. Therefore the config white list.
                        Also Mind that e.g. x86_32 has arch.x86_64 but 32bit pointers. Therefore
                        the checks for architecture and pointer size.
                        Finally, ios and tvos can technically use the JIT but Apple does not allow
                        it. Therefore, it's disabled by default."
        },
        "qml-debug": {
            "label": "QML debugging and profiling support",
            "purpose": "Provides infrastructure and plugins for debugging and profiling.",
            "section": "QML",
            "output": [ "publicFeature" ]
        },
        "qml-profiler": {
            "label": "Command line QML Profiler",
            "purpose": "Supports retrieving QML tracing data from an application.",
            "section": "QML",
            "condition": [
                "features.commandlineparser",
                "features.qml-debug",
                "features.qml-network && features.localserver",
                "features.xmlstreamwriter"
            ],
            "output": [ "privateFeature" ]
        },
        "qml-preview": {
            "label": "Command line QML Preview tool",
            "purpose": "Updates QML documents in your application live as you change them on disk",
            "section": "QML",
            "condition": [
                "features.commandlineparser",
                "features.filesystemwatcher",
                "features.qml-network && features.localserver",
                "features.process",
                "features.qml-debug"
            ],
            "output": [ "privateFeature" ]
        },
        "qml-devtools": {
            "label": "QML Development Tools",
            "purpose": "Provides the QmlDevtools library and various utilities.",
            "section": "QML",
            "output": [ "privateFeature" ]
        },
        "qml-sequence-object": {
            "label": "QML sequence object",
            "purpose": "Supports mapping sequence types into QML.",
            "section": "QML",
            "output": [ "privateFeature" ]
        },
        "qml-xml-http-request": {
            "label": "QML XML http request",
            "purpose": "Provides support for sending XML http requests.",
            "section": "QML",
            "condition": [
                "features.xmlstreamreader",
                "features.qml-network"
            ],
            "output": [ "privateFeature" ]
        },
        "qml-locale": {
            "label": "QML Locale",
            "purpose": "Provides support for locales in QML.",
            "section": "QML",
            "output": [ "privateFeature" ]
        },
        "qml-animation": {
            "label": "QML Animations",
            "purpose": "Provides support for animations and timers in QML.",
            "section": "QML",
            "condition": "features.animation",
            "output": [ "privateFeature" ]
        },
        "qml-worker-script": {
            "label": "QML WorkerScript",
            "purpose": "Enables the use of threads in QML.",
            "section": "QML",
            "condition": "features.thread",
            "output": [ "privateFeature" ]
        },
        "qml-itemmodel": {
            "label": "QML Item Model",
            "purpose": "Provides the item model for item views in QML",
            "section": "QML",
            "condition": "features.itemmodel",
            "output": [ "privateFeature" ]
        }
    },

    "summary": [
        {
            "section": "Qt QML",
            "entries": [
                "qml-network",
                "qml-debug",
                "qml-jit",
                "qml-sequence-object",
                "qml-xml-http-request",
                "qml-locale"
            ]
        }
    ]
}