Help CenterHelp Center
Remove source files from build information object
Since R2021b
removeSourceFiles(buildInfo,filenames,groups)
removeSourceFiles(buildInfo,filenames,groups) removes source file names from build information that is stored in an RTW.BuildInfo object.
buildInfo
filenames
groups
RTW.BuildInfo
example
collapse all
Suppose you add a list of source files to an RTW.BuildInfo object, myBuildInfo.
myBuildInfo
myBuildInfo = RTW.BuildInfo; addSourceFiles(myBuildInfo, ... {'test1.c' 'test2.c' 'driver1.c' 'driver2.c'}, ... '/proj/src', ... {'Tests' 'Tests' 'Drivers' 'Drivers'});
To remove test1.c from the object, run:
test1.c
removeSourceFiles(myBuildInfo, 'test1.c');
To remove test2.c and driver1.c, run:
test2.c
driver1.c
removeSourceFiles(myBuildInfo, {'test2.c' 'driver1.c'});
To remove the names of files that belong to the 'Drivers' group, run:
'Drivers'
removeSourceFiles(myBuildInfo, '', 'Drivers');
RTW.BuildInfo object that contains information for compiling and linking generated code.
Example: myBuildInfo
Specify source files that you want to remove from the build information object.
Example: 'test1.c'
'test1.c'
Specify groups of source files that you want to remove from the build information object.
Example: {'Tests' 'Drivers'}
{'Tests' 'Drivers'}
Introduced in R2021b
addSourceFiles
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office