1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Projucer: Ensure that additional Java libs specified in the Android exporter are copied to the app folder

This commit is contained in:
ed 2018-12-18 11:51:32 +00:00
parent 74b6673e42
commit f67d2e01be

View file

@ -219,8 +219,9 @@ public:
if (! isLibrary())
{
writeStringsXML (targetFolder);
writeAppIcons (targetFolder);
copyAdditionalJavaLibs (appFolder);
writeStringsXML (targetFolder);
writeAppIcons (targetFolder);
}
writeCmakeFile (appFolder.getChildFile ("CMakeLists.txt"));
@ -1060,16 +1061,19 @@ private:
//==============================================================================
void copyAdditionalJavaLibs (const File& targetFolder) const
{
auto libFolder = targetFolder.getChildFile ("libs");
libFolder.createDirectory();
auto libPaths = StringArray::fromLines (androidJavaLibs.get().toString());
for (auto& p : libPaths)
{
File f = getTargetFolder().getChildFile (p);
auto f = getTargetFolder().getChildFile (p);
// Is the path to the java lib correct?
jassert (f.existsAsFile());
f.copyFileTo (targetFolder.getChildFile (f.getFileName()));
f.copyFileTo (libFolder.getChildFile (f.getFileName()));
}
}