C

app_target_setup_os

Set up target for platform OS.

Synopsis

app_target_setup_os(<target>)

Description

Sets the QUL_OS target property to the contents of the OS variable and performs additional setup based on it.

OS variableAdditional Setup
"BareMetal"No additional setup done.
"FreeRTOS"Compiles and links the FreeRTOS library.

Additional settings for FreeRTOS

VariableDescriptionMore info
FREERTOS_CONFIG_DIRSets path containing a custom FreeRTOSConfig.h.Using custom FreeRTOSConfig.h
FREERTOS_HEAP_POLICYSelect desired heap policy for FreeRTOSChanging heap policies

Note: This is a convenience command. If you want to do the OS setup manually, do not use it and instead set the QUL_OS target property directly, build and link FreeRTOS.

Note: It must be called for executable targets only

Examples

# Depend on OS being the default or being set externally.
# If OS is not set "BareMetal" is used by default
app_target_setup_os(example_app)
set(OS "FreeRTOS")
set_target_properties(example_app PROPERTIES
                      FREERTOS_CONFIG_DIR  "freertosconfig/"
                      FREERTOS_HEAP_POLICY "heap_5")
app_target_setup_os(example_app)

Since

This command was introduced in Qt Quick Ultralite 1.1.

See also FreeRTOS application build process.

Available under certain Qt licenses.
Find out more.