Apple: Refactor support for using INSTALL_NAME_DIR.

This commit is contained in:
Clinton Stimpson
2017-02-09 07:46:40 -07:00
parent 624fb9d717
commit 4bff2d14fd
2 changed files with 49 additions and 20 deletions

View File

@@ -525,6 +525,16 @@ public:
/** Whether this library defaults to \@rpath. */
bool MacOSXRpathInstallNameDirDefault() const;
enum InstallNameType
{
INSTALL_NAME_FOR_BUILD,
INSTALL_NAME_FOR_INSTALL
};
/** Whether to use INSTALL_NAME_DIR. */
bool MacOSXUseInstallNameDir() const;
/** Whether to generate an install_name. */
bool CanGenerateInstallNameDir(InstallNameType t) const;
/** Test for special case of a third-party shared library that has
no soname at all. */
bool IsImportedSharedLibWithoutSOName(const std::string& config) const;