Merge pull request #94887 from m4gr3d/fix_generate_apk_for_dev_build
Automatically enable `doNotStrip` for dev builds
This commit is contained in:
commit
a92d7ed19f
|
@ -95,25 +95,18 @@ if lib_arch_dir != "":
|
||||||
else:
|
else:
|
||||||
gradle_process = ["./gradlew"]
|
gradle_process = ["./gradlew"]
|
||||||
|
|
||||||
if env["target"] != "editor" and env["dev_build"]:
|
gradle_process += [
|
||||||
subprocess.run(
|
"generateGodotEditor" if env["target"] == "editor" else "generateGodotTemplates",
|
||||||
gradle_process
|
"--quiet",
|
||||||
+ [
|
]
|
||||||
"generateDevTemplate",
|
|
||||||
"--quiet",
|
if env["debug_symbols"]:
|
||||||
],
|
gradle_process += ["-PdoNotStrip=true"]
|
||||||
cwd="platform/android/java",
|
|
||||||
)
|
subprocess.run(
|
||||||
else:
|
gradle_process,
|
||||||
# Android editor with `dev_build=yes` is handled by the `generateGodotEditor` task.
|
cwd="platform/android/java",
|
||||||
subprocess.run(
|
)
|
||||||
gradle_process
|
|
||||||
+ [
|
|
||||||
"generateGodotEditor" if env["target"] == "editor" else "generateGodotTemplates",
|
|
||||||
"--quiet",
|
|
||||||
],
|
|
||||||
cwd="platform/android/java",
|
|
||||||
)
|
|
||||||
|
|
||||||
if env["generate_apk"]:
|
if env["generate_apk"]:
|
||||||
generate_apk_command = env_android.Command("generate_apk", [], generate_apk)
|
generate_apk_command = env_android.Command("generate_apk", [], generate_apk)
|
||||||
|
|
Loading…
Reference in New Issue