diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h index 295777dd12..e967c82dc9 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Android.h @@ -78,6 +78,7 @@ public: bool isPossibleForCurrentProject() { return projectType.isGUIApplication(); } bool usesMMFiles() const { return false; } + bool canCopeWithDuplicateFiles() { return false; } void launchProject() { diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index 63478acafd..1ba3ae2d09 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -50,6 +50,7 @@ public: bool isPossibleForCurrentProject() { return true; } bool usesMMFiles() const { return false; } bool isVisualStudio() const { return true; } + bool canCopeWithDuplicateFiles() { return false; } void createPropertyEditors (Array & props) { diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Make.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Make.h index 02f299916a..79f799cb95 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Make.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_Make.h @@ -69,6 +69,7 @@ public: bool isPossibleForCurrentProject() { return true; } bool usesMMFiles() const { return false; } bool isLinux() const { return true; } + bool canCopeWithDuplicateFiles() { return false; } void launchProject() { diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h index b0e66ebeb7..527c60d2ef 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_XCode.h @@ -87,6 +87,7 @@ public: bool usesMMFiles() const { return true; } bool isXcode() const { return true; } bool isOSX() const { return ! iOS; } + bool canCopeWithDuplicateFiles() { return true; } void createPropertyEditors (Array & props) { diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h index 816823951f..f63937f305 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExporter.h @@ -59,6 +59,7 @@ public: virtual void launchProject() = 0; virtual void create() = 0; // may throw a SaveError virtual bool shouldFileBeCompiledByDefault (const RelativePath& path) const; + virtual bool canCopeWithDuplicateFiles() = 0; virtual bool isXcode() const { return false; } virtual bool isVisualStudio() const { return false; } diff --git a/extras/Introjucer/Source/Project/jucer_Module.cpp b/extras/Introjucer/Source/Project/jucer_Module.cpp index dae95198c5..49a7451487 100644 --- a/extras/Introjucer/Source/Project/jucer_Module.cpp +++ b/extras/Introjucer/Source/Project/jucer_Module.cpp @@ -595,25 +595,6 @@ void LibraryModule::findWildcardMatches (const File& localModuleFolder, const St result.addArray (tempList); } -void LibraryModule::addFileWithGroups (Project::Item& group, const RelativePath& file, const String& path) const -{ - const int slash = path.indexOfChar (File::separator); - - if (slash >= 0) - { - const String topLevelGroup (path.substring (0, slash)); - const String remainingPath (path.substring (slash + 1)); - - Project::Item newGroup (group.getOrCreateSubGroup (topLevelGroup)); - addFileWithGroups (newGroup, file, remainingPath); - } - else - { - if (! group.containsChildForFile (file)) - group.addRelativeFile (file, -1, false); - } -} - void LibraryModule::findAndAddCompiledCode (ProjectExporter& exporter, ProjectSaver& projectSaver, const File& localModuleFolder, Array& result) const { @@ -645,6 +626,25 @@ void LibraryModule::findAndAddCompiledCode (ProjectExporter& exporter, ProjectSa } } +static void addFileWithGroups (Project::Item& group, const RelativePath& file, const String& path) +{ + const int slash = path.indexOfChar (File::separator); + + if (slash >= 0) + { + const String topLevelGroup (path.substring (0, slash)); + const String remainingPath (path.substring (slash + 1)); + + Project::Item newGroup (group.getOrCreateSubGroup (topLevelGroup)); + addFileWithGroups (newGroup, file, remainingPath); + } + else + { + if (! group.containsChildForFile (file)) + group.addRelativeFile (file, -1, false); + } +} + void LibraryModule::addBrowsableCode (ProjectExporter& exporter, const Array& compiled, const File& localModuleFolder) const { if (sourceFiles.size() == 0) @@ -664,9 +664,12 @@ void LibraryModule::addBrowsableCode (ProjectExporter& exporter, const Array& result) const; - void addFileWithGroups (Project::Item& group, const RelativePath& file, const String& path) const; void findAndAddCompiledCode (ProjectExporter& exporter, ProjectSaver& projectSaver, const File& localModuleFolder, Array& result) const; void addBrowsableCode (ProjectExporter& exporter, const Array& compiled, const File& localModuleFolder) const; void createLocalHeaderWrapper (ProjectSaver& projectSaver, const File& originalHeader, const File& localHeader) const; diff --git a/extras/JuceDemo/Builds/Android/AndroidManifest.xml b/extras/JuceDemo/Builds/Android/AndroidManifest.xml index 5d647b784b..d6289f4037 100644 --- a/extras/JuceDemo/Builds/Android/AndroidManifest.xml +++ b/extras/JuceDemo/Builds/Android/AndroidManifest.xml @@ -2,8 +2,7 @@ - + diff --git a/extras/audio plugin demo/Builds/VisualStudio2005/JuceDemoPlugin.vcproj b/extras/audio plugin demo/Builds/VisualStudio2005/JuceDemoPlugin.vcproj index e3bca220d9..ebd311a1fa 100644 --- a/extras/audio plugin demo/Builds/VisualStudio2005/JuceDemoPlugin.vcproj +++ b/extras/audio plugin demo/Builds/VisualStudio2005/JuceDemoPlugin.vcproj @@ -770,70 +770,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/extras/audio plugin demo/Builds/VisualStudio2008/JuceDemoPlugin.vcproj b/extras/audio plugin demo/Builds/VisualStudio2008/JuceDemoPlugin.vcproj index 2256f79b44..a88830e6bd 100644 --- a/extras/audio plugin demo/Builds/VisualStudio2008/JuceDemoPlugin.vcproj +++ b/extras/audio plugin demo/Builds/VisualStudio2008/JuceDemoPlugin.vcproj @@ -770,70 +770,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -