<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <!-- VC boilerplate -->
  <PropertyGroup Label="Globals">
    <ProjectGuid>{C832EAF3-860D-4373-A02C-933626B47A5E}</ProjectGuid>
    <RootNamespace>csrihelper</RootNamespace>
  </PropertyGroup>

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

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <PreprocessorDefinitions>CSRI_NO_EXPORT;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <AdditionalIncludeDirectories>$(SrcDir)include\;$(SrcDir)lib\;$(SrcDir)lib\win32\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
    </ClCompile>
    <InstallHeader>
      <HeaderRoot>$(SrcDir)include</HeaderRoot>
    </InstallHeader>
  </ItemDefinitionGroup>

  <!-- Source files -->
  <ItemGroup>
    <InstallHeader Include="$(SrcDir)include\csri\*.h" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(SrcDir)include\csri\csri.h" />
    <ClInclude Include="$(SrcDir)include\csri\fmtids.h" />
    <ClInclude Include="$(SrcDir)include\csri\logging.h" />
    <ClInclude Include="$(SrcDir)include\csri\openerr.h" />
    <ClInclude Include="$(SrcDir)include\csri\stream.h" />
    <ClInclude Include="$(SrcDir)include\subhelp.h" />
    <ClInclude Include="$(SrcDir)include\visibility.h" />
    <ClInclude Include="$(SrcDir)lib\csrilib.h" />
    <ClInclude Include="$(SrcDir)lib\win32\csrilib_os.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="$(SrcDir)lib\list.c" />
    <ClCompile Include="$(SrcDir)lib\win32\enumerate.c" />
    <ClCompile Include="$(SrcDir)lib\wrap.c" />
    <ClCompile Include="$(SrcDir)subhelp\logging.c" />
    <ClCompile Include="$(SrcDir)subhelp\win32\openfile.c" />
  </ItemGroup>
</Project>
