Main Content

setFileExtensions

Class: target.BuildTool
Namespace: target

Set file extensions

Since R2023a

Syntax

myBuildTool.setFileExtensions(fileTypeName,extensionValues)

Description

myBuildTool.setFileExtensions(fileTypeName,extensionValues) sets the file extensions for the named file type to the specified value.

If the FileExtensions property does not contain the corresponding target.FileExtensionSet object, the method appends a new object.

If the file type name is not listed in the target.BuildToolType object, the method produces an error.

Input Arguments

expand all

Name of file type.

Example: cCompiler.setFileExtensions('Source', '.cx');

New value for file extensions.

Example: cCompiler.setFileExtensions('Header', {'.hx'});

Examples

For an example that uses this method, see Define GCC-Based Toolchain for Windows Development Computer.

Version History

Introduced in R2023a