Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

编译过程自定义

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

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

函数

全部展开

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

对象

全部展开

RTW.BuildInfoProvide information for compiling and linking generated code

主题

自定义编译过程

自定义编译过程基础结构

开发自定义目标