mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added code to ensure that assets are not copied when extra assets paths in Android are not specified
This commit is contained in:
parent
1e2f6fec5c
commit
67b0e58187
1 changed files with 9 additions and 5 deletions
|
|
@ -218,12 +218,16 @@ public:
|
|||
|
||||
writeCmakeFile (appFolder.getChildFile ("CMakeLists.txt"));
|
||||
|
||||
File extraAssets (getProject().getFile().getParentDirectory().getChildFile(androidExtraAssetsFolder.get()));
|
||||
if (extraAssets.exists() && extraAssets.isDirectory())
|
||||
const String androidExtraAssetsFolderValue = androidExtraAssetsFolder.get();
|
||||
if (androidExtraAssetsFolderValue.isNotEmpty())
|
||||
{
|
||||
const File assetsFolder (appFolder.getChildFile ("src/main/assets"));
|
||||
if (assetsFolder.deleteRecursively())
|
||||
extraAssets.copyDirectoryTo (assetsFolder);
|
||||
File extraAssets (getProject().getFile().getParentDirectory().getChildFile(androidExtraAssetsFolderValue));
|
||||
if (extraAssets.exists() && extraAssets.isDirectory())
|
||||
{
|
||||
const File assetsFolder (appFolder.getChildFile ("src/main/assets"));
|
||||
if (assetsFolder.deleteRecursively())
|
||||
extraAssets.copyDirectoryTo (assetsFolder);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue