ffmpeg.props 1.9 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <ImportGroup Label="PropertySheets">
  4. <Import Project="ffmpeg-version.props" Condition=" '$(ffmpegVersionImported)' == ''"/>
  5. </ImportGroup>
  6. <PropertyGroup>
  7. <ffmpegPropsImported>true</ffmpegPropsImported>
  8. </PropertyGroup>
  9. <PropertyGroup Label="UserMacros">
  10. <ffmpegDir>$(BaseDir)libs\ffmpeg-$(ffmpegVersion)</ffmpegDir>
  11. </PropertyGroup>
  12. <ItemDefinitionGroup>
  13. <ClCompile>
  14. <AdditionalIncludeDirectories>$(ffmpegDir);$(ffmpegDir)\compat\atomics\win32;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  15. <AdditionalIncludeDirectories Condition="('$(Configuration)'=='Debug-x264' OR '$(Configuration)'=='Release-x264') AND '$(Platform)'=='x64'">$(ffmpegDir)\include_x64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  16. <AdditionalIncludeDirectories Condition="('$(Configuration)'=='Debug-openh264' OR '$(Configuration)'=='Release-openh264') AND '$(Platform)'=='x64'">$(ffmpegDir)\include_openh264_x64;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  17. <PreprocessorDefinitions>HAVE_FFMPEG;FFMPEG_STATICLIB;HAVE_AV_CONFIG_H;_ISOC99_SOURCE;_FILE_OFFSET_BITS=64;_LARGEFILE_SOURCE;_USE_MATH_DEFINES;_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_WARNINGS;_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  18. </ClCompile>
  19. <Link>
  20. <AdditionalLibraryDirectories>$(ffmpegDir);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
  21. <AdditionalDependencies>Bcrypt.lib;Secur32.lib;%(AdditionalDependencies)</AdditionalDependencies>
  22. <AdditionalDependencies Condition="'$(Configuration)'=='Debug-openh264' OR '$(Configuration)'=='Release-openh264'">openh264.lib;%(AdditionalDependencies)</AdditionalDependencies>
  23. </Link>
  24. </ItemDefinitionGroup>
  25. </Project>