Figured out something for C files instead.
This commit is contained in:
parent
9cd70d294a
commit
b0e5ba2bc7
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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" />
|
||||||
|
|
Loading…
Reference in New Issue