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,23 +95,16 @@ if lib_arch_dir != "":
|
|||
else:
|
||||
gradle_process = ["./gradlew"]
|
||||
|
||||
if env["target"] != "editor" and env["dev_build"]:
|
||||
subprocess.run(
|
||||
gradle_process
|
||||
+ [
|
||||
"generateDevTemplate",
|
||||
"--quiet",
|
||||
],
|
||||
cwd="platform/android/java",
|
||||
)
|
||||
else:
|
||||
# Android editor with `dev_build=yes` is handled by the `generateGodotEditor` task.
|
||||
subprocess.run(
|
||||
gradle_process
|
||||
+ [
|
||||
gradle_process += [
|
||||
"generateGodotEditor" if env["target"] == "editor" else "generateGodotTemplates",
|
||||
"--quiet",
|
||||
],
|
||||
]
|
||||
|
||||
if env["debug_symbols"]:
|
||||
gradle_process += ["-PdoNotStrip=true"]
|
||||
|
||||
subprocess.run(
|
||||
gradle_process,
|
||||
cwd="platform/android/java",
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue