mirror of
https://github.com/godotengine/godot
synced 2024-11-02 05:26:46 +00:00
cfd292939c
The Haiku platform port was never finalized, and moved to a separate repo in Godot 3.2 days: https://github.com/godotengine/godot-platform-haiku Sadly it didn't garner more interest there and is bitrotting. It was never ported to Godot 4 so the bits of Haiku support left in Mono aren't useful.
26 lines
764 B
Python
26 lines
764 B
Python
import os
|
|
import os.path
|
|
|
|
|
|
def is_desktop(platform):
|
|
return platform in ["windows", "macos", "linuxbsd"]
|
|
|
|
|
|
def is_unix_like(platform):
|
|
return platform in ["macos", "linuxbsd", "android", "ios"]
|
|
|
|
|
|
def module_supports_tools_on(platform):
|
|
return is_desktop(platform)
|
|
|
|
|
|
def configure(env, env_mono):
|
|
# is_android = env["platform"] == "android"
|
|
# is_web = env["platform"] == "web"
|
|
# is_ios = env["platform"] == "ios"
|
|
# is_ios_sim = is_ios and env["arch"] in ["x86_32", "x86_64"]
|
|
|
|
if env.editor_build:
|
|
if not module_supports_tools_on(env["platform"]):
|
|
raise RuntimeError("This module does not currently support building for this platform for editor builds.")
|
|
env_mono.Append(CPPDEFINES=["GD_MONO_HOT_RELOAD"])
|