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:
parent
74b6673e42
commit
f67d2e01be
1 changed files with 8 additions and 4 deletions
|
|
@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue