add std::string SharedLibrary::prefix() for building library name that

complies with Cygwin standard.

Signed-off-by: FrancisANDRE <zosrothko@orange.fr>
This commit is contained in:
FrancisANDRE
2015-08-27 08:48:26 +02:00
parent b0989b0828
commit 7f01fbc3db
14 changed files with 62 additions and 4 deletions

View File

@@ -118,6 +118,12 @@ public:
/// specified in a call to load() or the
/// constructor.
static std::string prefix();
/// Returns the platform-specific filename prefix
/// for shared libraries.
/// Most platforms would return an empty string, but
/// on Cygwin, the "cyg" prefix will be returned.
static std::string suffix();
/// Returns the platform-specific filename suffix
/// for shared libraries (including the period).

View File

@@ -38,6 +38,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private:

View File

@@ -43,6 +43,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private:

View File

@@ -37,6 +37,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private:

View File

@@ -38,6 +38,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private:

View File

@@ -37,6 +37,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private:

View File

@@ -37,6 +37,7 @@ protected:
bool isLoadedImpl() const;
void* findSymbolImpl(const std::string& name);
const std::string& getPathImpl() const;
static std::string prefixImpl();
static std::string suffixImpl();
private: