<?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>{AA137613-96A1-4388-8905-71345B4F8F87}</ProjectGuid>
    <RootNamespace>ffms2</RootNamespace>
  </PropertyGroup>

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

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

  <!-- Project specific configuration -->
  <ItemDefinitionGroup>
    <ClCompile>
      <AdditionalIncludeDirectories>
        $(FfmsSrcDir)\include;
        %(AdditionalIncludeDirectories)
      </AdditionalIncludeDirectories>
      <PreprocessorDefinitions>
        WITH_SWRESAMPLE;
        FFMS_EXPORTS;
        FFMS_STATIC;
        _CRT_SECURE_NO_WARNINGS;
        _CRT_NONSTDC_NO_DEPRECATE;
        _SCL_SECURE_NO_WARNINGS;
        __STDC_CONSTANT_MACROS;
        %(PreprocessorDefinitions)
      </PreprocessorDefinitions>
      <DisableSpecificWarnings>4250;%(DisableSpecificWarnings)</DisableSpecificWarnings>
      <RuntimeTypeInfo>false</RuntimeTypeInfo>
    </ClCompile>
    <Link>
      <AdditionalLibraryDirectories>$(AegisubLibraryDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
    </Link>
    <InstallHeader>
      <HeaderRoot>$(FfmsSrcDir)\include</HeaderRoot>
    </InstallHeader>
  </ItemDefinitionGroup>

  <!-- Source files -->
  <ItemGroup>
    <InstallHeader Include="$(FfmsSrcDir)\include\ffms.h" />
    <InstallHeader Include="$(FfmsSrcDir)\include\ffmscompat.h" />
  </ItemGroup>
  <ItemGroup>
    <None Include="$(FfmsSrcDir)\src\avisynth\avisynth.cpp" />
    <None Include="$(FfmsSrcDir)\src\avisynth\avssources.cpp" />
    <None Include="$(FfmsSrcDir)\src\avisynth\avsutils.cpp" />
    <None Include="$(FfmsSrcDir)\src\avisynth\ffswscale.cpp" />
    <None Include="$(FfmsSrcDir)\src\vapoursynth\vapoursource.cpp" />
    <None Include="$(FfmsSrcDir)\src\vapoursynth\vapoursynth.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="$(FfmsSrcDir)\src\core\audiosource.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\ffms.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\filehandle.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\indexing.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\track.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\utils.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\videosource.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\videoutils.cpp" />
    <ClCompile Include="$(FfmsSrcDir)\src\core\zipfile.cpp" />
  </ItemGroup>
  <ItemGroup>
    <ClInclude Include="$(FfmsSrcDir)\include\ffms.h" />
    <ClInclude Include="$(FfmsSrcDir)\include\ffmscompat.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\avisynth\avisynth.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\avisynth\avssources.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\avisynth\avsutils.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\avisynth\ffswscale.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\audiosource.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\filehandle.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\indexing.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\track.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\utils.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\videosource.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\videoutils.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\core\zipfile.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\vapoursynth\VapourSynth.h" />
    <ClInclude Include="$(FfmsSrcDir)\src\vapoursynth\vapoursource.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>
