diff options
author | Steve Dower <steve.dower@microsoft.com> | 2015-02-14 18:30:54 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2015-02-14 18:30:54 (GMT) |
commit | cc115eea0c3399ee77b4576212bf29b7b018f1fd (patch) | |
tree | a03ef6b5982f4bfc68c086bf77c54f448088aa78 /Tools/msi/tcltk | |
parent | 17be514d0a9a391461fbbdb06332d7b2b8273374 (diff) | |
download | cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.zip cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.tar.gz cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.tar.bz2 |
Simplify MSI projects.
Diffstat (limited to 'Tools/msi/tcltk')
-rw-r--r-- | Tools/msi/tcltk/tcltk.props | 49 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk.wixproj | 42 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk.wxs | 13 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk_d.wixproj | 21 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk_d.wxs | 14 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk_pdb.wixproj | 12 | ||||
-rw-r--r-- | Tools/msi/tcltk/tcltk_pdb.wxs | 13 |
7 files changed, 96 insertions, 68 deletions
diff --git a/Tools/msi/tcltk/tcltk.props b/Tools/msi/tcltk/tcltk.props deleted file mode 100644 index 41d67c5..0000000 --- a/Tools/msi/tcltk/tcltk.props +++ /dev/null @@ -1,49 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <!-- Shortcut validation is not necessary --> - <SuppressICEs>ICE43</SuppressICEs> - </PropertyGroup> - <Import Project="..\msi.props" /> - <ItemGroup> - <Compile Include="*.wxs" /> - </ItemGroup> - <ItemGroup> - <WxlTemplate Include="*.wxl_template" /> - </ItemGroup> - <ItemGroup> - <InstallFiles Include="$(tcltkDir)bin\*.dll" Exclude="$(tcltkDir)bin\*g.dll"> - <SourceBase>$(tcltkDir)</SourceBase> - <Source>!(bindpath.tcltk)</Source> - <TargetBase>$(tcltkDir)bin</TargetBase> - <Target_>DLLs\</Target_> - <Group>tcltk_dlls</Group> - </InstallFiles> - <InstallFiles Include="$(tcltkDir)bin\*g.dll"> - <SourceBase>$(tcltkDir)</SourceBase> - <Source>!(bindpath.tcltk)</Source> - <TargetBase>$(tcltkDir)bin</TargetBase> - <Target_>DLLs\</Target_> - <Group>tcltk_dlls_d</Group> - </InstallFiles> - - <InstallFiles Include="$(tcltkDir)lib\**\*"> - <SourceBase>$(tcltkDir)</SourceBase> - <Source>!(bindpath.tcltk)</Source> - <TargetBase>$(tcltkDir)lib</TargetBase> - <Target_>tcl\</Target_> - <Group>tcltk_lib</Group> - </InstallFiles> - - <InstallFiles Include="$(PySourcePath)Lib\tkinter\**\*;$(PySourcePath)Lib\idlelib\**\*;$(PySourcePath)Lib\turtledemo\**\*" - Exclude="$(PySourcePath)Lib\**\*.pyc;$(PySourcePath)Lib\**\*.pyo"> - <SourceBase>$(PySourcePath)</SourceBase> - <Source>!(bindpath.src)</Source> - <TargetBase>$(PySourcePath)</TargetBase> - <Target_></Target_> - <Group>tkinter_lib</Group> - </InstallFiles> - </ItemGroup> - - <Import Project="..\msi.targets" /> -</Project>
\ No newline at end of file diff --git a/Tools/msi/tcltk/tcltk.wixproj b/Tools/msi/tcltk/tcltk.wixproj index 1dcdfad..4d1d74c 100644 --- a/Tools/msi/tcltk/tcltk.wixproj +++ b/Tools/msi/tcltk/tcltk.wixproj @@ -5,7 +5,45 @@ <SchemaVersion>2.0</SchemaVersion> <OutputName>tcltk</OutputName> <OutputType>Package</OutputType> - <DefineConstants>IncludeDefaultFeature=1;$(DefineConstants)</DefineConstants> </PropertyGroup> - <Import Project="tcltk.props" /> + <PropertyGroup> + <!-- Shortcut validation is not necessary --> + <SuppressICEs>ICE43</SuppressICEs> + </PropertyGroup> + <Import Project="..\msi.props" /> + <ItemGroup> + <Compile Include="tcltk.wxs" /> + <Compile Include="tcltk_files.wxs" /> + </ItemGroup> + <ItemGroup> + <WxlTemplate Include="*.wxl_template" /> + </ItemGroup> + <ItemGroup> + <InstallFiles Include="$(tcltkDir)bin\*.dll" Exclude="$(tcltkDir)bin\*g.dll"> + <SourceBase>$(tcltkDir)</SourceBase> + <Source>!(bindpath.tcltk)</Source> + <TargetBase>$(tcltkDir)bin</TargetBase> + <Target_>DLLs\</Target_> + <Group>tcltk_dlls</Group> + </InstallFiles> + + <InstallFiles Include="$(tcltkDir)lib\**\*"> + <SourceBase>$(tcltkDir)</SourceBase> + <Source>!(bindpath.tcltk)</Source> + <TargetBase>$(tcltkDir)lib</TargetBase> + <Target_>tcl\</Target_> + <Group>tcltk_lib</Group> + </InstallFiles> + + <InstallFiles Include="$(PySourcePath)Lib\tkinter\**\*;$(PySourcePath)Lib\idlelib\**\*;$(PySourcePath)Lib\turtledemo\**\*" + Exclude="$(PySourcePath)Lib\**\*.pyc;$(PySourcePath)Lib\**\*.pyo"> + <SourceBase>$(PySourcePath)</SourceBase> + <Source>!(bindpath.src)</Source> + <TargetBase>$(PySourcePath)</TargetBase> + <Target_></Target_> + <Group>tkinter_lib</Group> + </InstallFiles> + </ItemGroup> + + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/tcltk/tcltk.wxs b/Tools/msi/tcltk/tcltk.wxs index 4d72200..819fccb 100644 --- a/Tools/msi/tcltk/tcltk.wxs +++ b/Tools/msi/tcltk/tcltk.wxs @@ -15,7 +15,6 @@ <Condition Message="!(loc.NoPython)">PYTHON_EXE</Condition> - <?ifdef IncludeDefaultFeature ?> <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> <ComponentGroupRef Id="tkinter_extension" /> <ComponentGroupRef Id="tcltk_dlls" /> @@ -37,17 +36,5 @@ </Shortcut> </Component> </Feature> - <?endif ?> - <?ifdef IncludeSymbols ?> - <Feature Id="Symbols" AllowAdvertise="no" Title="!(loc.TitlePdb)" Description="!(loc.DescriptionPdb)"> - <ComponentGroupRef Id="tkinter_extension_symbols" /> - </Feature> - <?endif ?> - <?ifdef IncludeDebugBinaries ?> - <Feature Id="DebugBinaries" AllowAdvertise="no" Title="!(loc.Title_d)" Description="!(loc.Description_d)"> - <ComponentGroupRef Id="tkinter_extension_d" /> - <ComponentGroupRef Id="tcltk_dlls_d" /> - </Feature> - <?endif ?> </Product> </Wix> diff --git a/Tools/msi/tcltk/tcltk_d.wixproj b/Tools/msi/tcltk/tcltk_d.wixproj index ee9af33..3266190 100644 --- a/Tools/msi/tcltk/tcltk_d.wixproj +++ b/Tools/msi/tcltk/tcltk_d.wixproj @@ -5,7 +5,24 @@ <SchemaVersion>2.0</SchemaVersion> <OutputName>tcltk_d</OutputName> <OutputType>Package</OutputType> - <DefineConstants>IncludeDebugBinaries=1;$(DefineConstants)</DefineConstants> </PropertyGroup> - <Import Project="tcltk.props" /> + <Import Project="..\msi.props" /> + <ItemGroup> + <Compile Include="tcltk_d.wxs" /> + <Compile Include="tcltk_files.wxs" /> + </ItemGroup> + <ItemGroup> + <WxlTemplate Include="*.wxl_template" /> + </ItemGroup> + <ItemGroup> + <InstallFiles Include="$(tcltkDir)bin\*g.dll"> + <SourceBase>$(tcltkDir)</SourceBase> + <Source>!(bindpath.tcltk)</Source> + <TargetBase>$(tcltkDir)bin</TargetBase> + <Target_>DLLs\</Target_> + <Group>tcltk_dlls_d</Group> + </InstallFiles> + </ItemGroup> + + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/tcltk/tcltk_d.wxs b/Tools/msi/tcltk/tcltk_d.wxs new file mode 100644 index 0000000..7f5048f --- /dev/null +++ b/Tools/msi/tcltk/tcltk_d.wxs @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> + <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" /> + <MediaTemplate EmbedCab="yes" CompressionLevel="high" /> + + <PropertyRef Id="UpgradeTable" /> + + <Feature Id="DebugBinaries" AllowAdvertise="no" Title="!(loc.Title_d)" Description="!(loc.Description_d)"> + <ComponentGroupRef Id="tkinter_extension_d" /> + <ComponentGroupRef Id="tcltk_dlls_d" /> + </Feature> + </Product> +</Wix> diff --git a/Tools/msi/tcltk/tcltk_pdb.wixproj b/Tools/msi/tcltk/tcltk_pdb.wixproj index ac198d4..3370798 100644 --- a/Tools/msi/tcltk/tcltk_pdb.wixproj +++ b/Tools/msi/tcltk/tcltk_pdb.wixproj @@ -5,7 +5,15 @@ <SchemaVersion>2.0</SchemaVersion> <OutputName>tcltk_pdb</OutputName> <OutputType>Package</OutputType> - <DefineConstants>IncludeSymbols=1;$(DefineConstants)</DefineConstants> </PropertyGroup> - <Import Project="tcltk.props" /> + <Import Project="..\msi.props" /> + <ItemGroup> + <Compile Include="tcltk_pdb.wxs" /> + <Compile Include="tcltk_files.wxs" /> + </ItemGroup> + <ItemGroup> + <WxlTemplate Include="*.wxl_template" /> + </ItemGroup> + + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/tcltk/tcltk_pdb.wxs b/Tools/msi/tcltk/tcltk_pdb.wxs new file mode 100644 index 0000000..75c62bb --- /dev/null +++ b/Tools/msi/tcltk/tcltk_pdb.wxs @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> + <Product Id="*" Language="!(loc.LCID)" Name="!(loc.Title)" Version="$(var.Version)" Manufacturer="!(loc.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> + <Package InstallerVersion="300" Compressed="yes" InstallScope="perUser" Platform="$(var.Platform)" /> + <MediaTemplate EmbedCab="yes" CompressionLevel="high" /> + + <PropertyRef Id="UpgradeTable" /> + + <Feature Id="Symbols" AllowAdvertise="no" Title="!(loc.TitlePdb)" Description="!(loc.DescriptionPdb)"> + <ComponentGroupRef Id="tkinter_extension_symbols" /> + </Feature> + </Product> +</Wix> |