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>
|
|
|
|
|
|
|
|
<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>
|
2012-11-15 21:36:23 +01:00
|
|
|
<CfgArgs>
|
|
|
|
--enable-static
|
|
|
|
--disable-shared
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--without-glib
|
2012-11-18 01:22:18 +01:00
|
|
|
$(CfgDebug)
|
2012-11-15 21:36:23 +01:00
|
|
|
</CfgArgs>
|
|
|
|
<AbsSrcDir>$([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)$(FribidiSrcDir)'))</AbsSrcDir>
|
2012-11-09 22:33:03 +01:00
|
|
|
</PropertyGroup>
|
|
|
|
|
2012-11-14 01:15:39 +01:00
|
|
|
<ItemGroup>
|
2012-11-15 21:36:23 +01:00
|
|
|
<AutomakeFiles Include="$(AbsSrcDir)\**\*.am" />
|
|
|
|
<SourceFiles Include="$(AbsSrcDir)\**\*.c" />
|
|
|
|
<SourceFiles Include="$(AbsSrcDir)\**\*.h" />
|
2012-11-14 01:15:39 +01:00
|
|
|
</ItemGroup>
|
|
|
|
<Target Name="Bootstrap"
|
2012-11-15 21:36:23 +01:00
|
|
|
Inputs="$(AbsSrcDir)\configure.ac;@(AutomakeFiles)"
|
|
|
|
Outputs="$(AbsSrcDir)\configure"
|
2012-11-14 01:15:39 +01:00
|
|
|
>
|
|
|
|
<ExecShellScript
|
2012-11-15 21:36:23 +01:00
|
|
|
Command="$(AbsSrcDir)\bootstrap"
|
|
|
|
WorkingDirectory="$(AbsSrcDir)"
|
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-14 01:15:39 +01:00
|
|
|
/>
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Target Name="Configure"
|
2012-11-15 21:36:23 +01:00
|
|
|
Inputs="$(AbsSrcDir)\configure"
|
2012-11-14 01:15:39 +01:00
|
|
|
Outputs="$(AegisubObjectDir)Makefile"
|
|
|
|
>
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(AegisubObjectDir)\temp">
|
2012-11-09 22:33:03 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgPrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(MSBuildThisFileDirectory)../../include">
|
2012-11-09 22:33:03 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgIncludePrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
2012-11-15 21:36:23 +01:00
|
|
|
<MsysPath Path="$(AegisubLibraryDir)">
|
2012-11-09 22:33:03 +01:00
|
|
|
<Output TaskParameter="Result" PropertyName="CfgLibPrefix" />
|
|
|
|
</MsysPath>
|
|
|
|
|
|
|
|
<ExecShellScript
|
2012-11-15 21:36:23 +01:00
|
|
|
Command="$(AbsSrcDir)\configure"
|
2012-11-09 22:33:03 +01:00
|
|
|
Arguments="$(CfgArgs) --prefix=$(CfgPrefix) --libdir=$(CfgLibPrefix) --includedir=$(CfgIncludePrefix)"
|
|
|
|
WorkingDirectory="$(AegisubObjectDir)"
|
2012-11-15 21:36:23 +01:00
|
|
|
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>
|
|
|
|
|
2012-11-14 01:15:39 +01:00
|
|
|
<Target Name="Compile"
|
|
|
|
Inputs="$(AegisubObjectDir)Makefile;@(SourceFiles)"
|
|
|
|
Outputs="$(AegisubObjectDir)lib\.libs\fribidi.lib"
|
|
|
|
>
|
2012-11-09 22:33:03 +01:00
|
|
|
<ExecShellScript
|
|
|
|
Command="make"
|
2012-11-19 20:08:34 +01:00
|
|
|
Arguments=" "
|
2012-11-09 22:33:03 +01:00
|
|
|
WorkingDirectory="$(AegisubObjectDir)"
|
2012-11-15 21:36:23 +01:00
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-09 22:33:03 +01:00
|
|
|
/>
|
2012-11-14 01:15:39 +01:00
|
|
|
<Touch Files="$(AegisubObjectDir)lib\.libs\fribidi.lib" />
|
|
|
|
</Target>
|
2012-11-09 22:33:03 +01:00
|
|
|
|
2012-11-14 01:15:39 +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)"
|
2012-11-15 21:36:23 +01:00
|
|
|
Configuration="@(ExecShellScript)"
|
2012-11-09 22:33:03 +01:00
|
|
|
/>
|
|
|
|
</Target>
|
2012-11-10 05:27:04 +01:00
|
|
|
|
2012-11-14 01:15:39 +01:00
|
|
|
<Target Name="Build">
|
2012-11-15 21:36:23 +01:00
|
|
|
<Error Condition="!Exists('$(AbsSrcDir)')" Text="Fribidi source not found at '$(AbsSrcDir)'" />
|
2012-11-14 01:15:39 +01:00
|
|
|
<CallTarget Targets="Bootstrap;Configure;Compile;Install" />
|
|
|
|
</Target>
|
|
|
|
|
2012-11-10 05:27:04 +01:00
|
|
|
<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>
|