2015-02-06 02:08:48 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
|
|
<PropertyGroup>
|
|
|
|
<ProjectGuid>{5F23F608-D74B-4259-A0CE-8DC65CC7FE53}</ProjectGuid>
|
|
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
|
|
<OutputName Condition="'$(OutputName)' == ''">dev</OutputName>
|
|
|
|
<OutputType>Package</OutputType>
|
|
|
|
</PropertyGroup>
|
2015-02-14 14:30:54 -04:00
|
|
|
<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>
|
2019-02-04 21:54:59 -04:00
|
|
|
<InstallFiles Include="$(PySourcePath)include\**\*.h"
|
|
|
|
Exclude="$(PySourcePath)include\pyconfig.h">
|
2015-02-14 14:30:54 -04:00
|
|
|
<SourceBase>$(PySourcePath)</SourceBase>
|
|
|
|
<Source>!(bindpath.src)</Source>
|
|
|
|
<TargetBase>$(PySourcePath)</TargetBase>
|
|
|
|
<Target_></Target_>
|
|
|
|
<Group>dev_include</Group>
|
|
|
|
</InstallFiles>
|
|
|
|
</ItemGroup>
|
2018-12-04 16:28:28 -04:00
|
|
|
|
2015-02-14 14:30:54 -04:00
|
|
|
<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>
|
2015-06-08 13:55:43 -03:00
|
|
|
<_DllToolOpts>-m i386 --as-flags=--32</_DllToolOpts>
|
|
|
|
<_DllToolOpts Condition="$(Platform) == 'x64'">-m i386:x86-64</_DllToolOpts>
|
2015-02-14 14:30:54 -04:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<Exec Command='gendef - "$(BuildPath)$(PyDllName).dll" > "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError="false" />
|
2015-06-08 13:55:43 -03:00
|
|
|
<Exec Command='dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" $(_DllToolOpts)' />
|
2015-02-14 14:30:54 -04:00
|
|
|
</Target>
|
|
|
|
|
|
|
|
<Import Project="..\msi.targets" />
|
2018-12-04 16:28:28 -04:00
|
|
|
</Project>
|