summaryrefslogtreecommitdiff
path: root/PCbuild/tcltk.props
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-06-14 08:29:20 -0700
committerGitHub <noreply@github.com>2019-06-14 08:29:20 -0700
commit21a92f8cda525d25a165b773fbe1bfffd303a000 (patch)
tree84d08fcb306ee46d6f5147d734745af0c3f64b7b /PCbuild/tcltk.props
parentf0749da9a535375f05a2015e8960e8ae54877349 (diff)
downloadcpython-git-21a92f8cda525d25a165b773fbe1bfffd303a000.tar.gz
Implement Windows release builds in Azure Pipelines (GH-14065)
Diffstat (limited to 'PCbuild/tcltk.props')
-rw-r--r--PCbuild/tcltk.props21
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>