diff options
Diffstat (limited to 'configure.json')
-rw-r--r-- | configure.json | 46 |
1 files changed, 43 insertions, 3 deletions
diff --git a/configure.json b/configure.json index c69c2ac0f8..f8660e6d7f 100644 --- a/configure.json +++ b/configure.json @@ -58,6 +58,7 @@ "accessibility": "boolean", "android-style-assets": "boolean", + "appstore-compliant": "boolean", "avx": "boolean", "avx2": "boolean", "avx512": { "type": "boolean", "name": "avx512f" }, @@ -92,6 +93,7 @@ "mp": { "type": "boolean", "name": "msvc_mp" }, "nomake": { "type": "addString", "values": [ "examples", "tests", "tools" ] }, "opensource": { "type": "void", "name": "commercial", "value": "no" }, + "optimize-debug": { "type": "boolean", "name": "optimize_debug" }, "optimized-qmake": { "type": "boolean", "name": "release_tools" }, "optimized-tools": { "type": "boolean", "name": "release_tools" }, "pch": { "type": "boolean", "name": "precompile_header" }, @@ -261,6 +263,11 @@ "type": "compilerSupportsFlag", "flag": "-fuse-ld=gold" }, + "optimize_debug": { + "label": "-Og support", + "type": "compilerSupportsFlag", + "flag": "-Og" + }, "enable_new_dtags": { "label": "new dtags support", "type": "linkerSupportsFlag", @@ -399,6 +406,11 @@ "type": "compile", "test": "unix/posix_fallocate" }, + "alloca": { + "label": "alloca()", + "type": "compile", + "test": "common/alloca" + }, "stack_protector": { "label": "stack protection", "type": "compilerSupportsFlag", @@ -431,7 +443,8 @@ }, "shared": { "label": "Building shared libraries", - "condition": "!config.uikit && !config.integrity", + "autoDetect": "!config.uikit", + "condition": "!config.integrity", "output": [ "shared", "publicFeature", @@ -450,7 +463,7 @@ "cross_compile": { "label": "Cross compiling", "condition": "call.crossCompile", - "output": [ "publicConfig", "privateConfig", "crossCompile" ] + "output": [ "publicConfig", "privateConfig", "publicFeature", "crossCompile" ] }, "cxx11default": { "label": "Compiler defaults to C++11 or higher", @@ -470,9 +483,14 @@ }, "use_gold_linker": { "label": "Using gold linker", - "condition": "!config.msvc && tests.use_gold_linker", + "condition": "!config.msvc && !config.integrity && tests.use_gold_linker", "output": [ "privateConfig", "useGoldLinker" ] }, + "optimize_debug": { + "label": "Optimize debug build", + "condition": "!config.msvc && (features.debug || features.debug_and_release) && tests.optimize_debug", + "output": [ "privateConfig" ] + }, "architecture": { "label": "Architecture", "output": [ "architecture" ] @@ -530,6 +548,12 @@ "autoDetect": "features.debug", "output": [ "privateFeature", "publicQtConfig" ] }, + "appstore-compliant": { + "label": "App store compliance", + "purpose": "Disables code that is not allowed in platform app stores", + "autoDetect": "config.uikit || config.android || config.winrt", + "output": [ "publicFeature" ] + }, "simulator_and_device": { "label": "Build for both simulator and device", "condition": "config.uikit && input.sdk == ''", @@ -867,6 +891,11 @@ "condition": "tests.posix_fallocate", "output": [ "privateFeature" ] }, + "alloca": { + "label": "alloca()", + "condition": "tests.alloca", + "output": [ "privateFeature" ] + }, "stack-protector-strong": { "label": "stack protection", "condition": "config.qnx && tests.stack_protector", @@ -933,6 +962,7 @@ }, "widgets": { "label": "Qt Widgets", + "autoDetect": "!config.tvos && !config.watchos", "condition": "features.gui", "output": [ "privateFeature", @@ -1059,6 +1089,11 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5 "message": "Mode", "type": "buildMode" }, + { + "type": "feature", + "args": "optimize_debug", + "condition": "!config.msvc && (features.debug || features.debug_and_release)" + }, "shared", { "message": "Using C++ standard", @@ -1119,6 +1154,11 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5 { "message": "Build parts", "type": "buildParts" + }, + { + "type": "feature", + "args": "appstore-compliant", + "condition": "config.darwin || config.android || config.winrt || config.win32" } ] }, { |