Add dependency information to the fribidi project

This commit is contained in:
Thomas Goyne 2012-11-13 16:15:39 -08:00
parent d70094917b
commit 9a2b8fc408
1 changed files with 34 additions and 12 deletions

View File

@ -41,7 +41,25 @@
<CfgArgs>--enable-static --disable-shared --disable-dependency-tracking --without-glib $(CfgEnableDebug)</CfgArgs>
</PropertyGroup>
<Target Name="Configure">
<ItemGroup>
<AutomakeFiles Include="$(FribidiSrcDir)\**\*.am" />
<SourceFiles Include="$(FribidiSrcDir)\**\*.c" />
<SourceFiles Include="$(FribidiSrcDir)\**\*.h" />
</ItemGroup>
<Target Name="Bootstrap"
Inputs="$(FribidiSrcDir)\configure.ac;@(AutomakeFiles)"
Outputs="$(FribidiSrcDir)\configure"
>
<ExecShellScript
Script="$(FribidiSrcDir)\bootstrap"
WorkingDirectory="$(FribidiSrcDir)"
/>
</Target>
<Target Name="Configure"
Inputs="$(FribidiSrcDir)\configure"
Outputs="$(AegisubObjectDir)Makefile"
>
<MsysPath ProjectDir="$(MSBuildThisFileDirectory)" Path="$(AegisubObjectDir)\temp">
<Output TaskParameter="Result" PropertyName="CfgPrefix" />
</MsysPath>
@ -67,29 +85,33 @@
<UpdateFile File="$(AegisubObjectDir)Makefile" Find=" bin doc test" Replacement="" />
</Target>
<Target Name="Build">
<Error Condition="!Exists('$(FribidiSrcDir)')" Text="Fribidi source not found at '$(FribidiSrcDir)'" />
<ExecShellScript
Condition="!Exists('$(FribidiSrcDir)\configure')"
Script="$(FribidiSrcDir)\bootstrap"
WorkingDirectory="$(FribidiSrcDir)"
/>
<CallTarget Targets="Configure" Condition="!Exists('$(AegisubObjectDir)\Makefile')" />
<Target Name="Compile"
Inputs="$(AegisubObjectDir)Makefile;@(SourceFiles)"
Outputs="$(AegisubObjectDir)lib\.libs\fribidi.lib"
>
<ExecShellScript
Command="make"
Arguments="-j$(NUMBER_OF_PROCESSORS)"
WorkingDirectory="$(AegisubObjectDir)"
/>
<Touch Files="$(AegisubObjectDir)lib\.libs\fribidi.lib" />
</Target>
<Target Name="Install"
Inputs="$(AegisubObjectDir)lib\.libs\fribidi.lib"
Outputs="$(AegisubLibraryDir)fribidi.lib"
>
<ExecShellScript
Command="make install"
WorkingDirectory="$(AegisubObjectDir)"
/>
</Target>
<Target Name="Build">
<Error Condition="!Exists('$(FribidiSrcDir)')" Text="Fribidi source not found at '$(FribidiSrcDir)'" />
<CallTarget Targets="Bootstrap;Configure;Compile;Install" />
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(AegisubObjectDir)" ContinueOnError="WarnAndContinue" />
</Target>