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/dev | |
parent | 17be514d0a9a391461fbbdb06332d7b2b8273374 (diff) | |
download | cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.zip cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.tar.gz cpython-cc115eea0c3399ee77b4576212bf29b7b018f1fd.tar.bz2 |
Simplify MSI projects.
Diffstat (limited to 'Tools/msi/dev')
-rw-r--r-- | Tools/msi/dev/dev.props | 42 | ||||
-rw-r--r-- | Tools/msi/dev/dev.wixproj | 42 | ||||
-rw-r--r-- | Tools/msi/dev/dev.wxs | 7 | ||||
-rw-r--r-- | Tools/msi/dev/dev_d.wixproj | 12 | ||||
-rw-r--r-- | Tools/msi/dev/dev_d.wxs | 13 |
5 files changed, 63 insertions, 53 deletions
diff --git a/Tools/msi/dev/dev.props b/Tools/msi/dev/dev.props deleted file mode 100644 index ca2549d..0000000 --- a/Tools/msi/dev/dev.props +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <Import Project="..\msi.props" /> - <PropertyGroup> - <DefineConstants Condition="$(BuildForRelease)"> - $(DefineConstants); - IncludeMinGWLib=1; - </DefineConstants> - </PropertyGroup> - <ItemGroup> - <Compile Include="*.wxs" /> - </ItemGroup> - <ItemGroup> - <EmbeddedResource Include="*.wxl" /> - </ItemGroup> - <ItemGroup> - <InstallFiles Include="$(PySourcePath)include\*.h"> - <SourceBase>$(PySourcePath)</SourceBase> - <Source>!(bindpath.src)</Source> - <TargetBase>$(PySourcePath)</TargetBase> - <Target_></Target_> - <Group>dev_include</Group> - </InstallFiles> - </ItemGroup> - - <Target Name="BuildMinGWLib" - Inputs="$(BuildPath)$(PyDllName).dll" - Outputs="$(BuildPath)lib$(PyDllName).a" - AfterTargets="PrepareForBuild" - Condition="$(BuildForRelease)"> - <!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. --> - <PropertyGroup> - <_GenDefPlatform>i386</_GenDefPlatform> - <_GenDefPlatform Condition="$(Platform) == 'x64'">i386:x86-64</_GenDefPlatform> - </PropertyGroup> - - <Exec Command='gendef - "$(BuildPath)$(PyDllName).dll" > "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError="false" /> - <Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" -m $(_GenDefPlatform)' /> - </Target> - - <Import Project="..\msi.targets" /> -</Project>
\ No newline at end of file diff --git a/Tools/msi/dev/dev.wixproj b/Tools/msi/dev/dev.wixproj index 8a2293f..e144878 100644 --- a/Tools/msi/dev/dev.wixproj +++ b/Tools/msi/dev/dev.wixproj @@ -5,7 +5,45 @@ <SchemaVersion>2.0</SchemaVersion> <OutputName Condition="'$(OutputName)' == ''">dev</OutputName> <OutputType>Package</OutputType> - <DefineConstants>IncludeDefaultFeature=1;$(DefineConstants)</DefineConstants> </PropertyGroup> - <Import Project="dev.props" /> + <Import Project="..\msi.props" /> + <PropertyGroup> + <DefineConstants Condition="$(BuildForRelease)"> + $(DefineConstants); + IncludeMinGWLib=1; + </DefineConstants> + </PropertyGroup> + <ItemGroup> + <Compile Include="dev.wxs" /> + <Compile Include="dev_files.wxs" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="*.wxl" /> + </ItemGroup> + <ItemGroup> + <InstallFiles Include="$(PySourcePath)include\*.h"> + <SourceBase>$(PySourcePath)</SourceBase> + <Source>!(bindpath.src)</Source> + <TargetBase>$(PySourcePath)</TargetBase> + <Target_></Target_> + <Group>dev_include</Group> + </InstallFiles> + </ItemGroup> + + <Target Name="BuildMinGWLib" + Inputs="$(BuildPath)$(PyDllName).dll" + Outputs="$(BuildPath)lib$(PyDllName).a" + AfterTargets="PrepareForBuild" + Condition="$(BuildForRelease)"> + <!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. --> + <PropertyGroup> + <_GenDefPlatform>i386</_GenDefPlatform> + <_GenDefPlatform Condition="$(Platform) == 'x64'">i386:x86-64</_GenDefPlatform> + </PropertyGroup> + + <Exec Command='gendef - "$(BuildPath)$(PyDllName).dll" > "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError="false" /> + <Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" -m $(_GenDefPlatform)' /> + </Target> + + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/dev/dev.wxs b/Tools/msi/dev/dev.wxs index 48eba6b..f8af9aa 100644 --- a/Tools/msi/dev/dev.wxs +++ b/Tools/msi/dev/dev.wxs @@ -6,7 +6,6 @@ <PropertyRef Id="UpgradeTable" /> - <?ifdef IncludeDefaultFeature ?> <Feature Id="DefaultFeature" AllowAdvertise="no" Title="!(loc.Title)" Description="!(loc.Description)"> <ComponentGroupRef Id="dev_include" /> <ComponentGroupRef Id="dev_pyconfig" /> @@ -15,11 +14,5 @@ <ComponentGroupRef Id="dev_mingw" /> <?endif ?> </Feature> - <?endif ?> - <?ifdef IncludeDebugBinaries ?> - <Feature Id="DebugBinaries" AllowAdvertise="no" Title="!(loc.Title_d)" Description="!(loc.Description_d)"> - <ComponentGroupRef Id="dev_libs_d" /> - </Feature> - <?endif ?> </Product> </Wix> diff --git a/Tools/msi/dev/dev_d.wixproj b/Tools/msi/dev/dev_d.wixproj index 2354d97..b3b0532 100644 --- a/Tools/msi/dev/dev_d.wixproj +++ b/Tools/msi/dev/dev_d.wixproj @@ -5,7 +5,15 @@ <SchemaVersion>2.0</SchemaVersion> <OutputName>dev_d</OutputName> <OutputType>Package</OutputType> - <DefineConstants>IncludeDebugBinaries=1;$(DefineConstants)</DefineConstants> </PropertyGroup> - <Import Project="dev.props" /> + <Import Project="..\msi.props" /> + <ItemGroup> + <Compile Include="dev_d.wxs" /> + <Compile Include="dev_files.wxs" /> + </ItemGroup> + <ItemGroup> + <EmbeddedResource Include="*.wxl" /> + </ItemGroup> + + <Import Project="..\msi.targets" /> </Project>
\ No newline at end of file diff --git a/Tools/msi/dev/dev_d.wxs b/Tools/msi/dev/dev_d.wxs new file mode 100644 index 0000000..c3cb2ea --- /dev/null +++ b/Tools/msi/dev/dev_d.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="DebugBinaries" AllowAdvertise="no" Title="!(loc.Title_d)" Description="!(loc.Description_d)"> + <ComponentGroupRef Id="dev_libs_d" /> + </Feature> + </Product> +</Wix> |