scons-plus-plus/addons/compat_v1_0.py

14 lines
483 B
Python

from spp import get_spp
spp = get_spp()
def available(**kwargs) -> bool:
return spp.globals['config']['SPP_TARGET_VERSION'][0:2] == (1, 0)
def pre_environment(**kwargs) -> None:
spp.globals['tools'].append('unity_build') # S++ 1.0.0 had the unity_build enabled by default
def post_environment(**kwargs) -> None:
spp.globals['env']['_SPP_FALLBACK_RECIPE_REPO'] = {'repo_name': 'mewin', 'remote_url': 'https://git.mewin.de/mewin/spp_recipes.git', 'git_ref': 'stable'}