Browse Source

Projucer: Use dynamic runtime linking by default on Windows

tags/2021-05-28
ed 7 years ago
parent
commit
5095bea44a
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h

+ 1
- 7
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_MSVC.h View File

@@ -542,7 +542,7 @@ public:
cl->createNewChildElement ("AdditionalIncludeDirectories")->addTextElement (includePaths.joinIntoString (";")); cl->createNewChildElement ("AdditionalIncludeDirectories")->addTextElement (includePaths.joinIntoString (";"));
cl->createNewChildElement ("PreprocessorDefinitions")->addTextElement (getPreprocessorDefs (config, ";") + ";%(PreprocessorDefinitions)"); cl->createNewChildElement ("PreprocessorDefinitions")->addTextElement (getPreprocessorDefs (config, ";") + ";%(PreprocessorDefinitions)");
const bool runtimeDLL = shouldUseRuntimeDLL (config);
const bool runtimeDLL = config.isUsingRuntimeLibDLL();
cl->createNewChildElement ("RuntimeLibrary")->addTextElement (runtimeDLL ? (isDebug ? "MultiThreadedDebugDLL" : "MultiThreadedDLL") cl->createNewChildElement ("RuntimeLibrary")->addTextElement (runtimeDLL ? (isDebug ? "MultiThreadedDebugDLL" : "MultiThreadedDLL")
: (isDebug ? "MultiThreadedDebug" : "MultiThreaded")); : (isDebug ? "MultiThreadedDebug" : "MultiThreaded"));
cl->createNewChildElement ("RuntimeTypeInfo")->addTextElement ("true"); cl->createNewChildElement ("RuntimeTypeInfo")->addTextElement ("true");
@@ -1264,12 +1264,6 @@ public:
return {}; return {};
} }
bool shouldUseRuntimeDLL (const MSVCBuildConfiguration& config) const
{
return (config.config [Ids::useRuntimeLibDLL].isVoid() ? (getOwner().hasTarget (AAXPlugIn) || getOwner().hasTarget (RTASPlugIn))
: config.isUsingRuntimeLibDLL());
}
File getVCProjFile() const { return getOwner().getProjectFile (getProjectFileSuffix(), getName()); } File getVCProjFile() const { return getOwner().getProjectFile (getProjectFileSuffix(), getName()); }
File getVCProjFiltersFile() const { return getOwner().getProjectFile (getFiltersFileSuffix(), getName()); } File getVCProjFiltersFile() const { return getOwner().getProjectFile (getFiltersFileSuffix(), getName()); }


Loading…
Cancel
Save