Aegisub/build/fribidi/fribidi.vcxproj

115 lines
3.8 KiB
XML
Raw Normal View History

2012-11-09 22:33:03 +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>{FB8E8D19-A4D6-4181-943C-282075F49B41}</ProjectGuid>
<Keyword>MakeFileProj</Keyword>
<ConfigurationType>Makefile</ConfigurationType>
</PropertyGroup>
<!-- Aegisub project configuration -->
<ImportGroup Label="PropertySheets">
<Import Project="$(MSBuildThisFileDirectory)..\aegisub.props" />
</ImportGroup>
<!-- Download fribidi -->
<UsingTask TaskName="TarballProject" AssemblyFile="$(AegisubBinaryDir)BuildTasks.dll" />
<Target
Name="Download"
Inputs="$(FribidiSrcDir)aegisub.hash"
Outputs="$(FribidiSrcDir)nonexistent-file"
>
<TarballProject
Url="http://fribidi.org/download/fribidi-0.19.6.tar.bz2"
Hash="cba8b7423c817e5adf50d28ec9079d14eafcec9127b9e8c8f1960c5ad585e17d"
Root="$(FribidiSrcDir)"
/>
</Target>
<!-- Build it -->
2012-11-09 22:33:03 +01:00
<PropertyGroup Label="ConfigArgs">
2012-11-18 01:22:18 +01:00
<Cflags>-nologo -DFRIBIDI_ENTRY=\"\"</Cflags>
<CfgDebug Condition="'$(Configuration)' == 'Debug'">--enable-debug CFLAGS="-MDd $(Cflags)"</CfgDebug>
<CfgDebug Condition="'$(Configuration)' == 'Release'">--disable-debug CFLAGS="-MD $(Cflags)"</CfgDebug>
<CfgArgs>
--enable-static
--disable-shared
--disable-dependency-tracking
--without-glib
2012-11-18 01:22:18 +01:00
$(CfgDebug)
</CfgArgs>
<AbsSrcDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)$(FribidiSrcDir)'))</AbsSrcDir>
2012-11-09 22:33:03 +01:00
</PropertyGroup>
<ItemGroup>
<AutomakeFiles Include="$(AbsSrcDir)\**\*.am" />
<SourceFiles Include="$(AbsSrcDir)\**\*.c" />
<SourceFiles Include="$(AbsSrcDir)\**\*.h" />
</ItemGroup>
<Target Name="Configure"
Inputs="$(AbsSrcDir)\configure"
Outputs="$(AegisubObjectDir)Makefile"
>
<MsysPath Path="$(AegisubObjectDir)\temp">
2012-11-09 22:33:03 +01:00
<Output TaskParameter="Result" PropertyName="CfgPrefix" />
</MsysPath>
<MsysPath Path="$(MSBuildThisFileDirectory)../../include">
2012-11-09 22:33:03 +01:00
<Output TaskParameter="Result" PropertyName="CfgIncludePrefix" />
</MsysPath>
<MsysPath Path="$(AegisubLibraryDir)">
2012-11-09 22:33:03 +01:00
<Output TaskParameter="Result" PropertyName="CfgLibPrefix" />
</MsysPath>
<ExecShellScript
Command="$(AbsSrcDir)\configure"
2012-11-09 22:33:03 +01:00
Arguments="$(CfgArgs) --prefix=$(CfgPrefix) --libdir=$(CfgLibPrefix) --includedir=$(CfgIncludePrefix)"
WorkingDirectory="$(AegisubObjectDir)"
Configuration="@(ExecShellScript)"
2012-11-09 22:33:03 +01:00
/>
<!-- fribidi defines the symbols to export twice, which causes errors -->
<UpdateFile File="$(AegisubObjectDir)lib\Makefile" Find=" %24(am__append_1)" Replacement="" />
<!-- We only want the library and the docs want c2man, so remove
unused stuff from SUBDIRS -->
<UpdateFile File="$(AegisubObjectDir)Makefile" Find=" bin doc test" Replacement="" />
</Target>
<Target Name="Compile"
Inputs="$(AegisubObjectDir)Makefile;@(SourceFiles)"
Outputs="$(AegisubObjectDir)lib\.libs\fribidi.lib"
>
2012-11-09 22:33:03 +01:00
<ExecShellScript
Command="make"
Arguments=" "
2012-11-09 22:33:03 +01:00
WorkingDirectory="$(AegisubObjectDir)"
Configuration="@(ExecShellScript)"
2012-11-09 22:33:03 +01:00
/>
<Touch Files="$(AegisubObjectDir)lib\.libs\fribidi.lib" />
</Target>
2012-11-09 22:33:03 +01:00
<Target Name="Install"
Inputs="$(AegisubObjectDir)lib\.libs\fribidi.lib"
Outputs="$(AegisubLibraryDir)fribidi.lib"
>
2012-11-09 22:33:03 +01:00
<ExecShellScript
Command="make install"
WorkingDirectory="$(AegisubObjectDir)"
Configuration="@(ExecShellScript)"
2012-11-09 22:33:03 +01:00
/>
</Target>
<Target Name="Build">
<CallTarget Targets="Download;Configure;Compile;Install" />
</Target>
<Target Name="Clean">
<RemoveDir Directories="$(AegisubObjectDir)" ContinueOnError="WarnAndContinue" />
</Target>
<Target Name="Rebuild">
<CallTarget Targets="Clean;Build" />
</Target>
2012-11-09 22:33:03 +01:00
</Project>