Browse Source

Projucer: made sure that RTAS files are built with stdcall in MSVC

tags/2021-05-28
jules 9 years ago
parent
commit
0a0c550198
3 changed files with 7 additions and 7 deletions
  1. +7
    -2
      extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h
  2. +0
    -3
      extras/Projucer/Source/Project/jucer_Project.cpp
  3. +0
    -2
      extras/Projucer/Source/Project/jucer_Project.h

+ 7
- 2
extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h View File

@@ -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))


+ 0
- 3
extras/Projucer/Source/Project/jucer_Project.cpp View File

@@ -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


+ 0
- 2
extras/Projucer/Source/Project/jucer_Project.h View File

@@ -209,8 +209,6 @@ public:
Value getShouldInhibitWarningsValue();
bool shouldInhibitWarnings() const;
Value getShouldUseStdCallValue();
bool shouldUseStdCall() const;
bool isModuleCode() const;


Loading…
Cancel
Save