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