<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Label="Globals">
    <ProjectGuid>{AA137613-96A1-4388-8905-71345B4F8F87}</ProjectGuid>
    <RootNamespace>ffms2</RootNamespace>
  </PropertyGroup>

  <!-- Aegisub project configuration -->
  <PropertyGroup Label="AegisubConfiguration">
    <AegisubProjectType>dll</AegisubProjectType>
  </PropertyGroup>

  <ImportGroup Label="PropertySheets">
    <Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
  </ImportGroup>

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>
        $(FfmsSrcDir)\include;
        %(AdditionalIncludeDirectories)
      </AdditionalIncludeDirectories>
      <PreprocessorDefinitions>
        WITH_AVRESAMPLE;
        FFMS_EXPORTS;
        HAALISOURCE;
        _CRT_SECURE_NO_WARNINGS;
        _CRT_NONSTDC_NO_DEPRECATE;
        _SCL_SECURE_NO_WARNINGS;
        __STDC_CONSTANT_MACROS;
        %(PreprocessorDefinitions)
      </PreprocessorDefinitions>
      <DisableSpecificWarnings>4250;%(DisableSpecificWarnings)</DisableSpecificWarnings>
    </ClCompile>
    <Link>
      <AdditionalLibraryDirectories>$(AegisubLibraryDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    </Link>
  </ItemDefinitionGroup>

  <!-- Source files -->
  <ItemGroup>
    <InstallHeader Include="$(FfmsSrcDir)\include\ffms.h" />
    <InstallHeader Include="$(FfmsSrcDir)\include\ffmscompat.h" />
  </ItemGroup>
  <ItemGroup>
    <None Include="$(FfmsSrcDir)\src\avisynth\*.cpp" />
    <None Include="$(FfmsSrcDir)\src\avisynth\*.h" />
    <None Include="$(FfmsSrcDir)\src\vapoursynth\*.cpp" />
    <None Include="$(FfmsSrcDir)\src\vapoursynth\*.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="$(FfmsSrcDir)\src\config\libs.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\*.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\*.c" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(FfmsSrcDir)\include\ffms.h" />
    <ClInclude Include="$(FfmsSrcDir)\include\ffmscompat.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\config\msvc-config.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\*.h" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\ffmpeg\ffmpeg.vcxproj">
      <Project>{f934ab7b-186b-4e96-b20c-a58c38c1b819}</Project>
    </ProjectReference>
    <ProjectReference Include="..\zlib\zlib.vcxproj">
      <Project>{10f22a5a-dd9e-44a1-ba2e-2a9a7c78b0ee}</Project>
    </ProjectReference>
  </ItemGroup>
</Project>