mirror of https://github.com/odrling/Aegisub
Rework header copy in boost build
This commit is contained in:
parent
2986932f31
commit
773b60c36c
|
@ -28,7 +28,20 @@
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
|
|
||||||
<Target Name="CopyHeaders" BeforeTargets="ClCompile">
|
<PropertyGroup>
|
||||||
|
<BuildGenerateSourcesTargets>
|
||||||
|
$(BuildGenerateSourcesTargets);
|
||||||
|
CopyBoostHeaders
|
||||||
|
</BuildGenerateSourcesTargets>
|
||||||
|
</PropertyGroup>
|
||||||
|
<!-- Have the target depend on the boost version.hpp file so it will usually
|
||||||
|
be skipped if the boost version hasn't changed since last build. -->
|
||||||
|
<Target
|
||||||
|
Name="CopyBoostHeaders"
|
||||||
|
Inputs="$(BoostPath)\libs\config\include\boost\version.hpp"
|
||||||
|
Outputs="$(AegisubSourceBase)include\boost\version.hpp"
|
||||||
|
>
|
||||||
|
<Message Importance="High" Text="Copy boost headers" />
|
||||||
<!-- All this cruft is to work around that despite what the documentation
|
<!-- All this cruft is to work around that despite what the documentation
|
||||||
claims, %(RecursiveDir) matches everything from the first * (not even
|
claims, %(RecursiveDir) matches everything from the first * (not even
|
||||||
**) until the last / -->
|
**) until the last / -->
|
||||||
|
@ -36,7 +49,7 @@
|
||||||
<BoostLibraries Include="$([System.IO.Directory]::GetDirectories("$(BoostPath)\libs"))" />
|
<BoostLibraries Include="$([System.IO.Directory]::GetDirectories("$(BoostPath)\libs"))" />
|
||||||
<BoostIncludeDirs Include="%(BoostLibraries.Identity)\include\boost;$(BoostPath)\libs\numeric\conversion\include\boost" />
|
<BoostIncludeDirs Include="%(BoostLibraries.Identity)\include\boost;$(BoostPath)\libs\numeric\conversion\include\boost" />
|
||||||
<Headers Include="%(BoostIncludeDirs.Identity)\**\*.*" />
|
<Headers Include="%(BoostIncludeDirs.Identity)\**\*.*" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Copy
|
<Copy
|
||||||
SourceFiles="@(Headers)"
|
SourceFiles="@(Headers)"
|
||||||
DestinationFiles="@(Headers->'$(AegisubSourceBase)include\boost\%(RecursiveDir)%(Filename)%(Extension)')"
|
DestinationFiles="@(Headers->'$(AegisubSourceBase)include\boost\%(RecursiveDir)%(Filename)%(Extension)')"
|
||||||
|
|
Loading…
Reference in New Issue