initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
34
platform/android/platform_android_builders.py
Normal file
34
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",
|
||||
)
|
Reference in New Issue
Block a user