1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Sorted out some windows header files. Introjucer RTAS VC project fix.

This commit is contained in:
Julian Storer 2011-07-12 15:51:35 +01:00
parent bf68f7932e
commit f89fa9456a
14 changed files with 55 additions and 48 deletions

View file

@ -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::getShouldInhibitWarningsValue() const { return node.getPropertyAsValue (Ids::noWarnings, getUndoManager()); }
Value Project::Item::getShouldUseStdCallValue() const { return node.getPropertyAsValue (Ids::useStdCall, nullptr); }
String Project::Item::getFilePath() const
{

View file

@ -171,6 +171,7 @@ public:
bool shouldBeAddedToBinaryResources() const;
Value getShouldAddToResourceValue() const;
Value getShouldInhibitWarningsValue() const;
Value getShouldUseStdCallValue() const;
//==============================================================================
bool canContain (const Item& child) const;

View file

@ -136,6 +136,7 @@ protected:
for (int i = 0; i < libraryModules.size(); ++i)
libraryModules.getUnchecked(i)->addExtraSearchPaths (*this, searchPaths);
searchPaths.removeDuplicates (false);
return searchPaths;
}
@ -463,38 +464,22 @@ protected:
return filter;
}
void addFiles (const Project::Item& projectItem, XmlElement& parent, const bool useStdcall)
void addFiles (const Project::Item& projectItem, XmlElement& parent)
{
if (projectItem.isGroup())
{
XmlElement* filter = createGroup (projectItem.getName().toString(), parent);
for (int i = 0; i < projectItem.getNumChildren(); ++i)
addFiles (projectItem.getChild(i), *filter, useStdcall);
addFiles (projectItem.getChild(i), *filter);
}
else
else if (projectItem.shouldBeAddedToTargetProject())
{
if (projectItem.shouldBeAddedToTargetProject())
{
const RelativePath path (projectItem.getFile(), getTargetFolder(), RelativePath::buildTargetFolder);
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)
{
XmlElement* const group = createGroup (groupName, parent);
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)
if (groups.getReference(i).getNumChildren() > 0)
addFiles (groups.getReference(i), files, false);
addFiles (groups.getReference(i), files);
}
//==============================================================================

View file

@ -583,7 +583,10 @@ public:
{
const RelativePath file (exporter.getJucePathFromProjectFolder().getChildFile (*f));
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);

View file

@ -117,6 +117,7 @@ namespace Ids
DECLARE_ID (memberName);
DECLARE_ID (focusOrder);
DECLARE_ID (hidden);
DECLARE_ID (useStdCall);
DECLARE_ID (androidSDKPath);
DECLARE_ID (androidNDKPath);
DECLARE_ID (androidInternetNeeded);

View file

@ -522,13 +522,6 @@ namespace JuceDummyNamespace {}
#ifndef __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
#ifndef _CPPRTTI
#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)
#endif
#undef _WIN32_WINNT
#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
#undef UNICODE
#define UNICODE 1
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif
@ -34319,7 +34318,7 @@ END_JUCE_NAMESPACE
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x500
#undef STRICT
#define STRICT
#define STRICT 1
#include <windows.h>
#include <float.h>
#pragma warning (disable : 4312 4355)
@ -108899,6 +108898,10 @@ END_JUCE_NAMESPACE
#if JUCE_USE_FLAC
#if JUCE_WINDOWS
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#undef STRICT
#define STRICT
#include <windows.h>
#endif

View file

@ -73,7 +73,7 @@ namespace JuceDummyNamespace {}
*/
#define JUCE_MAJOR_VERSION 1
#define JUCE_MINOR_VERSION 54
#define JUCE_BUILDNUMBER 24
#define JUCE_BUILDNUMBER 25
/** Current Juce version number.
@ -34923,7 +34923,7 @@ public:
storeAsXML
};
struct Options
struct JUCE_API Options
{
/** Creates an empty Options structure.
You'll need to fill-in the data memebers appropriately before using this structure.

View file

@ -29,6 +29,10 @@
#if JUCE_USE_FLAC
#if JUCE_WINDOWS
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0500
#undef STRICT
#define STRICT
#include <windows.h>
#endif

View file

@ -29,6 +29,11 @@
#if _MSC_VER
#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 <windows.h>

View file

@ -24,10 +24,14 @@
*/
#ifdef _MSC_VER
#pragma warning (disable : 4996 4100)
#pragma warning (disable : 4996 4100)
#endif
#ifdef _WIN32
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x500
#undef STRICT
#define STRICT 1
#include <windows.h>
#elif defined (LINUX)
#include <X11/Xlib.h>

View file

@ -32,7 +32,7 @@
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x500
#undef STRICT
#define STRICT
#define STRICT 1
#include <windows.h>
#include <float.h>
#pragma warning (disable : 4312 4355)

View file

@ -33,7 +33,7 @@
*/
#define JUCE_MAJOR_VERSION 1
#define JUCE_MINOR_VERSION 54
#define JUCE_BUILDNUMBER 24
#define JUCE_BUILDNUMBER 25
/** Current Juce version number.

View file

@ -30,13 +30,6 @@
#include "../../core/juce_TargetPlatform.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
#ifndef _CPPRTTI
#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)
#endif
#undef _WIN32_WINNT
#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
#undef UNICODE
#define UNICODE 1
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif

View file

@ -61,7 +61,7 @@ public:
};
//==============================================================================
struct Options
struct JUCE_API Options
{
/** Creates an empty Options structure.
You'll need to fill-in the data memebers appropriately before using this structure.