setTargetProvidesMain
Disable inclusion of code generator provided (generated or static)main.c
source file during build
Description
setTargetProvidesMain (
disables the code generator from including a samplebuildinfo
,providesmain
)main.c
source file.
To replace the samplemain.c
file from the code generator with a custommain.c
file, call thesetTargetProvidesMain
function during the'after_tlc'
case in theert_make_rtw_hook.m
orgrt_make_rtw_hook.m
file.
Examples
Input Arguments
Version History
See Also
Topics
- Customize Build Process with STF_make_rtw_hook File(Simulink Coder)