Mercurial > hg > index.cgi
diff win/lwasm.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 | 35d4213e6657 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/win/lwasm.vcxproj Tue May 26 17:53:51 2015 -0600 @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + </ItemGroup> + <ItemGroup> + <ClCompile Include="..\lwasm\debug.c" /> + <ClCompile Include="..\lwasm\input.c" /> + <ClCompile Include="..\lwasm\insn_bitbit.c" /> + <ClCompile Include="..\lwasm\insn_gen.c" /> + <ClCompile Include="..\lwasm\insn_indexed.c" /> + <ClCompile Include="..\lwasm\insn_inh.c" /> + <ClCompile Include="..\lwasm\insn_logicmem.c" /> + <ClCompile Include="..\lwasm\insn_rel.c" /> + <ClCompile Include="..\lwasm\insn_rlist.c" /> + <ClCompile Include="..\lwasm\insn_rtor.c" /> + <ClCompile Include="..\lwasm\insn_tfm.c" /> + <ClCompile Include="..\lwasm\instab.c" /> + <ClCompile Include="..\lwasm\list.c" /> + <ClCompile Include="..\lwasm\lwasm.c" /> + <ClCompile Include="..\lwasm\macro.c" /> + <ClCompile Include="..\lwasm\main.c" /> + <ClCompile Include="..\lwasm\os9.c" /> + <ClCompile Include="..\lwasm\output.c" /> + <ClCompile Include="..\lwasm\pass1.c" /> + <ClCompile Include="..\lwasm\pass2.c" /> + <ClCompile Include="..\lwasm\pass3.c" /> + <ClCompile Include="..\lwasm\pass4.c" /> + <ClCompile Include="..\lwasm\pass5.c" /> + <ClCompile Include="..\lwasm\pass6.c" /> + <ClCompile Include="..\lwasm\pass7.c" /> + <ClCompile Include="..\lwasm\pragma.c" /> + <ClCompile Include="..\lwasm\pseudo.c" /> + <ClCompile Include="..\lwasm\section.c" /> + <ClCompile Include="..\lwasm\struct.c" /> + <ClCompile Include="..\lwasm\symbol.c" /> + <ClCompile Include="..\lwasm\unicorns.c" /> + </ItemGroup> + <ItemGroup> + <ClInclude Include="..\lwasm\input.h" /> + <ClInclude Include="..\lwasm\instab.h" /> + <ClInclude Include="..\lwasm\lwasm.h" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="lwlib.vcxproj"> + <Project>{93a52e3f-d19d-4a1a-8b8f-15270bd3d0e2}</Project> + </ProjectReference> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{52309F4D-C1D8-43FC-BC02-C71B69D01E3B}</ProjectGuid> + <Keyword>Win32Proj</Keyword> + <RootNamespace>lwasm</RootNamespace> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>true</UseDebugLibraries> + <PlatformToolset>v120</PlatformToolset> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> + <ConfigurationType>Application</ConfigurationType> + <UseDebugLibraries>false</UseDebugLibraries> + <PlatformToolset>v120</PlatformToolset> + <WholeProgramOptimization>true</WholeProgramOptimization> + <CharacterSet>Unicode</CharacterSet> + </PropertyGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> + <ImportGroup Label="ExtensionSettings"> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> + </ImportGroup> + <PropertyGroup Label="UserMacros" /> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <LinkIncremental>true</LinkIncremental> + <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir> + <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir> + </PropertyGroup> + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <LinkIncremental>false</LinkIncremental> + <OutDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</OutDir> + <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir> + </PropertyGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> + <ClCompile> + <PrecompiledHeader> + </PrecompiledHeader> + <WarningLevel>Level3</WarningLevel> + <Optimization>Disabled</Optimization> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;_DEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <AdditionalIncludeDirectories>../lwlib</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + </Link> + </ItemDefinitionGroup> + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> + <ClCompile> + <WarningLevel>Level3</WarningLevel> + <PrecompiledHeader> + </PrecompiledHeader> + <Optimization>MaxSpeed</Optimization> + <FunctionLevelLinking>true</FunctionLevelLinking> + <IntrinsicFunctions>true</IntrinsicFunctions> + <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <AdditionalIncludeDirectories>../lwlib</AdditionalIncludeDirectories> + </ClCompile> + <Link> + <SubSystem>Console</SubSystem> + <GenerateDebugInformation>true</GenerateDebugInformation> + <EnableCOMDATFolding>true</EnableCOMDATFolding> + <OptimizeReferences>true</OptimizeReferences> + </Link> + </ItemDefinitionGroup> + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> + <ImportGroup Label="ExtensionTargets"> + </ImportGroup> +</Project> \ No newline at end of file