addNonBuildFiles
Add nonbuild-related files to build information
Description
addNonBuildFiles(
specifies nonbuild-related files and paths to add to the build information.buildinfo
,filenames
,paths
,groups
)
The function requires the buildinfo
and
filenames
arguments. You can use an optional
paths
argument to specify the included file paths and
use an optional groups
argument to group your
options.
The code generator stores the nonbuild-related file and path options in a build information object. The function adds options to the object based on the order in which you specify them.
Examples
Add Nonbuild File to DocFiles Group
Add the nonbuild-related file readme.txt
to the build information myBuildInfo
, and place the file in
the group DocFiles
.
myBuildInfo = RTW.BuildInfo; addNonBuildFiles(myBuildInfo, ... 'readme.txt','/proj/docs','DocFiles');
Add Nonbuild Files to DLLFiles Group
Add the nonbuild-related files
myutility1.dll
and myutility2.dll
to
the build information myBuildInfo
, and place the files in the
group DLLFiles
.
myBuildInfo = RTW.BuildInfo; addNonBuildFiles(myBuildInfo, ... {'myutility1.dll' 'myutility2.dll'}, ... '/proj/dlls','DLLFiles');
Add Nonbuild Files with Wildcard to DLLFiles Group
Add nonbuild-related files (.dll
files
identified with a wildcard character) in a specified folder to the build
information myBuildInfo
, and place the files in the group
DLLFiles
.
myBuildInfo = RTW.BuildInfo; addNonBuildFiles(myBuildInfo, ... '*.dll','/proj/dlls','DLLFiles');
Input Arguments
buildinfo
— Build information object
object
RTW.BuildInfo
object that contains information for
compiling and linking generated code.
filenames
— List of nonbuild-related files to add to build information
character vector | array of character vectors | string
You can specify the filenames
argument as a
character vector, as an array of character vectors, or as a string. If you
specify the filenames
argument as multiple
character vectors, for example, 'etc.dll'
'etc_private.dll'
, the filenames
argument is added to the build information as an array of character
vectors.
If the dot delimiter (.
) is present, the file name text
can include wildcard characters. Examples are '*.*'
,
'*.dll'
, and '*.d*'
.
The function removes duplicate nonbuild-related file entries with an exact match of a path and file name to a previously defined entry in the build information object.
Example: '*.dll'
paths
— List of nonbuild-related file paths to add to build information
character vector | array of character vectors | string
You can specify the paths
argument as a
character vector, as an array of character vectors, or as a string. If you
specify a single path as a character vector, the function uses that path for
all files. If you specify the
paths
argument as multiple character vectors,
for example, '/proj/dll'
and
'/proj/docs'
, the paths
argument is added to the build information as an array of character
vectors.
Example: '/proj/dll'
groups
— Optional group name for the added nonbuild-related files
character vector | array of character vectors | string
You can specify the groups
argument as a
character vector, as an array of character vectors, or as a string. If you
specify multiple groups
, for example,
'DLLFiles' 'DLLFiles' 'DocFiles'
, the function
relates the groups
to the
filenames
in order of appearance. For
example, the filenames
argument
''myutility1.dll'' ''myutility2.dll'' 'readme.txt'
is
an array of character vectors with three elements. The first element is in
the 'DLLFiles'
group, the second element is in the
'DLLFiles'
group, and the third element is in the
'DocFiles'
group.
Example: 'DLLFiles' 'DLLFiles' 'DocFiles'
Version History
Introduced in R2008a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)