Moved Jinja utility functions to S++.
This commit is contained in:
@@ -21,7 +21,8 @@ def _parse_lib_conf(env: Environment, lib_conf: dict) -> None:
|
||||
env.Append(CPPPATH = lib_conf.get('CPPPATH', []),
|
||||
CPPDEFINES = lib_conf.get('CPPDEFINES', []),
|
||||
LIBPATH = lib_conf.get('LIBPATH', []),
|
||||
LIBS = lib_conf.get('LIBS', []))
|
||||
LIBS = lib_conf.get('LIBS', []),
|
||||
JINJA_TEMPLATE_SEARCHPATH = lib_conf.get('JINJA_TEMPLATE_SEARCHPATH', []))
|
||||
|
||||
def _inject_list(kwargs: dict, dependency: dict, list_name: str) -> None:
|
||||
if list_name not in dependency:
|
||||
@@ -359,6 +360,8 @@ env.AddMethod(_wrap_builder(env.UnitySharedLibrary, is_lib = True), 'UnityShared
|
||||
if hasattr(env, 'Gch'):
|
||||
env.AddMethod(_wrap_builder(env.Gch), 'Gch')
|
||||
|
||||
if hasattr(env, 'Jinja'):
|
||||
env = SConscript('addons/jinja.py', exports = 'env')
|
||||
|
||||
if dump_env:
|
||||
print('==== Begin Environment Dump =====')
|
||||
|
||||
Reference in New Issue
Block a user