<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <Import Project="..\config.props" />
  <Import Project="..\dirs.props" />
  <PropertyGroup Label="Globals">
    <ProjectGuid>{BA3DD34C-04B7-40D0-B373-9329AA9E8945}</ProjectGuid>
    <WindowsTargetPlatformVersion>10.0.20348.0</WindowsTargetPlatformVersion>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <Import Project="$(vsDir)default.props" />
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
    <Import Project="$(vsDir)NetHackProperties.props" />
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
    <Import Project="$(vsDir)NetHackProperties.props" />
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <Import Project="$(vsDir)NetHackProperties.props" />
  </ImportGroup>
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
    <Import Project="$(vsDir)NetHackProperties.props" />
  </ImportGroup>
  <Import Project="$(vsDir)console.props" />
  <Import Project="$(vsDir)common.props" />
  <Import Project="$(vsDir)files.props" />
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>$(IncDir);$(SysWindDir);$(LuaDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>WIN32CON;DLB;MSWIN_GRAPHICS;ENUM_PM;HAS_STDINT_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClCompile Include="$(RootDir)util\makedefs.c" />
    <ClCompile Include="$(RootDir)util\panic.c" />
    <ClCompile Include="$(RootDir)src\date.c" />
    <ClCompile Include="$(RootDir)src\monst.c" />
    <ClCompile Include="$(RootDir)src\objects.c" />
    <ClCompile Include="$(RootDir)src\alloc.c" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(IncDir)config.h" />
    <ClInclude Include="$(IncDir)config1.h" />
    <ClInclude Include="$(IncDir)context.h" />
    <ClInclude Include="$(IncDir)coord.h" />
    <ClInclude Include="$(IncDir)defsym.h" />
    <ClInclude Include="$(IncDir)global.h" />
    <ClInclude Include="$(IncDir)monattk.h" />
    <ClInclude Include="$(IncDir)monflag.h" />
    <ClInclude Include="$(IncDir)objclass.h" />
    <ClInclude Include="$(IncDir)patchlevel.h" />
    <ClInclude Include="$(IncDir)sym.h" />
    <ClInclude Include="$(IncDir)tradstdc.h" />
    <ClInclude Include="$(IncDir)windconf.h" />
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <Target Name="GenerateHeader" BeforeTargets="ClCompile" Outputs="$(IncDir)\nhlua.h">
    <Message Text="Generating $(IncDir)nhlua.h" />
    <Exec Command="echo /* nhlua.h - generated by makdefs.vcxproj ClCompile */ &gt; nhlua.h" WorkingDirectory="$(IncDir)" />
    <Exec Command="echo #include %22$(SubmodulesDir)lua/lua.h%22 &gt;&gt; nhlua.h" WorkingDirectory="$(IncDir)" />
    <Exec Command="echo LUA_API int (lua_error) (lua_State *L) NORETURN; &gt;&gt; nhlua.h" WorkingDirectory="$(IncDir)" />
    <Exec Command="echo #include %22$(SubmodulesDir)lua/lualib.h%22 &gt;&gt; nhlua.h" WorkingDirectory="$(IncDir)" />
    <Exec Command="echo #include %22$(SubmodulesDir)lua/lauxlib.h%22 &gt;&gt; nhlua.h" WorkingDirectory="$(IncDir)" />
    <Exec Command="echo /*nhlua.h*/ &gt;&gt; nhlua.h" WorkingDirectory="$(IncDir)" />
  </Target>
  <Target Name="AfterBuild">
    <MSBuild Projects="aftermakedefs.proj" Targets="Build" Properties="Configuration=$(Configuration)" />
  </Target>
  <Target Name="AfterClean">
    <MSBuild Projects="aftermakedefs.proj" Targets="Clean" Properties="Configuration=$(Configuration)" />
  </Target>
  <Target Name="AfterRebuild">
    <MSBuild Projects="aftermakedefs.proj" Targets="Build" Properties="Configuration=$(Configuration)" />
  </Target>
</Project>