From ccf61650bddd82cb8ab8fcd5b2099fb9ce594330 Mon Sep 17 00:00:00 2001 From: Fredia Huya-Kouadio Date: Tue, 22 Apr 2025 18:40:20 -0700 Subject: [PATCH] Use `separate_debug_symbols` to control generation of the separate Android debug symbols file --- platform/android/detect.py | 1 - platform/android/platform_android_builders.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/android/detect.py b/platform/android/detect.py index 5b88f400541..e90d3b73142 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -40,7 +40,6 @@ def get_opts(): False, ), BoolVariable("swappy", "Use Swappy Frame Pacing library", False), - BoolVariable("gradle_do_not_strip", "Whether Gradle should strip the Android *.so libraries or not", False), ] diff --git a/platform/android/platform_android_builders.py b/platform/android/platform_android_builders.py index f5b1386d968..4593e8a8058 100644 --- a/platform/android/platform_android_builders.py +++ b/platform/android/platform_android_builders.py @@ -22,7 +22,7 @@ def generate_android_binaries(target, source, env): gradle_process += ["generateGodotTemplates"] gradle_process += ["--quiet"] - if env["gradle_do_not_strip"]: + if env["debug_symbols"] and not env["separate_debug_symbols"]: gradle_process += ["-PdoNotStrip=true"] subprocess.run(