| @@ -506,6 +506,8 @@ bool Project::Item::shouldBeAddedToBinaryResources() const { return getShouldAd | |||||
| Value Project::Item::getShouldAddToResourceValue() const { return node.getPropertyAsValue (Ids::resource, getUndoManager()); } | Value Project::Item::getShouldAddToResourceValue() const { return node.getPropertyAsValue (Ids::resource, getUndoManager()); } | ||||
| Value Project::Item::getShouldInhibitWarningsValue() const { return node.getPropertyAsValue (Ids::noWarnings, getUndoManager()); } | Value Project::Item::getShouldInhibitWarningsValue() const { return node.getPropertyAsValue (Ids::noWarnings, getUndoManager()); } | ||||
| Value Project::Item::getShouldUseStdCallValue() const { return node.getPropertyAsValue (Ids::useStdCall, nullptr); } | |||||
| String Project::Item::getFilePath() const | String Project::Item::getFilePath() const | ||||
| { | { | ||||
| @@ -171,6 +171,7 @@ public: | |||||
| bool shouldBeAddedToBinaryResources() const; | bool shouldBeAddedToBinaryResources() const; | ||||
| Value getShouldAddToResourceValue() const; | Value getShouldAddToResourceValue() const; | ||||
| Value getShouldInhibitWarningsValue() const; | Value getShouldInhibitWarningsValue() const; | ||||
| Value getShouldUseStdCallValue() const; | |||||
| //============================================================================== | //============================================================================== | ||||
| bool canContain (const Item& child) const; | bool canContain (const Item& child) const; | ||||
| @@ -136,6 +136,7 @@ protected: | |||||
| for (int i = 0; i < libraryModules.size(); ++i) | for (int i = 0; i < libraryModules.size(); ++i) | ||||
| libraryModules.getUnchecked(i)->addExtraSearchPaths (*this, searchPaths); | libraryModules.getUnchecked(i)->addExtraSearchPaths (*this, searchPaths); | ||||
| searchPaths.removeDuplicates (false); | |||||
| return searchPaths; | return searchPaths; | ||||
| } | } | ||||
| @@ -463,38 +464,22 @@ protected: | |||||
| return filter; | return filter; | ||||
| } | } | ||||
| void addFiles (const Project::Item& projectItem, XmlElement& parent, const bool useStdcall) | |||||
| void addFiles (const Project::Item& projectItem, XmlElement& parent) | |||||
| { | { | ||||
| if (projectItem.isGroup()) | if (projectItem.isGroup()) | ||||
| { | { | ||||
| XmlElement* filter = createGroup (projectItem.getName().toString(), parent); | XmlElement* filter = createGroup (projectItem.getName().toString(), parent); | ||||
| for (int i = 0; i < projectItem.getNumChildren(); ++i) | for (int i = 0; i < projectItem.getNumChildren(); ++i) | ||||
| addFiles (projectItem.getChild(i), *filter, useStdcall); | |||||
| addFiles (projectItem.getChild(i), *filter); | |||||
| } | } | ||||
| else | |||||
| { | |||||
| if (projectItem.shouldBeAddedToTargetProject()) | |||||
| { | |||||
| const RelativePath path (projectItem.getFile(), getTargetFolder(), RelativePath::buildTargetFolder); | |||||
| addFile (path, parent, | |||||
| projectItem.shouldBeAddedToBinaryResources() || (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()), | |||||
| useStdcall); | |||||
| } | |||||
| } | |||||
| } | |||||
| void addGroup (XmlElement& parent, const String& groupName, const Array<RelativePath>& files, const bool useStdcall) | |||||
| { | |||||
| if (files.size() > 0) | |||||
| else if (projectItem.shouldBeAddedToTargetProject()) | |||||
| { | { | ||||
| XmlElement* const group = createGroup (groupName, parent); | |||||
| const RelativePath path (projectItem.getFile(), getTargetFolder(), RelativePath::buildTargetFolder); | |||||
| for (int i = 0; i < files.size(); ++i) | |||||
| if (files.getReference(i).hasFileExtension ("cpp;c;cc;cxx;h;hpp;hxx;rc;ico")) | |||||
| addFile (files.getReference(i), *group, false, | |||||
| useStdcall && shouldFileBeCompiledByDefault (files.getReference(i))); | |||||
| addFile (path, parent, | |||||
| projectItem.shouldBeAddedToBinaryResources() || (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()), | |||||
| shouldFileBeCompiledByDefault (path) && (bool) projectItem.getShouldUseStdCallValue().getValue()); | |||||
| } | } | ||||
| } | } | ||||
| @@ -502,7 +487,7 @@ protected: | |||||
| { | { | ||||
| for (int i = 0; i < groups.size(); ++i) | for (int i = 0; i < groups.size(); ++i) | ||||
| if (groups.getReference(i).getNumChildren() > 0) | if (groups.getReference(i).getNumChildren() > 0) | ||||
| addFiles (groups.getReference(i), files, false); | |||||
| addFiles (groups.getReference(i), files); | |||||
| } | } | ||||
| //============================================================================== | //============================================================================== | ||||
| @@ -583,7 +583,10 @@ public: | |||||
| { | { | ||||
| const RelativePath file (exporter.getJucePathFromProjectFolder().getChildFile (*f)); | const RelativePath file (exporter.getJucePathFromProjectFolder().getChildFile (*f)); | ||||
| group.addRelativeFile (file, -1, file.hasFileExtension ("cpp;mm;r")); | group.addRelativeFile (file, -1, file.hasFileExtension ("cpp;mm;r")); | ||||
| group.getChild (group.getNumChildren() - 1).getShouldInhibitWarningsValue() = true; | |||||
| const Project::Item& last = group.getChild (group.getNumChildren() - 1); | |||||
| last.getShouldInhibitWarningsValue() = true; | |||||
| last.getShouldUseStdCallValue() = true; | |||||
| } | } | ||||
| exporter.groups.add (group); | exporter.groups.add (group); | ||||
| @@ -117,6 +117,7 @@ namespace Ids | |||||
| DECLARE_ID (memberName); | DECLARE_ID (memberName); | ||||
| DECLARE_ID (focusOrder); | DECLARE_ID (focusOrder); | ||||
| DECLARE_ID (hidden); | DECLARE_ID (hidden); | ||||
| DECLARE_ID (useStdCall); | |||||
| DECLARE_ID (androidSDKPath); | DECLARE_ID (androidSDKPath); | ||||
| DECLARE_ID (androidNDKPath); | DECLARE_ID (androidNDKPath); | ||||
| DECLARE_ID (androidInternetNeeded); | DECLARE_ID (androidInternetNeeded); | ||||
| @@ -522,13 +522,6 @@ namespace JuceDummyNamespace {} | |||||
| #ifndef __JUCE_WIN32_NATIVEINCLUDES_JUCEHEADER__ | #ifndef __JUCE_WIN32_NATIVEINCLUDES_JUCEHEADER__ | ||||
| #define __JUCE_WIN32_NATIVEINCLUDES_JUCEHEADER__ | #define __JUCE_WIN32_NATIVEINCLUDES_JUCEHEADER__ | ||||
| #ifndef STRICT | |||||
| #define STRICT 1 | |||||
| #endif | |||||
| #undef WIN32_LEAN_AND_MEAN | |||||
| #define WIN32_LEAN_AND_MEAN 1 | |||||
| #if JUCE_MSVC | #if JUCE_MSVC | ||||
| #ifndef _CPPRTTI | #ifndef _CPPRTTI | ||||
| #error "You're compiling without RTTI enabled! This is needed for a lot of JUCE classes, please update your compiler settings!" | #error "You're compiling without RTTI enabled! This is needed for a lot of JUCE classes, please update your compiler settings!" | ||||
| @@ -542,10 +535,16 @@ namespace JuceDummyNamespace {} | |||||
| #pragma warning (disable : 4100 4201 4514 4312 4995) | #pragma warning (disable : 4100 4201 4514 4312 4995) | ||||
| #endif | #endif | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x0500 | #define _WIN32_WINNT 0x0500 | ||||
| #undef STRICT | |||||
| #define STRICT 1 | |||||
| #undef WIN32_LEAN_AND_MEAN | |||||
| #define WIN32_LEAN_AND_MEAN 1 | |||||
| #undef _UNICODE | |||||
| #define _UNICODE 1 | #define _UNICODE 1 | ||||
| #undef UNICODE | |||||
| #define UNICODE 1 | #define UNICODE 1 | ||||
| #ifndef _WIN32_IE | #ifndef _WIN32_IE | ||||
| #define _WIN32_IE 0x0400 | #define _WIN32_IE 0x0400 | ||||
| #endif | #endif | ||||
| @@ -34319,7 +34318,7 @@ END_JUCE_NAMESPACE | |||||
| #undef _WIN32_WINNT | #undef _WIN32_WINNT | ||||
| #define _WIN32_WINNT 0x500 | #define _WIN32_WINNT 0x500 | ||||
| #undef STRICT | #undef STRICT | ||||
| #define STRICT | |||||
| #define STRICT 1 | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #include <float.h> | #include <float.h> | ||||
| #pragma warning (disable : 4312 4355) | #pragma warning (disable : 4312 4355) | ||||
| @@ -108899,6 +108898,10 @@ END_JUCE_NAMESPACE | |||||
| #if JUCE_USE_FLAC | #if JUCE_USE_FLAC | ||||
| #if JUCE_WINDOWS | #if JUCE_WINDOWS | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x0500 | |||||
| #undef STRICT | |||||
| #define STRICT | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #endif | #endif | ||||
| @@ -73,7 +73,7 @@ namespace JuceDummyNamespace {} | |||||
| */ | */ | ||||
| #define JUCE_MAJOR_VERSION 1 | #define JUCE_MAJOR_VERSION 1 | ||||
| #define JUCE_MINOR_VERSION 54 | #define JUCE_MINOR_VERSION 54 | ||||
| #define JUCE_BUILDNUMBER 24 | |||||
| #define JUCE_BUILDNUMBER 25 | |||||
| /** Current Juce version number. | /** Current Juce version number. | ||||
| @@ -34923,7 +34923,7 @@ public: | |||||
| storeAsXML | storeAsXML | ||||
| }; | }; | ||||
| struct Options | |||||
| struct JUCE_API Options | |||||
| { | { | ||||
| /** Creates an empty Options structure. | /** Creates an empty Options structure. | ||||
| You'll need to fill-in the data memebers appropriately before using this structure. | You'll need to fill-in the data memebers appropriately before using this structure. | ||||
| @@ -29,6 +29,10 @@ | |||||
| #if JUCE_USE_FLAC | #if JUCE_USE_FLAC | ||||
| #if JUCE_WINDOWS | #if JUCE_WINDOWS | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x0500 | |||||
| #undef STRICT | |||||
| #define STRICT | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #endif | #endif | ||||
| @@ -29,6 +29,11 @@ | |||||
| #if _MSC_VER | #if _MSC_VER | ||||
| #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY // (workaround for a VC build problem) | #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY // (workaround for a VC build problem) | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x0500 | |||||
| #undef STRICT | |||||
| #define STRICT | |||||
| #include <intrin.h> | #include <intrin.h> | ||||
| #include <windows.h> | #include <windows.h> | ||||
| @@ -24,10 +24,14 @@ | |||||
| */ | */ | ||||
| #ifdef _MSC_VER | #ifdef _MSC_VER | ||||
| #pragma warning (disable : 4996 4100) | |||||
| #pragma warning (disable : 4996 4100) | |||||
| #endif | #endif | ||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x500 | |||||
| #undef STRICT | |||||
| #define STRICT 1 | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #elif defined (LINUX) | #elif defined (LINUX) | ||||
| #include <X11/Xlib.h> | #include <X11/Xlib.h> | ||||
| @@ -32,7 +32,7 @@ | |||||
| #undef _WIN32_WINNT | #undef _WIN32_WINNT | ||||
| #define _WIN32_WINNT 0x500 | #define _WIN32_WINNT 0x500 | ||||
| #undef STRICT | #undef STRICT | ||||
| #define STRICT | |||||
| #define STRICT 1 | |||||
| #include <windows.h> | #include <windows.h> | ||||
| #include <float.h> | #include <float.h> | ||||
| #pragma warning (disable : 4312 4355) | #pragma warning (disable : 4312 4355) | ||||
| @@ -33,7 +33,7 @@ | |||||
| */ | */ | ||||
| #define JUCE_MAJOR_VERSION 1 | #define JUCE_MAJOR_VERSION 1 | ||||
| #define JUCE_MINOR_VERSION 54 | #define JUCE_MINOR_VERSION 54 | ||||
| #define JUCE_BUILDNUMBER 24 | |||||
| #define JUCE_BUILDNUMBER 25 | |||||
| /** Current Juce version number. | /** Current Juce version number. | ||||
| @@ -30,13 +30,6 @@ | |||||
| #include "../../core/juce_TargetPlatform.h" | #include "../../core/juce_TargetPlatform.h" | ||||
| #include "../../../juce_Config.h" | #include "../../../juce_Config.h" | ||||
| #ifndef STRICT | |||||
| #define STRICT 1 | |||||
| #endif | |||||
| #undef WIN32_LEAN_AND_MEAN | |||||
| #define WIN32_LEAN_AND_MEAN 1 | |||||
| #if JUCE_MSVC | #if JUCE_MSVC | ||||
| #ifndef _CPPRTTI | #ifndef _CPPRTTI | ||||
| #error "You're compiling without RTTI enabled! This is needed for a lot of JUCE classes, please update your compiler settings!" | #error "You're compiling without RTTI enabled! This is needed for a lot of JUCE classes, please update your compiler settings!" | ||||
| @@ -50,10 +43,16 @@ | |||||
| #pragma warning (disable : 4100 4201 4514 4312 4995) | #pragma warning (disable : 4100 4201 4514 4312 4995) | ||||
| #endif | #endif | ||||
| #undef _WIN32_WINNT | |||||
| #define _WIN32_WINNT 0x0500 | #define _WIN32_WINNT 0x0500 | ||||
| #undef STRICT | |||||
| #define STRICT 1 | |||||
| #undef WIN32_LEAN_AND_MEAN | |||||
| #define WIN32_LEAN_AND_MEAN 1 | |||||
| #undef _UNICODE | |||||
| #define _UNICODE 1 | #define _UNICODE 1 | ||||
| #undef UNICODE | |||||
| #define UNICODE 1 | #define UNICODE 1 | ||||
| #ifndef _WIN32_IE | #ifndef _WIN32_IE | ||||
| #define _WIN32_IE 0x0400 | #define _WIN32_IE 0x0400 | ||||
| #endif | #endif | ||||
| @@ -61,7 +61,7 @@ public: | |||||
| }; | }; | ||||
| //============================================================================== | //============================================================================== | ||||
| struct Options | |||||
| struct JUCE_API Options | |||||
| { | { | ||||
| /** Creates an empty Options structure. | /** Creates an empty Options structure. | ||||
| You'll need to fill-in the data memebers appropriately before using this structure. | You'll need to fill-in the data memebers appropriately before using this structure. | ||||