{# Hierarchically include all folders into the project #}
{%- for child in recursiveFolders.children recursive %}
{%- if child.children -%}
{{ loop(child.children) }}
{%- endif %}
{%- endfor %}
{# Include all source files not belonging to a subfolder separately #}
{%- for file in main_files -%}
{%- endfor %}
{# Add all include paths to the managed build compiler, paths relative to project #}
{%- for path in include_paths %}
{%- endfor %}
{# Add all mbed-defined #Defines for the preprocessor #}
{%- for define, value in defines %}
{%- endfor %}
{# Include all standard libraries that mbed requires #}
{# Include exported libraries #}
{%- for library in libraries %}
{%- endfor %}
{# Add library search paths #}
{%- for path in library_paths %}
{%- endfor %}
{# Add in separate object files if needed #}
{%- if object_files %}
{%- endif %}
{# Manually override linker ordering #}
{%- if libraries %}
{%- endif %}
{# Define mbed-specific linker file #}
{# Make sure to wrap main in order to get clock initialization done right #}
{# For debug build, don't apply optimizations #}
{# Add all include paths to the managed build compiler, paths relative to project #}
{%- for path in include_paths %}
{%- endfor %}
{# Add all mbed-defined #Defines for the preprocessor #}
{%- for define, value in defines %}
{%- endfor %}
{# Include all standard libraries that mbed requires #}
{# Include exported libraries #}
{%- for library in libraries %}
{%- endfor %}
{# Add library search paths #}
{%- for path in library_paths %}
{%- endfor %}
{# Add in separate object files if needed #}
{%- if object_files %}
{%- endif %}
{# Manually override linker ordering #}
{%- if libraries %}
{%- endif %}
{# Define mbed-specific linker file #}
{# Make sure to wrap main in order to get clock initialization done right #}
{# Use optimize for size on release build #}