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:
parent
af1a57bfe5
commit
224bed4c86
1 changed files with 13 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue