Mercurial > hg > index.cgi
comparison win/lwlib.vcxproj @ 361:4130ffdeb5c8
Add contributed support for building with Microsoft's compiler
Thanks to Erik G <erik@6809.org> for various updates to allow building with
Microsoft's compiler. These changes, in addition to some other generally
good fixups from other commits, include:
* move the version define to its own source file instead of as an option in
Makefile. This is better anyway.
* add some compatibilty stuff to lwlib
This support is minimally invasive so it should continue to work. However,
this is contributed code which I have no way to test.
author | William Astle <lost@l-w.ca> |
---|---|
date | Tue, 26 May 2015 17:53:51 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
360:ade217fd76a5 | 361:4130ffdeb5c8 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
3 <ItemGroup Label="ProjectConfigurations"> | |
4 <ProjectConfiguration Include="Debug|Win32"> | |
5 <Configuration>Debug</Configuration> | |
6 <Platform>Win32</Platform> | |
7 </ProjectConfiguration> | |
8 <ProjectConfiguration Include="Release|Win32"> | |
9 <Configuration>Release</Configuration> | |
10 <Platform>Win32</Platform> | |
11 </ProjectConfiguration> | |
12 </ItemGroup> | |
13 <ItemGroup> | |
14 <ClCompile Include="..\lwlib\lw_alloc.c" /> | |
15 <ClCompile Include="..\lwlib\lw_cmdline.c" /> | |
16 <ClCompile Include="..\lwlib\lw_error.c" /> | |
17 <ClCompile Include="..\lwlib\lw_expr.c" /> | |
18 <ClCompile Include="..\lwlib\lw_free.c" /> | |
19 <ClCompile Include="..\lwlib\lw_realloc.c" /> | |
20 <ClCompile Include="..\lwlib\lw_stack.c" /> | |
21 <ClCompile Include="..\lwlib\lw_string.c" /> | |
22 <ClCompile Include="..\lwlib\lw_stringlist.c" /> | |
23 <ClCompile Include="..\lwlib\lw_win.c" /> | |
24 </ItemGroup> | |
25 <ItemGroup> | |
26 <ClInclude Include="..\lwlib\lw_alloc.h" /> | |
27 <ClInclude Include="..\lwlib\lw_cmdline.h" /> | |
28 <ClInclude Include="..\lwlib\lw_error.h" /> | |
29 <ClInclude Include="..\lwlib\lw_expr.h" /> | |
30 <ClInclude Include="..\lwlib\lw_stack.h" /> | |
31 <ClInclude Include="..\lwlib\lw_string.h" /> | |
32 <ClInclude Include="..\lwlib\lw_stringlist.h" /> | |
33 <ClInclude Include="..\lwlib\lw_version.h" /> | |
34 <ClInclude Include="..\lwlib\lw_win.h" /> | |
35 </ItemGroup> | |
36 <PropertyGroup Label="Globals"> | |
37 <ProjectGuid>{93A52E3F-D19D-4A1A-8B8F-15270BD3D0E2}</ProjectGuid> | |
38 <Keyword>Win32Proj</Keyword> | |
39 <RootNamespace>lwlib</RootNamespace> | |
40 </PropertyGroup> | |
41 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> | |
42 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> | |
43 <ConfigurationType>StaticLibrary</ConfigurationType> | |
44 <UseDebugLibraries>true</UseDebugLibraries> | |
45 <PlatformToolset>v120</PlatformToolset> | |
46 <CharacterSet>Unicode</CharacterSet> | |
47 </PropertyGroup> | |
48 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> | |
49 <ConfigurationType>StaticLibrary</ConfigurationType> | |
50 <UseDebugLibraries>false</UseDebugLibraries> | |
51 <PlatformToolset>v120</PlatformToolset> | |
52 <WholeProgramOptimization>true</WholeProgramOptimization> | |
53 <CharacterSet>Unicode</CharacterSet> | |
54 </PropertyGroup> | |
55 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> | |
56 <ImportGroup Label="ExtensionSettings"> | |
57 </ImportGroup> | |
58 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
59 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
60 </ImportGroup> | |
61 <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
62 <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> | |
63 </ImportGroup> | |
64 <PropertyGroup Label="UserMacros" /> | |
65 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
66 <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir> | |
67 <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir> | |
68 </PropertyGroup> | |
69 <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
70 <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir> | |
71 <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir> | |
72 </PropertyGroup> | |
73 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
74 <ClCompile> | |
75 <PrecompiledHeader> | |
76 </PrecompiledHeader> | |
77 <WarningLevel>Level3</WarningLevel> | |
78 <Optimization>Disabled</Optimization> | |
79 <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
80 </ClCompile> | |
81 <Link> | |
82 <SubSystem>Windows</SubSystem> | |
83 <GenerateDebugInformation>true</GenerateDebugInformation> | |
84 </Link> | |
85 </ItemDefinitionGroup> | |
86 <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | |
87 <ClCompile> | |
88 <WarningLevel>Level3</WarningLevel> | |
89 <PrecompiledHeader> | |
90 </PrecompiledHeader> | |
91 <Optimization>MaxSpeed</Optimization> | |
92 <FunctionLevelLinking>true</FunctionLevelLinking> | |
93 <IntrinsicFunctions>true</IntrinsicFunctions> | |
94 <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> | |
95 </ClCompile> | |
96 <Link> | |
97 <SubSystem>Windows</SubSystem> | |
98 <GenerateDebugInformation>true</GenerateDebugInformation> | |
99 <EnableCOMDATFolding>true</EnableCOMDATFolding> | |
100 <OptimizeReferences>true</OptimizeReferences> | |
101 </Link> | |
102 </ItemDefinitionGroup> | |
103 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> | |
104 <ImportGroup Label="ExtensionTargets"> | |
105 </ImportGroup> | |
106 </Project> |