blob: a26318bbe786b8ac19c4505a0692c33349edb8e1 [file] [log] [blame]
Zachary Warea191b912014-03-21 22:58:19 -05001<?xml version="1.0" encoding="utf-8"?>
2<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup Label="ProjectConfigurations">
4 <ProjectConfiguration Include="Debug|Win32">
5 <Configuration>Debug</Configuration>
6 <Platform>Win32</Platform>
7 </ProjectConfiguration>
Steve Dower65e4cb12014-11-22 12:54:57 -08008 <ProjectConfiguration Include="Release|Win32">
9 <Configuration>Release</Configuration>
10 <Platform>Win32</Platform>
Zachary Warea191b912014-03-21 22:58:19 -050011 </ProjectConfiguration>
12 <ProjectConfiguration Include="PGInstrument|Win32">
13 <Configuration>PGInstrument</Configuration>
14 <Platform>Win32</Platform>
15 </ProjectConfiguration>
16 <ProjectConfiguration Include="PGInstrument|x64">
17 <Configuration>PGInstrument</Configuration>
18 <Platform>x64</Platform>
19 </ProjectConfiguration>
20 <ProjectConfiguration Include="PGUpdate|Win32">
21 <Configuration>PGUpdate</Configuration>
22 <Platform>Win32</Platform>
23 </ProjectConfiguration>
24 <ProjectConfiguration Include="PGUpdate|x64">
25 <Configuration>PGUpdate</Configuration>
26 <Platform>x64</Platform>
27 </ProjectConfiguration>
Steve Dower65e4cb12014-11-22 12:54:57 -080028 <ProjectConfiguration Include="Debug|x64">
29 <Configuration>Debug</Configuration>
30 <Platform>x64</Platform>
Zachary Warea191b912014-03-21 22:58:19 -050031 </ProjectConfiguration>
32 <ProjectConfiguration Include="Release|x64">
33 <Configuration>Release</Configuration>
34 <Platform>x64</Platform>
35 </ProjectConfiguration>
36 </ItemGroup>
37 <PropertyGroup Label="Globals">
38 <ProjectGuid>{7E85ECCF-A72C-4DA4-9E52-884508E80BA1}</ProjectGuid>
39 <RootNamespace>tk</RootNamespace>
Zachary Warea191b912014-03-21 22:58:19 -050040 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080041
42 <Import Project="python.props" />
Zachary Warea191b912014-03-21 22:58:19 -050043 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080044 <Import Project="tcltk.props" />
45
46 <PropertyGroup Label="Configuration">
Zachary Warea191b912014-03-21 22:58:19 -050047 <ConfigurationType>Makefile</ConfigurationType>
Steve Dower65e4cb12014-11-22 12:54:57 -080048 <OutDir>$(tcltkDir)</OutDir>
49 <TargetPath>$(OutDir)bin\$(tkDLLName)</TargetPath>
Zachary Warea191b912014-03-21 22:58:19 -050050 </PropertyGroup>
Steve Dower65e4cb12014-11-22 12:54:57 -080051
52 <ItemGroup>
53 <ExpectedOutputs Include="
54 $(OutDir)bin\$(tkDLLName);
55 $(OutDir)include\tk.h;
56 $(OutDir)lib\$(tkLibName);
57 $(OutDir)lib\tk$(TkMajorVersion).$(TkMinorVersion)" />
58 </ItemGroup>
59
Zachary Warea191b912014-03-21 22:58:19 -050060 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
Steve Dower65e4cb12014-11-22 12:54:57 -080061
Zachary Warea191b912014-03-21 22:58:19 -050062 <PropertyGroup>
Steve Dowerfcbe1df2015-09-08 21:39:01 -070063 <TkOpts>msvcrt</TkOpts>
64 <TkOpts Condition="$(Configuration) == 'Debug'">symbols,msvcrt</TkOpts>
Steve Dower65e4cb12014-11-22 12:54:57 -080065 <TkDirs>TCLDIR="$(tclDir.TrimEnd(`\`))" INSTALLDIR="$(OutDir.TrimEnd(`\`))"</TkDirs>
66 <DebugFlags Condition="'$(Configuration)' == 'Debug'">DEBUGFLAGS="-wd4456 -wd4457 -wd4458 -wd4459 -wd4996"</DebugFlags>
67 <NMakeBuildCommandLine>setlocal
68@(ExpectedOutputs->'if not exist "%(FullPath)" goto build','
69')
70goto :eof
71:build
72set VCINSTALLDIR=$(VCInstallDir)
73cd /D "$(tkDir)win"
74nmake /nologo -f makefile.vc RC=rc MACHINE=$(TclMachine) OPTS=$(TkOpts) $(TkDirs) $(DebugFlags) all
75nmake /nologo -f makefile.vc RC=rc MACHINE=$(TclMachine) OPTS=$(TkOpts) $(TkDirs) $(DebugFlags) install-binaries install-libraries
76</NMakeBuildCommandLine>
Zachary Warea191b912014-03-21 22:58:19 -050077 </PropertyGroup>
Zachary Warea191b912014-03-21 22:58:19 -050078 <ItemGroup>
79 <ProjectReference Include="tcl.vcxproj">
80 <Project>{b5fd6f1d-129e-4bff-9340-03606fac7283}</Project>
Steve Dower65e4cb12014-11-22 12:54:57 -080081 <ReferenceOutputAssembly>false</ReferenceOutputAssembly>
Zachary Warea191b912014-03-21 22:58:19 -050082 </ProjectReference>
83 </ItemGroup>
84 <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
Steve Dower65e4cb12014-11-22 12:54:57 -080085
86 <Target Name="CopyDll" Inputs="$(OutDir)\bin\$(tkDLLName)" Outputs="$(BuildPath)$(tkDLLName)" AfterTargets="Build">
87 <Copy SourceFiles="$(OutDir)\bin\$(tkDLLName)" DestinationFiles="$(BuildPath)$(tkDLLName)" />
88 </Target>
89
90 <Target Name="Clean" />
91 <Target Name="CleanAll">
92 <Delete Files="$(TargetPath);$(BuildPath)$(tkDLLName)" />
93 <RemoveDir Directories="$(IntDir)" />
94 </Target>
Steve Dowerb7567c52016-07-15 11:55:52 -070095
96 <Target Name="ResolveAssemblyReferences" />
Zachary Warea191b912014-03-21 22:58:19 -050097</Project>