def export_special_variables(configuration): ui.debug("exporting special variables") with ui.ident: add_empty("__configuration", "$__null") add("__configuration", "$__name", configuration.name) for variable in configuration.export: add("__configuration", variable.name, variable) for module in modules: add(module, "$__build", fsutils.build_dir(configuration.name))
def build_dir(): return fsutils.build_dir(get_selected_configuration().name)