Figured out something for C files instead.

This commit is contained in:
Pietro Gagliardi 2015-11-25 11:56:37 -05:00
parent 9cd70d294a
commit b0e5ba2bc7
2 changed files with 8 additions and 13 deletions

View File

@ -1,4 +1,7 @@
// 25 november 2015 // 25 november 2015
#ifdef __cplusplus
#error msbuild is being dumb and making this a C++ file
#endif
#include "../windows/winapi.h" #include "../windows/winapi.h"
#include "../ui.h" #include "../ui.h"

View File

@ -43,12 +43,12 @@
<OutDir>..\out\</OutDir> <OutDir>..\out\</OutDir>
<IntDir>..\.obj\</IntDir> <IntDir>..\.obj\</IntDir>
<EnableManagedIncrementalBuild>false</EnableManagedIncrementalBuild> <EnableManagedIncrementalBuild>false</EnableManagedIncrementalBuild>
<CustomBuildBeforeTargets>Link</CustomBuildBeforeTargets>
</PropertyGroup> </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile> <ClCompile>
<WarningLevel>EnableAllWarnings</WarningLevel> <!-- TODO should be EnableAllWarnings but that enables way too much -->
<WarningLevel>Level4</WarningLevel>
<PrecompiledHeader>NotUsing</PrecompiledHeader> <PrecompiledHeader>NotUsing</PrecompiledHeader>
<!-- TODO there's a better way for this --> <!-- TODO there's a better way for this -->
<!-- do not warn about unreferended parameters --> <!-- do not warn about unreferended parameters -->
@ -61,15 +61,6 @@
<!--TODO <MinimumRequiredVersion>600</MinimumRequiredVersion>--> <!--TODO <MinimumRequiredVersion>600</MinimumRequiredVersion>-->
<!-- <AdditionalOptions>additional linker options %(AdditionalOptions)</AdditionalOptions>--> <!-- <AdditionalOptions>additional linker options %(AdditionalOptions)</AdditionalOptions>-->
</Link> </Link>
<!-- TODO convert to a build rule -->
<!-- TODO use /Wall instead of /W4 -->
<CustomBuildStep>
<!-- TODO /MDd, /MTd, /EHa? -->
<!-- TODO /RTC1 /RTCc /RTCs /RTCu /sdl -->
<Command>cl sta.c /c /TC /analyze /bigobj /nologo /W4 /Wp64 /Zi /wd4100 /Fo$(IntDir)sta.obj</Command>
<Inputs>sta.c</Inputs>
<Outputs>$(IntDir)sta.obj</Outputs>
</CustomBuildStep>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
@ -80,9 +71,10 @@
<ClInclude Include="wpf.h" /> <ClInclude Include="wpf.h" />
<ClCompile Include="sta.c">
<CompileAsManaged>false</CompileAsManaged>
</ClCompile>
<ClCompile Include="wpf.cpp" /> <ClCompile Include="wpf.cpp" />
<Link Include="$(IntDir)sta.obj" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />