Add 'engine/' from commit 'a8e37fc010'
git-subtree-dir: engine git-subtree-mainline:b74841629egit-subtree-split:a8e37fc010
This commit is contained in:
commit
c3f9669b10
14113 changed files with 7458101 additions and 0 deletions
34
engine/platform/android/platform_android_builders.py
Normal file
34
engine/platform/android/platform_android_builders.py
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
"""Functions used to generate source files during build time"""
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
def generate_android_binaries(target, source, env):
|
||||
gradle_process = []
|
||||
|
||||
if sys.platform.startswith("win"):
|
||||
gradle_process = [
|
||||
"cmd",
|
||||
"/c",
|
||||
"gradlew.bat",
|
||||
]
|
||||
else:
|
||||
gradle_process = ["./gradlew"]
|
||||
|
||||
if env["target"] == "editor":
|
||||
gradle_process += ["generateGodotEditor", "generateGodotHorizonOSEditor", "generateGodotPicoOSEditor"]
|
||||
else:
|
||||
if env["module_mono_enabled"]:
|
||||
gradle_process += ["generateGodotMonoTemplates"]
|
||||
else:
|
||||
gradle_process += ["generateGodotTemplates"]
|
||||
gradle_process += ["--quiet"]
|
||||
|
||||
if env["debug_symbols"] and not env["separate_debug_symbols"]:
|
||||
gradle_process += ["-PdoNotStrip=true"]
|
||||
|
||||
subprocess.run(
|
||||
gradle_process,
|
||||
cwd="platform/android/java",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue