aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/cmake/root_global_vars.jinja
blob: d2a80d0e669c72077a8eeb27814a2b3dbd6dc12a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% include '[generator]/disclaimer.jinja' -%}

{%  if platform_names|length -%}
{%-     for platform_name in platform_names %}
{%          if not loop.first %}else{% endif %}if ({{ platform_conditions[platform_name] }})
{%-         if platform_attrs[platform_name].platform_vars is defined -%}
{%-             set platform_vars = platform_attrs[platform_name].platform_vars -%}
{%-             set platform_var_names = keys(platform_vars) -%}
{%              for platform_var_name in platform_var_names %}
  set({{ platform_var_name }} {{ platform_vars[platform_var_name] }})
{%-             endfor -%}
{%-         endif -%}
{%-         if "windows" in platform_name %}
  set(ENV{PYTHONIOENCODING} utf-8)
  set(ENV{PYTHONUTF8} 1)
{%-         endif %}
{%-     endfor %}
endif()

{%  endif %}

{%- include "[generator]/debug.jinja" ignore missing -%}