Target

Moduleembedthis.me
Definitiondynamic class Target
InheritanceTarget inherit Object
StabilityPrototype.

The Target class implements MakeMe buildable targets.

Targets are the basic "atoms" for building projects.


Properties

QualifiersPropertyTypeDescription
bareBooleanBare component created during configuration.
compilerArrayCompiler switchs to use when building the target.
configurableBooleanDefines whether a target is configurable component that can be selected/deselected via configure.
conflictsArrayList of other enabled targets that this target conflicts with this target. Configure will select only one target from a set of conflicting targets.
definesArraySymbolic C-preprocessor defintions to use when building the target.
dependsArrayNames of targets on which this target depends to function.
descriptionStringTarget description used for configurable components in usage messages.
diagnosticStringConfigurable component error message if this target cannot be configured.
discoversArrayList of configurable components that should be discovered when configuring.
enableObjectWhether this target is enabled for building.
entryObjectExecutable entry points, indexed by target type. Used when linking on windows.
filePathFile that defined the target .
filesArrayList of input files for this target. This may include wild cards.
generateObjectWhether to generate this target for projects.
explicitStringComponent explicitly excluded or included via configure --with/--without. Set to 'with' or 'without'.
headersArrayList of header files required for this target. May include wildcards.
homePathHome directory for the target.
ifdefArrayList 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.
goalsArrayList of goal names for which this target will be built.
importsArrayList of external resources to import when configuring.
includesArrayList of directories for include files.
inheritObjectList of top level MakeMe collections from which to inherit properties for this target.
libpathsArrayList of linker library include paths to use when linking.
librariesArrayList of libraries to link with.
linkerArrayList of link switches to use when linking.
loadedBooleanComponent file loaded.
messageStringMessage to emit when building. Should be of the form 'Tag: Message...'.
mkdirArrayDirectories to make before building the target.
platformsArrayList of platforms to build this target. Includes platform names and 'local'.
preciousBooleanPrecious targets are retained and not cleaned via 'me clean'.
requiresArrayList of components the configurable target requires to be enabled.
resourcesArrayList of resource files required for this target. May include wildcards.
modifyPathFile that is modified by building. Used in stale() to test if a target needs building.
nameStringName of the target. Same as the entry in Me.targets[].
ruleStringName of the build rule. Defaults to 'exe'.
scriptsObjectHash of scripts used when building the target. The following MakeMe file properties are converted into script properties on loading:.
ownLibrariesArrayList of libraries provided by this target.
selectedBooleanTarget selected for building.
silentBooleanSuppress configuration trace for this target.
sourcesArrayList of source files to build with this target. May include wild cards.
pathPathDestination 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'.
staticBooleanUse static linking for this target.
typeStringTarget type: 'exe', 'file', 'group', 'header', 'lib', 'obj', 'resource', 'script'.
usesArrayList of targets that can be utilized by this target if they are enabled. The utilized targets will be built before the target.
whyStringWhy the target is not being built.
withpathStringTarget was configured usinag a --with path.

Target Class Methods

(No own class methods defined)


Target Instance Methods

(No own instance methods defined)