aboutsummaryrefslogtreecommitdiffstats
path: root/build/export_generators/cmake/root_global_vars.jinja
blob: 171b94ebce23dbf4e48323c93d1663ca44be3169 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% 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 -%}
{%-     endfor %}
endif()

{%  endif %}

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