target_options.jinja 700 B

123456789101112131415
  1. {%- set OPTIONS_ORDER_BEFORE_LINKS = ['target_compile_options', 'target_include_directories'] -%}
  2. {%- set OPTIONS_ORDER_AFTER_LINKS = ['target_link_options'] -%}
  3. {%- for OPTION in OPTIONS_ORDER_BEFORE_LINKS -%}
  4. {{ TargetOptions(name, is_really_fake_module, current_target.target_options, OPTION, []) }}
  5. {%- endfor -%}
  6. {%- include "[generator]/target_links.jinja" -%}
  7. {%- for OPTION in OPTIONS_ORDER_AFTER_LINKS -%}
  8. {{ TargetOptions(name, is_really_fake_module, current_target.target_options, OPTION, []) }}
  9. {%- endfor -%}
  10. {#- Then all other options -#}
  11. {{ TargetOptions(name, is_really_fake_module, current_target.target_options, "", OPTIONS_ORDER_BEFORE_LINKS + OPTIONS_ORDER_AFTER_LINKS) }}