diff options
Diffstat (limited to 'PCbuild/tcltk.props')
-rw-r--r-- | PCbuild/tcltk.props | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/PCbuild/tcltk.props b/PCbuild/tcltk.props index b185cb7b1e..7fcd3e1c61 100644 --- a/PCbuild/tcltk.props +++ b/PCbuild/tcltk.props @@ -1,6 +1,6 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="pyproject.props" /> +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="pyproject.props" Condition="$(__PyProject_Props_Imported) != 'true'" /> <PropertyGroup> <TclMajorVersion>8</TclMajorVersion> <TclMinorVersion>6</TclMinorVersion> @@ -42,4 +42,19 @@ <BuildDirTop Condition="$(PlatformToolset) == 'v110'">$(BuildDirTop)_VC11</BuildDirTop> <BuildDirTop Condition="$(PlatformToolset) == 'v100'">$(BuildDirTop)_VC10</BuildDirTop> </PropertyGroup> + + <!-- + Helper target for copying the lib to a specific directory. + + Using "msbuild tcltk.props /t:CopyTclTkLib /p:OutDir=..." is generally + easier than trying to extract the value of $(tcltkdir). + --> + <Target Name="CopyTclTkLib"> + <ItemGroup> + <_TclTkLib Include="$(tcltkdir)\lib\**\*" /> + </ItemGroup> + <Copy SourceFiles="@(_TclTkLib)" + DestinationFiles="$(OutDir)\%(RecursiveDir)\%(Filename)%(Extension)" + UseHardlinksIfPossible="true" /> + </Target> </Project> |