summaryrefslogtreecommitdiffstats
path: root/configure.json
diff options
context:
space:
mode:
Diffstat (limited to 'configure.json')
-rw-r--r--configure.json12
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.json b/configure.json
index 06c62f5aea..49586ed6b8 100644
--- a/configure.json
+++ b/configure.json
@@ -93,6 +93,7 @@
"nomake": { "type": "addString", "values": [ "examples", "tests", "tools" ] },
"opensource": { "type": "void", "name": "commercial", "value": "no" },
"optimize-debug": { "type": "boolean", "name": "optimize_debug" },
+ "optimize-size": { "type": "boolean", "name": "optimize_size" },
"optimized-qmake": { "type": "boolean", "name": "release_tools" },
"optimized-tools": { "type": "boolean", "name": "release_tools" },
"pch": { "type": "boolean", "name": "precompile_header" },
@@ -485,6 +486,12 @@
"condition": "!config.msvc && (features.debug || features.debug_and_release) && tests.optimize_debug",
"output": [ "privateConfig" ]
},
+ "optimize_size": {
+ "label": "Optimize release build for size",
+ "autoDetect": false,
+ "condition": "!features.debug || features.debug_and_release",
+ "output": [ "privateConfig" ]
+ },
"architecture": {
"label": "Architecture",
"output": [ "architecture" ]
@@ -1090,6 +1097,11 @@ Configure with '-qreal float' to create a build that is binary-compatible with 5
"args": "optimize_debug",
"condition": "!config.msvc && (features.debug || features.debug_and_release)"
},
+ {
+ "type": "feature",
+ "args": "optimize_size",
+ "condition": "!features.debug || features.debug_and_release"
+ },
"shared",
{
"message": "Using C++ standard",