1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Android: Added binary location support when building Android static libraries

This commit is contained in:
hogliux 2018-06-12 11:09:39 +01:00
parent af1a57bfe5
commit 224bed4c86

View file

@ -467,8 +467,21 @@ private:
mo << (first ? "IF" : "ELSEIF") << "(JUCE_BUILD_CONFIGURATION MATCHES \"" << cfg.getProductFlavourCMakeIdentifier() <<"\")" << newLine;
if (isLibrary())
{
mo << " SET(BINARY_NAME \"" << getNativeModuleBinaryName (cfg) << "\")" << newLine;
auto binaryLocation = cfg.getTargetBinaryRelativePathString();
if (binaryLocation.isNotEmpty())
{
auto locationRelativeToCmake = RelativePath (binaryLocation, RelativePath::projectFolder)
.rebased (getProject().getFile().getParentDirectory(),
file.getParentDirectory(), RelativePath::buildTargetFolder);
mo << " SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY \"" << "../../../../" << locationRelativeToCmake.toUnixStyle() << "\")" << newLine;
}
}
writeCmakePathLines (mo, " ", "link_directories(", libSearchPaths);
if (cfgDefines.size() > 0)