virtualx-engine/modules/mono/build_scripts/mono_configure.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
830 B
Python
Raw Normal View History

import os
import os.path
2019-11-10 17:10:38 +01:00
def is_desktop(platform):
return platform in ["windows", "macos", "linuxbsd", "uwp", "haiku"]
2019-11-10 17:10:38 +01:00
def is_unix_like(platform):
return platform in ["macos", "linuxbsd", "android", "haiku", "ios"]
2019-11-10 17:10:38 +01:00
def module_supports_tools_on(platform):
return is_desktop(platform)
2019-11-10 17:10:38 +01:00
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"]
tools_enabled = env["tools"]
if tools_enabled and not module_supports_tools_on(env["platform"]):
raise RuntimeError("This module does not currently support building for this platform with tools enabled")
if env["tools"]:
env_mono.Append(CPPDEFINES=["GD_MONO_HOT_RELOAD"])