Merge topic 'android-platform'
42f74df6
Add basic Android platform module
This commit is contained in:
commit
2944bf164e
|
@ -0,0 +1,9 @@
|
||||||
|
include(Platform/Linux)
|
||||||
|
|
||||||
|
# Android has soname, but binary names must end in ".so" so we cannot append
|
||||||
|
# a version number. Also we cannot portably represent symlinks on the host.
|
||||||
|
set(CMAKE_PLATFORM_NO_VERSIONED_SONAME 1)
|
||||||
|
|
||||||
|
# Android reportedly ignores RPATH, and we cannot predict the install
|
||||||
|
# location anyway.
|
||||||
|
set(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
|
|
@ -4320,6 +4320,7 @@ void cmTarget::GetLibraryNames(std::string& name,
|
||||||
const char* version = this->GetProperty("VERSION");
|
const char* version = this->GetProperty("VERSION");
|
||||||
const char* soversion = this->GetProperty("SOVERSION");
|
const char* soversion = this->GetProperty("SOVERSION");
|
||||||
if(!this->HasSOName(config) ||
|
if(!this->HasSOName(config) ||
|
||||||
|
this->Makefile->IsOn("CMAKE_PLATFORM_NO_VERSIONED_SONAME") ||
|
||||||
this->IsFrameworkOnApple())
|
this->IsFrameworkOnApple())
|
||||||
{
|
{
|
||||||
// Versioning is supported only for shared libraries and modules,
|
// Versioning is supported only for shared libraries and modules,
|
||||||
|
|
Loading…
Reference in New Issue