Apple: Handle generation and comsuption of text-based stubs (.tbd files)
This MR provides the full support of the text-based stubs (i.e. .tbd files).
These files are handled similarly of the import libraries On Windows because the goal is the same.
When .tbd files are supported by the platform:
-
.tbdfile will be generated if target propertyENABLE_EXPORTSis defined with a true value. This property is relevant for SHARED libraries (standard and framework). - installation and export of
.tbdfiles are managed usingARCHIVEtype (same as on Windows).NAMELINK_ONLYandNAMELINK_SKIPare now supported forARCHIVEtype to handle versioning (same behavior as forLIBRARY). - For an
IMPORTEDtarget,ENABLE_EXPORTSmust be defined to ensure.tbdfile support:IMPORTED_IMPLIBproperty is used for specifying.tbdfile for an imported library (shared or framework).IMPORTED_LOCATIONproperty can also be specified to ensure a transparent consumption (TheIMPORTED_LOCATIONis used if the.tbdfiles are not supported by the platform).
Fixes: #24123 (closed)