<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="Globals">
    <ProjectGuid>{49766286-2B5D-4177-A860-BD7CE1846EEF}</ProjectGuid>
    <RootNamespace>tests</RootNamespace>
  </PropertyGroup>

  <!-- Aegisub project configuration -->
  <PropertyGroup Label="AegisubConfiguration">
    <AegisubProjectType>exe</AegisubProjectType>
    <SrcDir>..\..\tests\</SrcDir>
  </PropertyGroup>
  <ImportGroup Label="PropertySheets">
    <Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
  </ImportGroup>

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <PreprocessorDefinitions>
        GTEST_HAS_TR1_TUPLE=0;
        %(PreprocessorDefinitions)
      </PreprocessorDefinitions>
      <AdditionalIncludeDirectories>
        $(AegisubSourceBase)libaegisub\include;
        $(SrcDir)support;
        %(AdditionalIncludeDirectories)
      </AdditionalIncludeDirectories>
      <InputRelativeSourceDir>$(SrcDir)</InputRelativeSourceDir>
    </ClCompile>
    <Link>
      <AdditionalLibraryDirectories>$(AegisubLibraryDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
      <SubSystem>Console</SubSystem>
    </Link>
    <PostBuildEvent>
      <Command>$(SrcDir)setup.bat "$(AegisubBinaryDir)"</Command>
    </PostBuildEvent>
  </ItemDefinitionGroup>

  <!-- Source files -->
  <ItemGroup>
    <ClCompile Include="$(SrcDir)tests\access.cpp" />
    <ClCompile Include="$(SrcDir)tests\cajun.cpp" />
    <ClCompile Include="$(SrcDir)tests\calltip_provider.cpp" />
    <ClCompile Include="$(SrcDir)tests\color.cpp" />
    <ClCompile Include="$(SrcDir)tests\dialogue_lexer.cpp" />
    <ClCompile Include="$(SrcDir)tests\format.cpp" />
    <ClCompile Include="$(SrcDir)tests\fs.cpp" />
    <ClCompile Include="$(SrcDir)tests\hotkey.cpp" />
    <ClCompile Include="$(SrcDir)tests\iconv.cpp" />
    <ClCompile Include="$(SrcDir)tests\ifind.cpp" />
    <ClCompile Include="$(SrcDir)tests\keyframe.cpp" />
    <ClCompile Include="$(SrcDir)tests\line_iterator.cpp" />
    <ClCompile Include="$(SrcDir)tests\line_wrap.cpp" />
    <ClCompile Include="$(SrcDir)tests\mru.cpp" />
    <ClCompile Include="$(SrcDir)tests\option.cpp" />
    <ClCompile Include="$(SrcDir)tests\path.cpp" />
    <ClCompile Include="$(SrcDir)tests\signals.cpp" />
    <ClCompile Include="$(SrcDir)tests\syntax_highlight.cpp" />
    <ClCompile Include="$(SrcDir)tests\thesaurus.cpp" />
    <ClCompile Include="$(SrcDir)tests\time.cpp" />
    <ClCompile Include="$(SrcDir)tests\util.cpp" />
    <ClCompile Include="$(SrcDir)tests\uuencode.cpp" />
    <ClCompile Include="$(SrcDir)tests\vfr.cpp" />
    <ClCompile Include="$(SrcDir)tests\word_split.cpp">
      <ExcludedFromBuild>true</ExcludedFromBuild>
    </ClCompile>
    <ClCompile Include="$(SrcDir)support\main.cpp" />
    <ClCompile Include="$(SrcDir)support\util.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(SrcDir)support\main.h" />
    <ClInclude Include="$(SrcDir)support\util.h" />
  </ItemGroup>
  <ItemGroup>
    <None Include="$(SrcDir)setup.bat" />
    <None Include="$(SrcDir)setup.sh" />
  </ItemGroup>

  <!-- Dependencies -->
  <ItemGroup>
    <ProjectReference Include="..\boost\boost.vcxproj">
      <Project>{a649d828-a399-4d81-adef-94cfdba7847f}</Project>
    </ProjectReference>
    <ProjectReference Include="..\googletest\googletest.vcxproj">
      <Project>{fbe51b37-8b12-41e8-b5e0-f00a06b4bcd2}</Project>
    </ProjectReference>
    <ProjectReference Include="..\icu\icu.vcxproj">
      <Project>{f934ab7b-186b-4e96-b20c-a58c38c1b818}</Project>
    </ProjectReference>
    <ProjectReference Include="..\libaegisub\libaegisub.vcxproj">
      <Project>{bb3fed86-db7a-4dc7-964a-260fb86cde61}</Project>
    </ProjectReference>
    <ProjectReference Include="..\libiconv\libiconv.vcxproj">
      <Project>{965054d2-44f2-4eb2-9879-051cc3d7ef08}</Project>
    </ProjectReference>
    <ProjectReference Include="..\universalchardet\universalchardet.vcxproj">
      <Project>{7b56955d-5162-4698-aa5b-47484edc8783}</Project>
    </ProjectReference>
  </ItemGroup>
</Project>
