Target
| Module | embedthis.me |
| Definition | dynamic class Target |
| Inheritance | Target Object |
| Stability | Prototype. |
The Target class implements MakeMe buildable targets.
Targets are the basic "atoms" for building projects.
Properties
| Qualifiers | Property | Type | Description |
|---|---|---|---|
| bare | Boolean | Bare component created during configuration. | |
| compiler | Array | Compiler switchs to use when building the target. | |
| configurable | Boolean | Defines whether a target is configurable component that can be selected/deselected via configure. | |
| conflicts | Array | List of other enabled targets that this target conflicts with this target. Configure will select only one target from a set of conflicting targets. | |
| defines | Array | Symbolic C-preprocessor defintions to use when building the target. | |
| depends | Array | Names of targets on which this target depends to function. | |
| description | String | Target description used for configurable components in usage messages. | |
| diagnostic | String | Configurable component error message if this target cannot be configured. | |
| discovers | Array | List of configurable components that should be discovered when configuring. | |
| enable | Object | Whether this target is enabled for building. | |
| entry | Object | Executable entry points, indexed by target type. Used when linking on windows. | |
| file | Path | File that defined the target . | |
| files | Array | List of input files for this target. This may include wild cards. | |
| generate | Object | Whether to generate this target for projects. | |
| explicit | String | Component explicitly excluded or included via configure --with/--without. Set to 'with' or 'without'. | |
| headers | Array | List of header files required for this target. May include wildcards. | |
| home | Path | Home directory for the target. | |
| ifdef | Array | List of configurable components that are required for this target to be enabled for building. If a specified component is not configured, the target is not built. | |
| goals | Array | List of goal names for which this target will be built. | |
| imports | Array | List of external resources to import when configuring. | |
| includes | Array | List of directories for include files. | |
| inherit | Object | List of top level MakeMe collections from which to inherit properties for this target. | |
| libpaths | Array | List of linker library include paths to use when linking. | |
| libraries | Array | List of libraries to link with. | |
| linker | Array | List of link switches to use when linking. | |
| loaded | Boolean | Component file loaded. | |
| message | String | Message to emit when building. Should be of the form 'Tag: Message...'. | |
| mkdir | Array | Directories to make before building the target. | |
| platforms | Array | List of platforms to build this target. Includes platform names and 'local'. | |
| precious | Boolean | Precious targets are retained and not cleaned via 'me clean'. | |
| requires | Array | List of components the configurable target requires to be enabled. | |
| resources | Array | List of resource files required for this target. May include wildcards. | |
| modify | Path | File that is modified by building. Used in stale() to test if a target needs building. | |
| name | String | Name of the target. Same as the entry in Me.targets[]. | |
| rule | String | Name of the build rule. Defaults to 'exe'. | |
| scripts | Object | Hash of scripts used when building the target. The following MakeMe file properties are converted into script properties on loading:. | |
| ownLibraries | Array | List of libraries provided by this target. | |
| selected | Boolean | Target selected for building. | |
| silent | Boolean | Suppress configuration trace for this target. | |
| sources | Array | List of source files to build with this target. May include wild cards. | |
| path | Path | Destination path for the target. May be null if the target does build a discrete resource. When loaded from a MakeMe file, it may contain '{tokens}' that are expanded on loading. May be a function that is run on loading to compute a path. May be a directory that holds a collection of resources built by the target. The path is used to compute if the target is stale and must be rebuilt if 'files[]' are newer than 'path'. | |
| static | Boolean | Use static linking for this target. | |
| type | String | Target type: 'exe', 'file', 'group', 'header', 'lib', 'obj', 'resource', 'script'. | |
| uses | Array | List of targets that can be utilized by this target if they are enabled. The utilized targets will be built before the target. | |
| why | String | Why the target is not being built. | |
| withpath | String | Target was configured usinag a --with path. |
Target Class Methods
(No own class methods defined)
Target Instance Methods
(No own instance methods defined)