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:
-
.tbd
file will be generated if target propertyENABLE_EXPORTS
is defined with a true value. This property is relevant for SHARED libraries (standard and framework). - installation and export of
.tbd
files are managed usingARCHIVE
type (same as on Windows).NAMELINK_ONLY
andNAMELINK_SKIP
are now supported forARCHIVE
type to handle versioning (same behavior as forLIBRARY
). - For an
IMPORTED
target,ENABLE_EXPORTS
must be defined to ensure.tbd
file support:IMPORTED_IMPLIB
property is used for specifying.tbd
file for an imported library (shared or framework).IMPORTED_LOCATION
property can also be specified to ensure a transparent consumption (TheIMPORTED_LOCATION
is used if the.tbd
files are not supported by the platform).
Fixes: #24123 (closed)