2012-11-12 22:10:00 +01:00
|
|
|
<?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>{F934AB7B-186B-4E96-B20C-A58C38C1B819}</ProjectGuid>
|
|
|
|
<Keyword>MakeFileProj</Keyword>
|
|
|
|
<ConfigurationType>Makefile</ConfigurationType>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Aegisub project configuration -->
|
|
|
|
<ImportGroup Label="PropertySheets">
|
|
|
|
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
|
|
|
|
</ImportGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Label="ConfigArgs">
|
2012-11-14 16:46:44 +01:00
|
|
|
<CfgDebug Condition="'$(Configuration)' == 'Debug'">--enable-debug --disable-stripping --extra-cflags=-MDd</CfgDebug>
|
|
|
|
<CfgDebug Condition="'$(Configuration)' == 'Release'">--disable-debug --extra-cflags=-MD</CfgDebug>
|
2012-11-12 22:10:00 +01:00
|
|
|
<CfgArgs>
|
|
|
|
--disable-avfilter
|
|
|
|
--disable-avresample
|
|
|
|
--disable-bzlib
|
|
|
|
--disable-devices
|
|
|
|
--disable-doc
|
|
|
|
--disable-encoders
|
|
|
|
--disable-ffmpeg
|
|
|
|
--disable-ffplay
|
|
|
|
--disable-ffprobe
|
|
|
|
--disable-ffserver
|
|
|
|
--disable-filters
|
|
|
|
--disable-hwaccels
|
|
|
|
--disable-muxers
|
|
|
|
--disable-network
|
|
|
|
--disable-postproc
|
|
|
|
--disable-pthreads
|
|
|
|
--disable-shared
|
|
|
|
--disable-swresample
|
2012-12-27 04:32:47 +01:00
|
|
|
--enable-avresample
|
2012-11-12 22:10:00 +01:00
|
|
|
--enable-gpl
|
|
|
|
--enable-runtime-cpudetect
|
|
|
|
--enable-static
|
2013-10-16 23:04:42 +02:00
|
|
|
--enable-zlib
|
2012-11-12 22:10:00 +01:00
|
|
|
--extra-cflags=-D_SYSCRT
|
2012-11-14 16:46:44 +01:00
|
|
|
--extra-cflags=-wd4005
|
|
|
|
--extra-cflags=-wd4189
|
2012-11-12 22:10:00 +01:00
|
|
|
--toolchain=msvc
|
2012-11-15 21:36:23 +01:00
|
|
|
$(CfgDebug)
|
2012-11-12 22:10:00 +01:00
|
|
|
</CfgArgs>
|
2012-11-15 21:36:23 +01:00
|
|
|
<AbsSrcDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)$(FfmpegSrcDir)'))</AbsSrcDir>
|
2012-11-12 22:10:00 +01:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2012-11-13 18:37:47 +01:00
|
|
|
<ItemGroup>
|
2012-11-15 21:36:23 +01:00
|
|
|
<ConfigureInput Include="$(AbsSrcDir)\configure" />
|
2012-11-13 18:37:47 +01:00
|
|
|
|
|
|
|
<ConfigureOutput Include="$(AegisubObjectDir)config.*" />
|
|
|
|
<ConfigureOutput Include="$(AegisubObjectDir)Makefile" />
|
|
|
|
<ConfigureOutput Include="$(AegisubObjectDir)libavutil\avconfig.h" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<Target Name="Configure"
|
|
|
|
Inputs="@(ConfigureInput)"
|
|
|
|
Outputs="@(ConfigureOutput)"
|
|
|
|
>
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(AegisubObjectDir)\temp">
|
2012-11-12 22:10:00 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgPrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(MSBuildThisFileDirectory)../../include">
|
2012-11-12 22:10:00 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgIncludePrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(AegisubLibraryDir)">
|
2012-11-12 22:10:00 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgLibPrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
2012-11-17 16:50:21 +01:00
|
|
|
<Delete Files="$(AegisubObjectDir)build.timestamp" />
|
|
|
|
|
2012-11-12 22:10:00 +01:00
|
|
|
<ExecShellScript
|
2012-11-15 21:36:23 +01:00
|
|
|
Command="$(AbsSrcDir)\configure"
|
2012-11-12 22:10:00 +01:00
|
|
|
Arguments="$(CfgArgs) --prefix=$(CfgPrefix) --libdir=$(CfgLibPrefix) --incdir=$(CfgIncludePrefix)"
|
|
|
|
WorkingDirectory="$(AegisubObjectDir)"
|
2012-11-15 21:36:23 +01:00
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-12 22:10:00 +01:00
|
|
|
/>
|
|
|
|
|
2012-11-13 18:37:47 +01:00
|
|
|
<!-- Ensure that Makefile has a recent modified time to avoid
|
|
|
|
rerunning configure pointlessly -->
|
|
|
|
<Touch Files="@(ConfigureOutput)" />
|
|
|
|
</Target>
|
2012-11-12 22:10:00 +01:00
|
|
|
|
2012-11-13 18:37:47 +01:00
|
|
|
<Target Name="Compile"
|
2012-11-17 16:50:21 +01:00
|
|
|
Inputs="$(FfmpegSrcDir)"
|
|
|
|
Outputs="$(AegisubObjectDir)build.timestamp"
|
2012-11-13 18:37:47 +01:00
|
|
|
>
|
2012-11-12 22:10:00 +01:00
|
|
|
<ExecShellScript
|
|
|
|
Command="make"
|
|
|
|
Arguments="-j$(NUMBER_OF_PROCESSORS)"
|
|
|
|
WorkingDirectory="$(AegisubObjectDir)"
|
2012-11-15 21:36:23 +01:00
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-12 22:10:00 +01:00
|
|
|
/>
|
|
|
|
|
|
|
|
<ExecShellScript
|
|
|
|
Command="make install"
|
|
|
|
WorkingDirectory="$(AegisubObjectDir)"
|
2012-11-15 21:36:23 +01:00
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-12 22:10:00 +01:00
|
|
|
/>
|
2012-11-17 16:50:21 +01:00
|
|
|
|
|
|
|
<Touch Files="$(AegisubObjectDir)build.timestamp" AlwaysCreate="true" />
|
2012-11-12 22:10:00 +01:00
|
|
|
</Target>
|
|
|
|
|
2012-11-13 18:37:47 +01:00
|
|
|
<Target Name="Build">
|
2012-11-15 21:36:23 +01:00
|
|
|
<Error Condition="!Exists('$(AbsSrcDir)')" Text="FFmpeg source not found at '$(AbsSrcDir)'" />
|
2012-11-13 18:37:47 +01:00
|
|
|
|
|
|
|
<CallTarget Targets="Configure" />
|
|
|
|
<CallTarget Targets="Compile" />
|
|
|
|
</Target>
|
|
|
|
|
2012-11-12 22:10:00 +01:00
|
|
|
<Target Name="Clean">
|
|
|
|
<RemoveDir Directories="$(AegisubObjectDir)" ContinueOnError="WarnAndContinue" />
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="Rebuild">
|
|
|
|
<CallTarget Targets="Clean;Build" />
|
|
|
|
</Target>
|
|
|
|
</Project>
|