diff --git a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index 7b663a8653..50334f87a4 100644 --- a/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Introjucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -174,13 +174,22 @@ protected: props.add (new ChoicePropertyComponent (getWarningLevelValue(), "Warning Level", StringArray (warningLevelNames), Array (warningLevels))); - const char* const wpoNames[] = { "Enable link-time code generation when possible", - "Always disable link-time code generation", nullptr }; - const var wpoValues[] = { var(), var (1) }; + { + const char* const runtimeNames[] = { "(Default)", "Use static runtime", "Use DLL runtime", nullptr }; + const var runtimeValues[] = { var(), var (false), var (true) }; - props.add (new BooleanPropertyComponent (getUsingRuntimeLibDLL(), "Runtime Library", "Use DLL version of runtime library")); - props.add (new ChoicePropertyComponent (getWholeProgramOptValue(), "Whole Program Optimisation", - StringArray (wpoNames), Array (wpoValues, numElementsInArray (wpoValues)))); + props.add (new ChoicePropertyComponent (getUsingRuntimeLibDLL(), "Runtime Library", + StringArray (runtimeNames), Array (runtimeValues, numElementsInArray (runtimeValues)))); + } + + { + const char* const wpoNames[] = { "Enable link-time code generation when possible", + "Always disable link-time code generation", nullptr }; + const var wpoValues[] = { var(), var (1) }; + + props.add (new ChoicePropertyComponent (getWholeProgramOptValue(), "Whole Program Optimisation", + StringArray (wpoNames), Array (wpoValues, numElementsInArray (wpoValues)))); + } props.add (new TextPropertyComponent (getPrebuildCommand(), "Pre-build Command", 2048, false)); props.add (new TextPropertyComponent (getPostbuildCommand(), "Post-build Command", 2048, false)); diff --git a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h index cb9d3455fd..04ede4a81f 100644 --- a/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h +++ b/extras/Introjucer/Source/Project/jucer_AudioPluginModule.h @@ -378,7 +378,9 @@ namespace RTASHelpers for (ProjectExporter::ConfigIterator config (exporter); config.next();) { config->getValue (Ids::msvcModuleDefinitionFile) = msvcPathToRTASFolder + "juce_RTAS_WinExports.def"; - config->getValue (Ids::useRuntimeLibDLL) = true; + + if (config->getValue (Ids::useRuntimeLibDLL).getValue().isVoid()) + config->getValue (Ids::useRuntimeLibDLL) = true; if (config->getValue (Ids::postbuildCommand).toString().isEmpty()) config->getValue (Ids::postbuildCommand) = "copy /Y \"" + msvcPathToRTASFolder + "juce_RTAS_WinResources.rsr" @@ -539,7 +541,8 @@ namespace AAXHelpers exporter.msvcTargetSuffix = ".aaxplugin"; for (ProjectExporter::ConfigIterator config (exporter); config.next();) - config->getValue (Ids::useRuntimeLibDLL) = true; + if (config->getValue (Ids::useRuntimeLibDLL).getValue().isVoid()) + config->getValue (Ids::useRuntimeLibDLL) = true; } else {