mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Projucer: made sure that RTAS files are built with stdcall in MSVC
This commit is contained in:
parent
b6261b9702
commit
0a0c550198
3 changed files with 7 additions and 7 deletions
|
|
@ -757,6 +757,11 @@ protected:
|
|||
TargetOS::windows)));
|
||||
}
|
||||
|
||||
static bool shouldUseStdCall (const RelativePath& path)
|
||||
{
|
||||
return path.getFileNameWithoutExtension().startsWithIgnoreCase ("juce_audio_plugin_client_RTAS_");
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE (MSVCProjectExporterBase)
|
||||
};
|
||||
|
||||
|
|
@ -903,7 +908,7 @@ protected:
|
|||
addFile (path, parent,
|
||||
projectItem.shouldBeAddedToBinaryResources()
|
||||
|| (shouldFileBeCompiledByDefault (path) && ! projectItem.shouldBeCompiled()),
|
||||
shouldFileBeCompiledByDefault (path) && projectItem.shouldUseStdCall());
|
||||
shouldFileBeCompiledByDefault (path) && shouldUseStdCall (path));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1653,7 +1658,7 @@ protected:
|
|||
if (! projectItem.shouldBeCompiled())
|
||||
e->createNewChildElement ("ExcludedFromBuild")->addTextElement ("true");
|
||||
|
||||
if (projectItem.shouldUseStdCall())
|
||||
if (shouldUseStdCall (path))
|
||||
e->createNewChildElement ("CallingConvention")->addTextElement ("StdCall");
|
||||
}
|
||||
else if (path.hasFileExtension (headerFileExtensions))
|
||||
|
|
|
|||
|
|
@ -726,9 +726,6 @@ bool Project::Item::shouldBeAddedToXcodeResources() const { return state [Ids:
|
|||
Value Project::Item::getShouldInhibitWarningsValue() { return state.getPropertyAsValue (Ids::noWarnings, getUndoManager()); }
|
||||
bool Project::Item::shouldInhibitWarnings() const { return state [Ids::noWarnings]; }
|
||||
|
||||
Value Project::Item::getShouldUseStdCallValue() { return state.getPropertyAsValue (Ids::useStdCall, nullptr); }
|
||||
bool Project::Item::shouldUseStdCall() const { return state [Ids::useStdCall]; }
|
||||
|
||||
bool Project::Item::isModuleCode() const { return belongsToModule; }
|
||||
|
||||
String Project::Item::getFilePath() const
|
||||
|
|
|
|||
|
|
@ -209,8 +209,6 @@ public:
|
|||
|
||||
Value getShouldInhibitWarningsValue();
|
||||
bool shouldInhibitWarnings() const;
|
||||
Value getShouldUseStdCallValue();
|
||||
bool shouldUseStdCall() const;
|
||||
|
||||
bool isModuleCode() const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue