Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | <PropertyGroup> |
| 4 | <ProjectGuid>{5F23F608-D74B-4259-A0CE-8DC65CC7FE53}</ProjectGuid> |
| 5 | <SchemaVersion>2.0</SchemaVersion> |
| 6 | <OutputName Condition="'$(OutputName)' == ''">dev</OutputName> |
| 7 | <OutputType>Package</OutputType> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 8 | </PropertyGroup> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 9 | <Import Project="..\msi.props" /> |
| 10 | <PropertyGroup> |
| 11 | <DefineConstants Condition="$(BuildForRelease)"> |
| 12 | $(DefineConstants); |
| 13 | IncludeMinGWLib=1; |
| 14 | </DefineConstants> |
| 15 | </PropertyGroup> |
| 16 | <ItemGroup> |
| 17 | <Compile Include="dev.wxs" /> |
| 18 | <Compile Include="dev_files.wxs" /> |
| 19 | </ItemGroup> |
| 20 | <ItemGroup> |
| 21 | <EmbeddedResource Include="*.wxl" /> |
| 22 | </ItemGroup> |
| 23 | <ItemGroup> |
| 24 | <InstallFiles Include="$(PySourcePath)include\*.h"> |
| 25 | <SourceBase>$(PySourcePath)</SourceBase> |
| 26 | <Source>!(bindpath.src)</Source> |
| 27 | <TargetBase>$(PySourcePath)</TargetBase> |
| 28 | <Target_></Target_> |
| 29 | <Group>dev_include</Group> |
| 30 | </InstallFiles> |
| 31 | </ItemGroup> |
| 32 | |
| 33 | <Target Name="BuildMinGWLib" |
| 34 | Inputs="$(BuildPath)$(PyDllName).dll" |
| 35 | Outputs="$(BuildPath)lib$(PyDllName).a" |
| 36 | AfterTargets="PrepareForBuild" |
| 37 | Condition="$(BuildForRelease)"> |
| 38 | <!-- Build libpython##.a as part of this project. This requires gendef and dlltool on the path. --> |
| 39 | <PropertyGroup> |
Steve Dower | 9901856 | 2015-06-08 09:55:43 -0700 | [diff] [blame^] | 40 | <_DllToolOpts>-m i386 --as-flags=--32</_DllToolOpts> |
| 41 | <_DllToolOpts Condition="$(Platform) == 'x64'">-m i386:x86-64</_DllToolOpts> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 42 | </PropertyGroup> |
| 43 | |
| 44 | <Exec Command='gendef - "$(BuildPath)$(PyDllName).dll" > "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError="false" /> |
Steve Dower | 9901856 | 2015-06-08 09:55:43 -0700 | [diff] [blame^] | 45 | <Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" $(_DllToolOpts)' /> |
Steve Dower | cc115ee | 2015-02-14 10:30:54 -0800 | [diff] [blame] | 46 | </Target> |
| 47 | |
| 48 | <Import Project="..\msi.targets" /> |
Steve Dower | bb24087 | 2015-02-05 22:08:48 -0800 | [diff] [blame] | 49 | </Project> |