Main Content

编译过程自定义

交叉编译、代码生成后处理、目标编译过程自定义

自定义编译过程,并根据您的应用程序开发环境和运行时要求自定义编译过程基础结构。控制编译和链接代码需要的文件和标志。

target管理目标硬件和构建工具信息

全部展开

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

对象

全部展开

RTW.BuildInfo提供用于编译和链接生成的代码的信息

函数

全部展开

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
codebuild编译和链接生成的代码

主题

自定义编译过程

自定义编译过程基础结构

开发自定义目标