root_global_vars.jinja 568 B

1234567891011121314151617
  1. {% include '[generator]/disclaimer.jinja' -%}
  2. {% set platforms_count = platform_names|length -%}
  3. {% if platforms_count > 0 -%}
  4. {% for i in range(platforms_count) %}
  5. {% if i != 0 %}else{% endif %}if ({{ platforms[platform_names[i]] }})
  6. {%- for var in platform_vars[i] %}
  7. set({% for arg in var %}{{arg}}{% if not loop.last %} {% endif %}{% endfor %})
  8. {%- endfor %}
  9. {%- if "windows" in platform_names[i] %}
  10. set(ENV{PYTHONIOENCODING} utf-8)
  11. set(ENV{PYTHONUTF8} 1)
  12. {%- endif %}
  13. {%- endfor %}
  14. endif()
  15. {% endif %}