2011-01-09 08:08:36 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="4.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
|
|
|
|
|
|
|
<!-- Magic pseudo-target that makes object filenames relative to a given directory
|
|
|
|
|
|
|
|
First define its relation to the system build targets: It must run as part of the
|
|
|
|
"compile inputs" section, but before all the system things. The system things here
|
|
|
|
include testing whether multiple inputs might have identical outputs, which will
|
|
|
|
produce a warning which we don't want.
|
|
|
|
|
|
|
|
Then define the target, make it depend on all ClCompile items, and have a fake
|
|
|
|
output that can never be a valid filename (due to pipe character). Instead have
|
|
|
|
the output name depend on the two variables involved in how the ObjectFileName
|
|
|
|
is determined: The specified InputRelativeSourceDir, and the actual RelativeDir
|
|
|
|
for the items.
|
|
|
|
This will cause MSBuild to batch the items as appropriate.
|
|
|
|
|
|
|
|
To use this feature, add a InputRelativeSourceDir metadata to ClCompile for
|
|
|
|
a project.
|
|
|
|
-->
|
|
|
|
<PropertyGroup>
|
|
|
|
<ComputeCompileInputsTargets>
|
|
|
|
ComputeClRelativeObjectFileName;
|
|
|
|
$(ComputeCompileInputsTargets)
|
|
|
|
</ComputeCompileInputsTargets>
|
|
|
|
</PropertyGroup>
|
|
|
|
<Target
|
|
|
|
Name="ComputeClRelativeObjectFileName"
|
|
|
|
Inputs="@(ClCompile)"
|
|
|
|
Outputs="%(InputRelativeSourceDir)|%(RelativeDir)"
|
|
|
|
>
|
|
|
|
<PropertyGroup>
|
|
|
|
<InputRelativeDir>%(ClCompile.RelativeDir)</InputRelativeDir>
|
|
|
|
<InputRelativeDir Condition="!HasTrailingSlash('$(InputRelativeDir)')">$(InputRelativeDir)\</InputRelativeDir>
|
|
|
|
<InputRelativeSourceDir>%(ClCompile.InputRelativeSourceDir)</InputRelativeSourceDir>
|
|
|
|
<InputRelativeSourceDir Condition="!HasTrailingSlash('$(InputRelativeSourceDir)')">$(InputRelativeSourceDir)\</InputRelativeSourceDir>
|
|
|
|
<InputRelativeDir>$(InputRelativeDir.Replace("$(InputRelativeSourceDir)",""))</InputRelativeDir>
|
|
|
|
</PropertyGroup>
|
|
|
|
<!-- <Exec Command="echo ClCompile output for @(ClCompile -> '%(Filename)%(Extension)') to $(IntDir)$(InputRelativeDir)" /> -->
|
|
|
|
<ItemGroup>
|
|
|
|
<ClCompile Condition="'%(ClCompile.InputRelativeSourceDir)' != ''">
|
|
|
|
<ObjectFileName>$(IntDir)$(InputRelativeDir)</ObjectFileName>
|
|
|
|
</ClCompile>
|
|
|
|
</ItemGroup>
|
|
|
|
</Target>
|
2012-11-02 01:25:21 +01:00
|
|
|
</Project>
|