diff --git a/modules/VC11WorkspaceCreator.pm b/modules/VC11WorkspaceCreator.pm index 79eb33519..c1387fddd 100644 --- a/modules/VC11WorkspaceCreator.pm +++ b/modules/VC11WorkspaceCreator.pm @@ -29,7 +29,7 @@ sub pre_workspace { print $fh '', $crlf, 'Microsoft Visual Studio Solution File, Format Version 11.00', $crlf; $self->print_workspace_comment($fh, - '# Visual Studio 2011', $crlf, + '# Visual Studio 2012', $crlf, '#', $crlf, '# This file was generated by MPC. Any changes made directly to', $crlf, '# this file will be lost the next time it is generated.', $crlf, diff --git a/modules/VC12WorkspaceCreator.pm b/modules/VC12WorkspaceCreator.pm index bed947379..3795ac2ea 100644 --- a/modules/VC12WorkspaceCreator.pm +++ b/modules/VC12WorkspaceCreator.pm @@ -29,7 +29,7 @@ sub pre_workspace { print $fh '', $crlf, 'Microsoft Visual Studio Solution File, Format Version 12.00', $crlf; $self->print_workspace_comment($fh, - '# Visual Studio 2012', $crlf, + '# Visual Studio 2013', $crlf, '#', $crlf, '# This file was generated by MPC. Any changes made directly to', $crlf, '# this file will be lost the next time it is generated.', $crlf, diff --git a/templates/vc10.mpd b/templates/vc10.mpd old mode 100644 new mode 100755 index af1bc8fce..abc582b5b --- a/templates/vc10.mpd +++ b/templates/vc10.mpd @@ -25,9 +25,11 @@ <%foreach(platforms)%> <%foreach(configurations)%> - <%if(type_is_dynamic)%>DynamicLibrary<%else%><%if(type_is_static && staticname)%>StaticLibrary<%else%><%if(custom_only)%>Utility<%else%><%if(makeoutput)%>Makefile<%else%>Application<%endif%><%endif%><%endif%><%endif%> + <%if(type_is_static && staticname)%>StaticLibrary<%else%><%if(type_is_dynamic)%>DynamicLibrary<%else%><%if(custom_only)%>Utility<%else%><%if(makeoutput)%>Makefile<%else%>Application<%endif%><%endif%><%endif%><%endif%> <%if(UseOfMFC)%> - <%UseOfMFC%> + <%if(compares(UseOfMFC,1))%>Static<%else%><%if(compares(UseOfMFC,2))%>Dynamic<%endif%><%endif%> +<%else%> + false <%endif%> <%if(UseOfATL)%> <%UseOfATL%> @@ -88,7 +90,7 @@ <%makeclean%> CONF=<%configuration%> <%makeoutput%> <%else%> - <%if(type_is_dynamic)%><%if(dllout)%><%dllout%>\<%else%><%libout%>\<%endif%><%else%><%if(type_is_static)%><%libout%>\<%else%><%if(exeout)%><%exeout%>\<%if(windows_style)%><%output_dir("Debug")%>\<%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%>\<%else%><%output_dir(".")%>\<%endif%><%endif%><%endif%><%endif%> + <%if(type_is_dynamic)%><%if(dllout)%><%dllout%><%else%><%libout%><%endif%><%else%><%if(type_is_static&&staticname)%><%libout%><%else%><%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug")%><%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%><%endif%><%endif%><%endif%> <%if(intdir)%><%intdir%>\<%else%><%intermediate_dir%>\<%noextension(project_file)%>\<%if(output_subdir)%><%output_subdir%>\<%endif%><%endif%> <%if(debug_prj)%>true<%else%>false<%endif%> <%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%else%><%if(type_is_static)%><%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%endif%><%endif%> @@ -193,7 +195,13 @@ <%if(SmallerTypeCheck)%> true <%endif%> - <%if(runtime_library)%><%runtime_library%><%else%><%if(type_is_static || need_staticflags)%><%if(debug_prj)%>MultiThreadedDebug<%else%>MultiThreaded<%endif%><%else%><%if(debug_prj)%>MultiThreadedDebugDLL<%else%>MultiThreadedDLL<%endif%><%endif%><%endif%> + +<%if(runtime_library)%> + <%if(compares(runtime_library,0))%>MultiThreaded<%else%><%if(compares(runtime_library,1))%>MultiThreadedDebug<%else%><%if(compares(runtime_library,2))%>MultiThreadedDLL<%else%><%if(compares(runtime_library,3))%>MultiThreadedDebugDLL<%endif%><%endif%><%endif%><%endif%> +<%else%> + <%if(type_is_static || need_staticflags)%><%if(debug_prj)%>MultiThreadedDebug<%else%>MultiThreaded<%endif%><%else%><%if(debug_prj)%>MultiThreadedDebugDLL<%else%>MultiThreadedDLL<%endif%><%endif%> +<%endif%> + <%if(StructMemberAlignment)%> <%StructMemberAlignment%> <%endif%> @@ -272,9 +280,11 @@ <%BrowseInformationFile%> <%endif%> <%if(compares(warning_level, all))%>EnableAllWarnings<%else%><%if(compares(warning_level, none) || compares(warning_level, 0))%>TurnOffAllWarnings<%else%>Level<%warning_level("3")%><%endif%><%endif%> + <%if(!managed && debug_format)%> - <%debug_format%> + <%if(compares(debug_format, 0))%>None<%else%><%if(compares(debug_format, 1))%>OldStyle<%else%><%if(compares(debug_format, 2))%>ProgramDatabase<%else%><%if(compares(debug_format, 3))%>EditAndContinue<%endif%><%endif%><%endif%><%endif%> <%endif%> + <%if(CallingConvention)%> <%CallingConvention%> <%endif%> @@ -337,12 +347,12 @@ <%eval(prelink)%> <%endif%> -<%if(type_is_static)%> +<%if(type_is_static && staticname)%> <%if(staticname)%> <%libout%>\<%libname_prefix%><%staticname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%> <%endif%> - %(AdditionalDependencies) + <%foreach(reverse(libs))%><%fornotfirst(";")%><%libname_prefix%><%lib%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%><%endfor%><%foreach(reverse(lit_libs))%>;<%lit_lib%>.lib<%endfor%><%foreach(reverse(pure_libs))%> <%pure_lib%><%endfor%>;%(AdditionalDependencies) <%foreach(libpaths)%><%libpath%>;<%endfor%>%(AdditionalLibraryDirectories) <%if(SuppressStartupBanner)%> true @@ -406,7 +416,8 @@ <%if(GenerateDebugInformation)%> <%GenerateDebugInformation%> <%endif%> - <%foreach(reverse(libs))%><%libname_prefix%><%lib%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%>;<%endfor%><%foreach(reverse(lit_libs))%><%lit_lib%>.lib;<%endfor%><%foreach(reverse(pure_libs))%> <%pure_lib%>;<%endfor%>%(AdditionalDependencies) + <%foreach(reverse(libs))%><%fornotfirst(";")%><%libname_prefix%><%lib%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%lib_ext%><%endfor%><%foreach(reverse(lit_libs))%>;<%lit_lib%>.lib<%endfor%><%foreach(reverse(pure_libs))%> <%pure_lib%><%endfor%>;%(AdditionalDependencies) + <%foreach(libpaths)%><%libpath%>;<%endfor%>%(AdditionalLibraryDirectories) <%if(exename || sharedname || staticname)%> $(OutDir)<%if(type_is_dynamic)%><%libname_prefix%><%sharedname%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%dll_ext%><%else%><%exename%><%if(use_exe_modifier)%><%lib_modifier%><%endif%><%exe_ext%><%endif%> <%endif%> @@ -425,7 +436,9 @@ <%if(PerUserRedirection)%> true <%endif%> + <%if(LinkStatus)%> true <%endif%> @@ -846,9 +859,9 @@ <%endfor%> <%endif%> -<%if(resource_files && !type_is_static)%> +<%if(resource_files)%> -<%foreach(resource_files)%> +<%foreach(uniq(resource_files))%> <<%if(ends_with(resource_file,\.rc))%>ResourceCompile<%else%>None<%endif%> Include="<%resource_file%>" /> <%endfor%>