diff options
author | fanquake <fanquake@gmail.com> | 2019-07-05 09:22:27 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-07-05 10:10:16 +0800 |
commit | 4f378ac30cf66178564620b4a8ca9cad7f031cc3 (patch) | |
tree | 05a8c028151fbecb7c2b64df3afcc5e9af81f646 /build_msvc/common.vcxproj | |
parent | 1088b90cbae3e9e9fe686356361f1ce08ad8a478 (diff) | |
parent | 08c721dab2b6d33f11ecf5ed089841d1fc9d8d15 (diff) | |
download | bitcoin-4f378ac30cf66178564620b4a8ca9cad7f031cc3.tar.xz |
Merge #16308: [MSVC] Copy build output to src/ automatically after build
08c721dab2b6d33f11ecf5ed089841d1fc9d8d15 [MSVC] Copy build output to src/ automatically after build (nicolas.dorier)
Pull request description:
I got frustrated many time that I run functional tests on an outdated binary.
This make sure that files are properly copied (and debuggable) for functional tests after a build.
This PR add a `common.vcxproj` which can be used to extend the build steps.
I can't move it in `common.init`, because build step customization must always come at the end of a project file.
ACKs for top commit:
sipsorcery:
tACK 08c721dab2b6d33f11ecf5ed089841d1fc9d8d15.
fanquake:
ACK 08c721dab2b6d33f11ecf5ed089841d1fc9d8d15
Tree-SHA512: 7c033552a7bbbd3bb51a72d13bf4254e3b779c59ec93629c85f17745a1b17a8c1d6c87bb5e50eb5f4e5486e767929c0126e555b185608fd666aa39729b5068e1
Diffstat (limited to 'build_msvc/common.vcxproj')
-rw-r--r-- | build_msvc/common.vcxproj | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build_msvc/common.vcxproj b/build_msvc/common.vcxproj new file mode 100644 index 0000000000..4bbcc3767f --- /dev/null +++ b/build_msvc/common.vcxproj @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> +<PropertyGroup><BuildDependsOn>$(BuildDependsOn);CopyBuildArtifacts</BuildDependsOn></PropertyGroup> + <Target Name="CopyBuildArtifacts" Condition="'$(ConfigurationType)' != 'StaticLibrary'"> + <ItemGroup> + <BuildArtifacts Include="$(OutDir)$(TargetName)$(TargetExt)"></BuildArtifacts> + <BuildArtifacts Include="$(OutDir)$(TargetName).pdb"></BuildArtifacts> + </ItemGroup> + <Copy SourceFiles="@(BuildArtifacts)" SkipUnchangedFiles="true" DestinationFolder="..\..\src\" Condition="'$(OutDir)' != ''"></Copy> + </Target> + <Import Project="common.vcxproj.user" Condition="Exists('common.vcxproj.user')" /> +</Project> |