diff options
author | Ivan Komissarov <abbapoh@gmail.com> | 2022-08-23 15:30:13 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2022-08-24 09:02:14 +0000 |
commit | 539ba0ae6f13785661948417e4f69ba222ecd351 (patch) | |
tree | e4ecec9ae1eeadb7ec96f473d8568ff0b5b6fd9f /share/qbs/modules | |
parent | bbd699f2601a5f04d5f83effb5775a9543ea0ea7 (diff) |
Darwin: Set NSSupportsAutomaticGraphicsSwitching to true by default
User can set it to false using the bundle.infoPlist property
if needed.
Fixes: QBS-1670
Change-Id: Ie009bd7f366c09ae6a77134ba0290dea62ae6e35
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules')
-rw-r--r-- | share/qbs/modules/cpp/DarwinGCC.qbs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/DarwinGCC.qbs b/share/qbs/modules/cpp/DarwinGCC.qbs index 81d8bded2..c42d25362 100644 --- a/share/qbs/modules/cpp/DarwinGCC.qbs +++ b/share/qbs/modules/cpp/DarwinGCC.qbs @@ -110,6 +110,9 @@ UnixGCC { if (qbs.targetOS.contains("macos")) { dict["NSPrincipalClass"] = "NSApplication"; // needed for Retina display support + // QBS-1670: set this flag by default to avoid extensive GPU usage + dict["NSSupportsAutomaticGraphicsSwitching"] = true; + if (minimumMacosVersion) dict["LSMinimumSystemVersion"] = minimumMacosVersion; } |