Main Content

Build Process Customization

Cross-compilation, post-code-generation processing, target build process customization

Customize the build process and the build process infrastructure for your application development environment and run-time requirements. Control the files and flags for compiling and linking your code.


targetManage target hardware and build tool information


expand all

target.ToolchainCapture high-level information about toolchain
target.CMakeSpecify CMake installation for building generated code
target.CMakeBuildTypeDescribe CMake build type or build configuration
target.CMakeBuilder Configure how CMake builds generated code
target.CMakeCacheEntryConfigure a CMake cache entry
target.EnvironmentConfigurationConfigure system environment for toolchain
target.HardwareComponentSupportDescribe support for a hardware component


expand all

RTW.BuildInfoProvide information for compiling and linking generated code


expand all

addCompileFlagsAdd compiler options to build information
addDefinesAdd preprocessor macro definitions to build information
addIncludeFilesAdd include files to build information
addIncludePathsAdd include paths to build information
addLinkFlagsAdd link options to build information
addLinkObjectsAdd link objects to build information
addNonBuildFilesAdd nonbuild-related files to build information
addSourceFilesAdd source files to build information
addSourcePathsAdd source paths to build information
addTMFTokensAdd template makefile (TMF) tokens to build information
removeSourceFilesRemove source files from build information object
findBuildArgFind a specific build argument in build information
findIncludeFilesFind and add include (header) files to build information
getBuildArgsGet build arguments from build information
getCompileFlagsGet compiler options from build information
getDefinesGet preprocessor macro definitions from build information
getFullFileListGet list of files from build information
getIncludeFilesGet include files from build information
getIncludePathsGet include paths from build information
getLinkFlagsGet link options from build information
getNonBuildFilesGet nonbuild-related files from build information
getSourceFilesGet source files from build information
getSourcePathsGet source paths from build information
setTargetProvidesMainDisable inclusion of code generator provided (generated or static) main.c source file during build
updateFilePathsAndExtensionsUpdate files in build information with missing paths and file extensions
updateFileSeparatorUpdate file separator character for file lists in build information
slConfigUIGetValReturn current value for any model configuration parameter
slConfigUISetEnabledEnable or disable any model configuration parameter
slConfigUISetValSet value for any model configuration parameter
codebuildCompile and link generated code


Customize Build Process

Customize Build Process Infrastructure

Develop Custom Target