• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3  <Import Project="pyproject.props" Condition="$(__PyProject_Props_Imported) != 'true'" />
4  <PropertyGroup>
5    <TclMajorVersion>8</TclMajorVersion>
6    <TclMinorVersion>6</TclMinorVersion>
7    <TclPatchLevel>9</TclPatchLevel>
8    <TclRevision>0</TclRevision>
9    <TkMajorVersion>$(TclMajorVersion)</TkMajorVersion>
10    <TkMinorVersion>$(TclMinorVersion)</TkMinorVersion>
11    <TkPatchLevel>$(TclPatchLevel)</TkPatchLevel>
12    <TkRevision>$(TclRevision)</TkRevision>
13    <TixMajorVersion>8</TixMajorVersion>
14    <TixMinorVersion>4</TixMinorVersion>
15    <TixPatchLevel>3</TixPatchLevel>
16    <TixRevision>6</TixRevision>
17    <tclDir>$(ExternalsDir)tcl-core-$(TclMajorVersion).$(TclMinorVersion).$(TclPatchLevel).$(TclRevision)\</tclDir>
18    <tkDir>$(ExternalsDir)tk-$(TkMajorVersion).$(TkMinorVersion).$(TkPatchLevel).$(TkRevision)\</tkDir>
19    <tixDir>$(ExternalsDir)tix-$(TixMajorVersion).$(TixMinorVersion).$(TixPatchLevel).$(TixRevision)\</tixDir>
20    <tcltkDir>$(ExternalsDir)tcltk-$(TclMajorVersion).$(TclMinorVersion).$(TclPatchLevel).$(TclRevision)\$(ArchName)\</tcltkDir>
21    <!--<TclDebugExt Condition="'$(Configuration)' == 'Debug'">g</TclDebugExt>-->
22    <tclDLLName>tcl$(TclMajorVersion)$(TclMinorVersion)t$(TclDebugExt).dll</tclDLLName>
23    <tclLibName>tcl$(TclMajorVersion)$(TclMinorVersion)t$(TclDebugExt).lib</tclLibName>
24    <tclShExeName>tclsh$(TclMajorVersion)$(TclMinorVersion)t$(TclDebugExt).exe</tclShExeName>
25    <tkDLLName>tk$(TkMajorVersion)$(TkMinorVersion)t$(TclDebugExt).dll</tkDLLName>
26    <tkLibName>tk$(TkMajorVersion)$(TkMinorVersion)t$(TclDebugExt).lib</tkLibName>
27    <tixDLLName>tix$(TixMajorVersion)$(TixMinorVersion)$(TclDebugExt).dll</tixDLLName>
28    <tixDLLPath>$(tcltkDir)lib\tix$(TixMajorVersion).$(TixMinorVersion).$(TixPatchLevel)\$(tixDLLName)</tixDLLPath>
29    <tcltkLib>$(tcltkDir)lib\tcl$(TclMajorVersion)$(TclMinorVersion)t$(TclDebugExt).lib;$(tcltkDir)lib\tk$(TkMajorVersion)$(TkMinorVersion)t$(TclDebugExt).lib</tcltkLib>
30    <TclMachine>IX86</TclMachine>
31    <TclMachine Condition="'$(Platform)' == 'x64'">AMD64</TclMachine>
32    <TclVersions>TCL_MAJOR_VERSION=$(TclMajorVersion) TCL_MINOR_VERSION=$(TclMinorVersion) TCL_PATCH_LEVEL=$(TclPatchLevel)</TclVersions>
33    <TclShortVersions>TCL_MAJOR=$(TclMajorVersion) TCL_MINOR=$(TclMinorVersion) TCL_PATCH=$(TclPatchLevel)</TclShortVersions>
34    <TkVersions>TK_MAJOR_VERSION=$(TkMajorVersion) TK_MINOR_VERSION=$(TkMinorVersion) TK_PATCH_LEVEL=$(TkPatchLevel)</TkVersions>
35
36    <BuildDirTop>Release</BuildDirTop>
37    <BuildDirTop Condition="$(Configuration) == 'Debug'">Debug</BuildDirTop>
38    <BuildDirTop Condition="$(TclMachine) != 'IX86'">$(BuildDirTop)_$(TclMachine)</BuildDirTop>
39    <BuildDirTop Condition="$(PlatformToolset) == 'v141'">$(BuildDirTop)_VC13</BuildDirTop>
40    <BuildDirTop Condition="$(PlatformToolset) == 'v140'">$(BuildDirTop)_VC13</BuildDirTop>
41    <BuildDirTop Condition="$(PlatformToolset) == 'v120'">$(BuildDirTop)_VC12</BuildDirTop>
42    <BuildDirTop Condition="$(PlatformToolset) == 'v110'">$(BuildDirTop)_VC11</BuildDirTop>
43    <BuildDirTop Condition="$(PlatformToolset) == 'v100'">$(BuildDirTop)_VC10</BuildDirTop>
44  </PropertyGroup>
45
46  <!--
47  Helper target for copying the lib to a specific directory.
48
49  Using "msbuild tcltk.props /t:CopyTclTkLib /p:OutDir=..." is generally
50  easier than trying to extract the value of $(tcltkdir).
51   -->
52  <Target Name="CopyTclTkLib">
53    <ItemGroup>
54      <_TclTkLib Include="$(tcltkdir)\lib\**\*" />
55    </ItemGroup>
56    <Copy SourceFiles="@(_TclTkLib)"
57          DestinationFiles="$(OutDir)\%(RecursiveDir)\%(Filename)%(Extension)"
58          UseHardlinksIfPossible="true" />
59  </Target>
60</Project>
61