windows/msvc: Introduce an msbuild variable for third-party sources.

This is consistent with extmod.mk's split between SRC_EXTMOD_C and
SRC_THIRDPARTY_C, the latter specifying source files which get
compiled but not included in qstr generation.

Signed-off-by: stijn <stijn@ignitron.net>
pull/12810/head
stijn 2024-03-25 14:38:08 +01:00
rodzic c1301b43db
commit 0c5a399eb3
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -87,6 +87,7 @@
<ItemGroup>
<ClCompile Include="@(PyCoreSource)" />
<ClCompile Include="@(PyExtModSource)" />
<ClCompile Include="@(PyThirdPartySource)" />
<ClCompile Include="$(PyBaseDir)shared\readline\*.c" />
<ClCompile Include="$(PyBaseDir)shared\runtime\gchelper_generic.c" />
<ClCompile Include="$(PyBaseDir)ports\windows\*.c" />

Wyświetl plik

@ -66,7 +66,7 @@ using(var outFile = System.IO.File.CreateText(OutputFile)) {
<ItemGroup>
<PyIncDirs Include="$(PyIncDirs)"/>
<PreProcDefs Include="%(ClCompile.PreProcessorDefinitions);NO_QSTR"/>
<PyQstrSourceFiles Include="@(ClCompile)" Exclude="$(PyBuildDir)\frozen_content.c">
<PyQstrSourceFiles Include="@(ClCompile)" Exclude="$(PyBuildDir)\frozen_content.c;@(PyThirdPartySource)">
<Changed>False</Changed>
<OutFile>$([System.String]::new('%(FullPath)').Replace('$(PyBaseDir)', '$(DestDir)qstr\'))</OutFile>
</PyQstrSourceFiles>