windows: Allow specifying the python executable to use for msvc builds
This defaults to 'python' but can be now overridden if needed
This commit is contained in:
parent
1b9d161f94
commit
b1dbbd32eb
@ -10,6 +10,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<DestDir>$(PyBuildDir)genhdr\</DestDir>
|
<DestDir>$(PyBuildDir)genhdr\</DestDir>
|
||||||
<PySrcDir>$(PyBaseDir)py\</PySrcDir>
|
<PySrcDir>$(PyBaseDir)py\</PySrcDir>
|
||||||
|
<PyPython Condition="'$(PyPython)' == ''">python</PyPython>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<Target Name="MakeDestDir">
|
<Target Name="MakeDestDir">
|
||||||
@ -27,7 +28,7 @@
|
|||||||
<PyIncDirs Include="$(PyIncDirs)"/>
|
<PyIncDirs Include="$(PyIncDirs)"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Exec Command="cl /nologo /I@(PyIncDirs, ' /I') /Fi$(PreProc) /P $(PySrcDir)qstrdefs.h"/>
|
<Exec Command="cl /nologo /I@(PyIncDirs, ' /I') /Fi$(PreProc) /P $(PySrcDir)qstrdefs.h"/>
|
||||||
<Exec Command="python $(PySrcDir)makeqstrdata.py $(PreProc) $(QstrDefs) > $(TmpFile)"/>
|
<Exec Command="$(PyPython) $(PySrcDir)makeqstrdata.py $(PreProc) $(QstrDefs) > $(TmpFile)"/>
|
||||||
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
|
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
@ -36,7 +37,7 @@
|
|||||||
<DestFile>$(DestDir)mpversion.h</DestFile>
|
<DestFile>$(DestDir)mpversion.h</DestFile>
|
||||||
<TmpFile>$(DestFile).tmp</TmpFile>
|
<TmpFile>$(DestFile).tmp</TmpFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<Exec Command="python $(PySrcDir)makeversionhdr.py $(TmpFile)"/>
|
<Exec Command="$(PyPython) $(PySrcDir)makeversionhdr.py $(TmpFile)"/>
|
||||||
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
|
<MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="CopyFileIfDifferent" Properties="SourceFile=$(TmpFile);DestFile=$(DestFile)"/>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user