Config assembler
Note: auto-generated from comments in: ./config_assembler.cmake
Function fprime__internal_process_configuration_sources
:
This function will process the configuration sources from various calls to set up configuration modules. It will ensure that SOURCES/HEADERS are unique across module and will ensure CONFIGURATION_OVERRIDES override existing source and header files.
Arguments:
- MODULE_NAME
: the name of the module being processed
- SOURCES
: list of sources to process
- AUTOCODER_INPUTS
: list of autocoder inputs to process
- HEADERS
: list of headers to process
- OVERRIDES
: list of configuration overrides to process
- DEPENDS
: list of dependencies to append to
Returns:
- INTERNAL_SOURCES
: list of sources in their final configuration location (set in caller)
- INTERNAL_AUTOCODER_INPUTS
: list of autocoder inputs in their final configuration location (set in caller)
- INTERNAL_HEADERS
: list of headers in their final configuration location (set in caller)
- INTERNAL_DEPENDS
: list of dependencies, new and old
Function fprime__internal_process_configuration_source_set
:
Processes a single set of configuration files checking to see if files collide and if they must collide.
Arguments:
- MODULE_NAME
: the name of the module being processed
- SOURCE_SET
: list of sources to process
- EXPECT_OVERRIDE
: if true, the source must exist and will be overridden, false if it must not exist
Returns:
- PROCESSED_SOURCES
: list (set in caller)
- NEW_DEPENDS
: list of new dependencies (set in caller)
Function fprime_internal_get_configuration_destination
:
This function will determine the destination of a configuration file by checking to see if the file is in use by any other configuration modules. If it is, it will return the destination of the read from that module's original source via the DESTINATION variable. If it is not, it will unset the DESTINATION variable in PARENT_SCOPE.
Arguments:
- CONFIG_NAME
: the relative path to the configuration file
Returns:
- DESTINATION
: the destination of the configuration file or unset (in caller)