Class: coder.make.ToolchainInfo
Package: coder.make
Add custom attribute to Attributes
h.addAttribute(Name,Value)
adds
a custom attribute with the specified name and value to h
.addAttribute(Name,Value
)coder.make.ToolchainInfo.Attributes
. If you do not specify a value,
the function initializes the attribute to true
(default).
All attributes are optional. The toolchain uses the attributes during the build process.
h.Attribute
ans = # ------------------- # "Attribute" List # ------------------- (empty)
h.addAttribute('TransformPathsWithSpaces',false) h.getAttribute('TransformPathsWithSpaces')
ans = 0
h.addAttribute('CustomAttribute')
h.Attributes
ans = # ------------------- # "Attributes" List # ------------------- CustomAttribute = true
The intel_tc.m
file from the Adding a Custom Toolchain example defines the following custom
attributes:
tc.addAttribute('TransformPathsWithSpaces'); tc.addAttribute('RequiresCommandFile'); tc.addAttribute('RequiresBatchFile');
To see the property values from that example in the MATLAB Command Window, enter:
h = intel_tc; h.Attributes
ans = # ------------------- # "Attributes" List # ------------------- RequiresBatchFile = true RequiresCommandFile = true TransformPathsWithSpaces = true