Stores a set of targets (operating system versions) and can be used to check compatibility.
Definition at line 15 of file VuoCompilerTargetSet.hh.
Public Types | |
enum | MacVersion { MacVersion_Any, MacVersion_10_7, MacVersion_10_8, MacVersion_10_9, MacVersion_10_10, MacVersion_10_11, MacVersion_10_12, MacVersion_10_13, MacVersion_10_14, MacVersion_10_15 } |
Mac OS versions. More... | |
Public Member Functions | |
VuoCompilerTargetSet (void) | |
Creates a target set that is unrestricted. More... | |
void | setMinMacVersion (enum MacVersion min) |
Restricts the target set to Mac OS versions of min or above. More... | |
string | getMinMacVersionString () |
Returns a string (suitable for the LSMinimumSystemVersion Info.plist key) representing the minimum compatible OS version. More... | |
void | setMaxMacVersion (enum MacVersion max) |
Restricts the target set to Mac OS versions of max or below. More... | |
void | restrictToCurrentOperatingSystemVersion (void) |
Restricts the target set to the current (runtime) Mac OS version. More... | |
void | restrictToBeCompatibleWithAllOf (const VuoCompilerTargetSet &other) |
Restricts the target set to the intersection between it and the other target set. More... | |
bool | isCompatibleWithAllOf (const VuoCompilerTargetSet &other) const |
Returns true if this target set is a superset of the other target set. More... | |
string | toString (void) |
Returns a description of this target set. More... | |
Mac OS versions.
Definition at line 21 of file VuoCompilerTargetSet.hh.
VuoCompilerTargetSet::VuoCompilerTargetSet | ( | void | ) |
Creates a target set that is unrestricted.
It includes any operating system version.
Definition at line 18 of file VuoCompilerTargetSet.cc.
string VuoCompilerTargetSet::getMinMacVersionString | ( | ) |
Returns a string (suitable for the LSMinimumSystemVersion
Info.plist key) representing the minimum compatible OS version.
If no minimum is specified, returns emptystring.
Definition at line 36 of file VuoCompilerTargetSet.cc.
bool VuoCompilerTargetSet::isCompatibleWithAllOf | ( | const VuoCompilerTargetSet & | other | ) | const |
Returns true if this target set is a superset of the other target set.
Definition at line 88 of file VuoCompilerTargetSet.cc.
void VuoCompilerTargetSet::restrictToBeCompatibleWithAllOf | ( | const VuoCompilerTargetSet & | other | ) |
Restricts the target set to the intersection between it and the other target set.
Definition at line 74 of file VuoCompilerTargetSet.cc.
void VuoCompilerTargetSet::restrictToCurrentOperatingSystemVersion | ( | void | ) |
Restricts the target set to the current (runtime) Mac OS version.
Definition at line 64 of file VuoCompilerTargetSet.cc.
void VuoCompilerTargetSet::setMaxMacVersion | ( | enum MacVersion | max | ) |
Restricts the target set to Mac OS versions of max or below.
Definition at line 56 of file VuoCompilerTargetSet.cc.
void VuoCompilerTargetSet::setMinMacVersion | ( | enum MacVersion | min | ) |
Restricts the target set to Mac OS versions of min or above.
Definition at line 26 of file VuoCompilerTargetSet.cc.
string VuoCompilerTargetSet::toString | ( | void | ) |
Returns a description of this target set.
Definition at line 99 of file VuoCompilerTargetSet.cc.