<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup Label="ProjectConfigurations">
    <ProjectConfiguration Include="Release|Win32">
      <Configuration>Release</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
  </ItemGroup>
  <PropertyGroup Label="Globals">
    <ProjectGuid>{2BED9E24-4DAE-43A1-8D7F-A4EC05E53DAE}</ProjectGuid>
    <RootNamespace>Documentation</RootNamespace>
    <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
    <ConfigurationType>Makefile</ConfigurationType>
    <UseDebugLibraries>false</UseDebugLibraries>
    <PlatformToolset>v141</PlatformToolset>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="ExtensionSettings">
  </ImportGroup>
  <ImportGroup Label="Shared">
  </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)'=='Release|Win32'">
    <NMakeBuildCommandLine>set PATH=%PATH%;$(SolutionDir)/../apps/doxygen/;$(SolutionDir)/../apps/graphviz/bin/

WHERE doxygen
IF %ERRORLEVEL% NEQ 0 (
  echo "doxygen: error 1: Documentation requires doxygen (http://www.doxygen.org/). The bin directory must be in your PATH."
  exit 1
)
WHERE dot
IF %ERRORLEVEL% NEQ 0 (
  echo "dot: error 1: Documentation requires GraphViz (http://www.graphviz.org/). The bin directory must be in your PATH."
  exit 1
)

cd $(SolutionDir)/../Documentation
( type Doxyfile &amp; echo DOT_PATH="../apps/graphviz/bin/dot.exe" ) | doxygen.exe -
cd $(SolutionDir)</NMakeBuildCommandLine>
  </PropertyGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
    <ClCompile>
      <WarningLevel>Level3</WarningLevel>
      <Optimization>MaxSpeed</Optimization>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
      <SDLCheck>true</SDLCheck>
    </ClCompile>
    <Link>
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
      <OptimizeReferences>true</OptimizeReferences>
    </Link>
    <PreBuildEvent>
      <Command>call doxygen -v
IF ERRORLEVEL 1 (
  echo "doxygen: error 1: Documentation requires doxygen (http://www.doxygen.org/). The bin directory must be in your PATH."
  exit 1
)
call dot -V
IF ERRORLEVEL 1 (
  echo "dot: error 1: Documentation requires GraphViz (http://www.graphviz.org/). The bin directory must be in your PATH."
  exit 1
)

cd $(SolutionDir)/../Documentation
doxygen
cd $(SolutionDir)</Command>
    </PreBuildEvent>
  </ItemDefinitionGroup>
  <ItemGroup>
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <ImportGroup Label="ExtensionTargets">
  </ImportGroup>
</Project>