2011-01-09 08:08:36 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2015-01-18 03:03:42 +01:00
|
|
|
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
2011-01-10 18:46:15 +01:00
|
|
|
<PropertyGroup>
|
2011-01-11 19:15:31 +01:00
|
|
|
<_PropertySheetDisplayName>Output directories</_PropertySheetDisplayName>
|
2011-01-10 18:46:15 +01:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<OutDir Condition="'$(ConfigurationType)'=='DynamicLibrary'">$(AegisubBinaryDir)</OutDir>
|
|
|
|
<OutDir Condition="'$(ConfigurationType)'=='Application'">$(AegisubBinaryDir)</OutDir>
|
|
|
|
<OutDir Condition="'$(ConfigurationType)'=='StaticLibrary'">$(AegisubLibraryDir)</OutDir>
|
|
|
|
<IntDir>$(AegisubObjectDir)</IntDir>
|
|
|
|
<TargetName Condition="'$(ConfigurationType)'=='DynamicLibrary'">$(ProjectName)_$(AegisubPlatformSuffix)</TargetName>
|
2012-03-03 02:49:42 +01:00
|
|
|
<TargetName Condition="'$(ConfigurationType)'=='Application'">$(ProjectName)$(AegisubPlatformSuffix)</TargetName>
|
2011-01-10 18:46:15 +01:00
|
|
|
<TargetName Condition="'$(ConfigurationType)'=='StaticLibrary'">$(ProjectName)</TargetName>
|
|
|
|
</PropertyGroup>
|
|
|
|
<ItemDefinitionGroup>
|
|
|
|
<ClCompile>
|
2015-01-14 04:39:09 +01:00
|
|
|
<InputRelativeSourceDir></InputRelativeSourceDir>
|
2011-01-10 18:46:15 +01:00
|
|
|
</ClCompile>
|
|
|
|
<Link>
|
|
|
|
<OutputFile>$(AegisubBinaryDir)$(TargetName)$(TargetExt)</OutputFile>
|
|
|
|
<ProgramDatabaseFile>$(AegisubBinaryDir)$(TargetName).pdb</ProgramDatabaseFile>
|
|
|
|
<ImportLibrary>$(AegisubLibraryDir)$(ProjectName).lib</ImportLibrary>
|
|
|
|
</Link>
|
|
|
|
<Lib>
|
|
|
|
<OutputFile>$(AegisubLibraryDir)$(ProjectName).lib</OutputFile>
|
|
|
|
</Lib>
|
|
|
|
</ItemDefinitionGroup>
|
2015-01-14 04:39:09 +01:00
|
|
|
|
2015-01-19 04:11:42 +01:00
|
|
|
<!-- Add ObjectFileName for ClCompile items that need to be placed in subdirs
|
|
|
|
for linking to work, for projects with same-named files in separate dirs.
|
|
|
|
|
|
|
|
To use this feature, add a InputRelativeSourceDir metadata to ClCompile for
|
|
|
|
a project.
|
2015-01-14 04:39:09 +01:00
|
|
|
-->
|
|
|
|
<PropertyGroup>
|
|
|
|
<ComputeCompileInputsTargets>
|
|
|
|
ComputeClRelativeObjectFileName;
|
|
|
|
$(ComputeCompileInputsTargets)
|
|
|
|
</ComputeCompileInputsTargets>
|
|
|
|
</PropertyGroup>
|
|
|
|
<Target
|
|
|
|
Name="ComputeClRelativeObjectFileName"
|
|
|
|
Inputs="@(ClCompile)"
|
|
|
|
Outputs="%(InputRelativeSourceDir)|%(RelativeDir)"
|
|
|
|
>
|
2015-01-19 04:11:42 +01:00
|
|
|
<!-- Transform paths on items -->
|
|
|
|
<CalculateOutputDir
|
|
|
|
Items="@(ClCompile)"
|
|
|
|
SourceDir="%(InputRelativeSourceDir)"
|
|
|
|
DestinationDir="."
|
|
|
|
Condition="'%(ClCompile.InputRelativeSourceDir)' != ''"
|
|
|
|
>
|
|
|
|
<Output ItemName="_RelativeClCompile" TaskParameter="Outputs" />
|
|
|
|
</CalculateOutputDir>
|
2015-01-14 04:39:09 +01:00
|
|
|
<ItemGroup>
|
2015-01-19 04:11:42 +01:00
|
|
|
<!-- Add the ObjectFileName -->
|
|
|
|
<_RelativeClCompile Condition="'%(_RelativeClCompile.OutputDir)' != ''">
|
|
|
|
<ObjectFileName>$(IntDir)%(_RelativeClCompile.OutputDir)</ObjectFileName>
|
|
|
|
</_RelativeClCompile>
|
|
|
|
<!-- Remove old items and replace them with new -->
|
|
|
|
<ClCompile Remove="@(_RelativeClCompile->'%(Identity)')" />
|
|
|
|
<ClCompile Include="@(_RelativeClCompile)" />
|
|
|
|
<!-- Forget about the temporary ones -->
|
|
|
|
<_RelativeClCompile Remove="@(_RelativeClCompile)" />
|
2015-01-14 04:39:09 +01:00
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
2012-11-02 01:25:21 +01:00
|
|
|
</Project>
|