root_global_vars.jinja 849 B

12345678910111213141516171819202122
  1. {% include '[generator]/disclaimer.jinja' -%}
  2. {% if platform_names|length -%}
  3. {%- for platform_name in platform_names %}
  4. {% if not loop.first %}else{% endif %}if ({{ platform_conditions[platform_name] }})
  5. {%- if platform_attrs[platform_name].platform_vars is defined -%}
  6. {%- set platform_vars = platform_attrs[platform_name].platform_vars -%}
  7. {%- set platform_var_names = keys(platform_vars) -%}
  8. {% for platform_var_name in platform_var_names %}
  9. set({{ platform_var_name }} {{ platform_vars[platform_var_name] }})
  10. {%- endfor -%}
  11. {%- endif -%}
  12. {%- if "windows" in platform_name %}
  13. set(ENV{PYTHONIOENCODING} utf-8)
  14. set(ENV{PYTHONUTF8} 1)
  15. {%- endif %}
  16. {%- endfor %}
  17. endif()
  18. {% endif %}
  19. {%- include "[generator]/debug.jinja" ignore missing -%}