Aegisub/aegisub/build/fribidi/fribidi.vcxproj

123 lines
4.5 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">
<!-- VC boilerplate -->
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<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>
<UsingTask TaskName="ExecShellScript" AssemblyFile="$(AegisubBinaryDir)BuildTasks.dll" />
<UsingTask TaskName="MsysPath" AssemblyFile="$(AegisubBinaryDir)BuildTasks.dll" />
<UsingTask TaskName="UpdateFile" AssemblyFile="$(AegisubBinaryDir)BuildTasks.dll" />
<PropertyGroup Label="ConfigArgs">
<CfgEnableDebug Condition="'$(Configuration)' == 'Debug'">--enable-debug</CfgEnableDebug>
<CfgEnableDebug Condition="'$(Configuration)' == 'Release'">--disable-debug</CfgEnableDebug>
<CfgArgs>--enable-static --disable-shared --disable-dependency-tracking --without-glib $(CfgEnableDebug)</CfgArgs>
</PropertyGroup>
<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"
>
2012-11-09 22:33:03 +01:00
<MsysPath ProjectDir="$(MSBuildThisFileDirectory)" Path="$(AegisubObjectDir)\temp">
<Output TaskParameter="Result" PropertyName="CfgPrefix" />
</MsysPath>
<MsysPath ProjectDir="$(MSBuildThisFileDirectory)" Path="../../include">
<Output TaskParameter="Result" PropertyName="CfgIncludePrefix" />
</MsysPath>
<MsysPath ProjectDir="$(MSBuildThisFileDirectory)" Path="../../lib/$(Platform)/$(Configuration)">
<Output TaskParameter="Result" PropertyName="CfgLibPrefix" />
</MsysPath>
<ExecShellScript
Script="$(FribidiSrcDir)\configure"
Arguments="$(CfgArgs) --prefix=$(CfgPrefix) --libdir=$(CfgLibPrefix) --includedir=$(CfgIncludePrefix)"
WorkingDirectory="$(AegisubObjectDir)"
/>
<!-- 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="-j$(NUMBER_OF_PROCESSORS)"
WorkingDirectory="$(AegisubObjectDir)"
/>
<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)"
/>
</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>
<Target Name="Rebuild">
<CallTarget Targets="Clean;Build" />
</Target>
2012-11-09 22:33:03 +01:00
</Project>