55 <SchemaVersion >2.0</SchemaVersion >
66 <OutputName Condition =" '$(OutputName)' == ''" >dev</OutputName >
77 <OutputType >Package</OutputType >
8- <DefineConstants >IncludeDefaultFeature=1;$(DefineConstants)</DefineConstants >
98 </PropertyGroup >
10- <Import Project =" dev.props" />
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 >
40+ <_GenDefPlatform >i386</_GenDefPlatform >
41+ <_GenDefPlatform Condition =" $(Platform) == 'x64'" >i386:x86-64</_GenDefPlatform >
42+ </PropertyGroup >
43+
44+ <Exec Command =' gendef - "$(BuildPath)$(PyDllName).dll" > "$(IntermediateOutputPath)mingwlib.def"' ContinueOnError =" false" />
45+ <Exec Command =' dlltool --dllname $(PyDllName).dll --def "$(IntermediateOutputPath)mingwlib.def" --output-lib "$(BuildPath)lib$(PyDllName).a" -m $(_GenDefPlatform)' />
46+ </Target >
47+
48+ <Import Project =" ..\msi.targets" />
1149</Project >
0 commit comments