Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | <PropertyGroup Label="Globals"> |
| 4 | <ProjectGuid>{CC9B93A2-439D-4058-9D29-6DCF43774405}</ProjectGuid> |
| 5 | <Platform Condition="'$(Platform)' == ''">Win32</Platform> |
| 6 | <Configuration Condition="'$(Configuration)' == ''">Release</Configuration> |
| 7 | <IncludeExtensions Condition="'$(IncludeExtensions)' == ''">true</IncludeExtensions> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 8 | <IncludeExternals Condition="'$(IncludeExternals)' == ''">true</IncludeExternals> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 9 | <IncludeTests Condition="'$(IncludeTest)' == ''">true</IncludeTests> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 10 | <IncludeCTypes Condition="'$(IncludeCTypes)' == ''">true</IncludeCTypes> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 11 | <IncludeSSL Condition="'$(IncludeSSL)' == ''">true</IncludeSSL> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 12 | <IncludeTkinter Condition="'$(IncludeTkinter)' == ''">true</IncludeTkinter> |
Steve Dower | 0cd6391 | 2018-12-10 18:52:57 -0800 | [diff] [blame] | 13 | <IncludeUwp Condition="'$(IncludeUwp)' == ''">false</IncludeUwp> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 14 | </PropertyGroup> |
| 15 | |
| 16 | <ItemDefinitionGroup> |
| 17 | <Projects> |
| 18 | <Platform>$(Platform)</Platform> |
| 19 | <Configuration>$(Configuration)</Configuration> |
| 20 | <Properties></Properties> |
| 21 | <BuildTarget>Build</BuildTarget> |
| 22 | <CleanTarget>Clean</CleanTarget> |
| 23 | <CleanAllTarget>CleanAll</CleanAllTarget> |
| 24 | <BuildInParallel>true</BuildInParallel> |
| 25 | </Projects> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 26 | <Projects2> |
| 27 | <Platform>$(Platform)</Platform> |
| 28 | <Configuration>$(Configuration)</Configuration> |
| 29 | <Properties></Properties> |
| 30 | <BuildTarget>Build</BuildTarget> |
| 31 | <CleanTarget>Clean</CleanTarget> |
| 32 | <CleanAllTarget>CleanAll</CleanAllTarget> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 33 | <BuildInParallel>false</BuildInParallel> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 34 | </Projects2> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 35 | </ItemDefinitionGroup> |
| 36 | <ItemGroup> |
| 37 | <!-- pythonXY.dll --> |
| 38 | <!-- |
| 39 | Parallel build is explicitly disabled for this project because it |
| 40 | causes many conflicts between pythoncore and projects that depend |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 41 | on pythoncore. Once the core DLL has been built, subsequent |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 42 | projects will be built in parallel. |
| 43 | --> |
| 44 | <Projects Include="pythoncore.vcxproj"> |
| 45 | <BuildInParallel>false</BuildInParallel> |
| 46 | </Projects> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 47 | <!-- python3.dll --> |
| 48 | <Projects Include="python3dll.vcxproj" /> |
| 49 | <!-- py[w].exe --> |
| 50 | <Projects Include="pylauncher.vcxproj;pywlauncher.vcxproj" /> |
Steve Dower | df450d1 | 2016-07-16 16:17:33 -0700 | [diff] [blame] | 51 | <!-- pyshellext.dll --> |
| 52 | <Projects Include="pyshellext.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 53 | <!-- Extension modules --> |
Paul Ganssle | 62972d9 | 2020-05-16 04:20:06 -0400 | [diff] [blame] | 54 | <ExtensionModules Include="_asyncio;_zoneinfo;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound;_uuid" /> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 55 | <ExtensionModules Include="_ctypes" Condition="$(IncludeCTypes)" /> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 56 | <!-- Extension modules that require external sources --> |
| 57 | <ExternalModules Include="_bz2;_lzma;_sqlite3" /> |
Steve Dower | 0cd6391 | 2018-12-10 18:52:57 -0800 | [diff] [blame] | 58 | <!-- venv launchers --> |
| 59 | <Projects Include="venvlauncher.vcxproj;venvwlauncher.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 60 | <!-- _ssl will build _socket as well, which may cause conflicts in parallel builds --> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 61 | <ExtensionModules Include="_socket" Condition="!$(IncludeSSL) or !$(IncludeExternals)" /> |
| 62 | <ExternalModules Include="_ssl;_hashlib" Condition="$(IncludeSSL)" /> |
Steve Dower | de148f2 | 2019-11-20 09:30:47 -0800 | [diff] [blame] | 63 | <ExternalModules Include="_tkinter" Condition="$(IncludeTkinter) and $(Platform) != 'ARM' and $(Platform) != 'ARM64'" /> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 64 | <ExtensionModules Include="@(ExternalModules->'%(Identity)')" Condition="$(IncludeExternals)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 65 | <Projects Include="@(ExtensionModules->'%(Identity).vcxproj')" Condition="$(IncludeExtensions)" /> |
| 66 | <!-- Test modules --> |
Victor Stinner | 23bace2 | 2019-04-18 11:37:26 +0200 | [diff] [blame] | 67 | <TestModules Include="_ctypes_test;_testbuffer;_testcapi;_testinternalcapi;_testembed;_testimportmultiple;_testmultiphase;_testconsole" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 68 | <TestModules Include="xxlimited" Condition="'$(Configuration)' == 'Release'" /> |
Petr Viktorin | c168b50 | 2020-12-08 17:36:53 +0100 | [diff] [blame] | 69 | <TestModules Include="xxlimited_35" Condition="'$(Configuration)' == 'Release'" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 70 | <Projects Include="@(TestModules->'%(Identity).vcxproj')" Condition="$(IncludeTests)"> |
| 71 | <!-- Disable parallel build for test modules --> |
| 72 | <BuildInParallel>false</BuildInParallel> |
| 73 | </Projects> |
Victor Stinner | 23bace2 | 2019-04-18 11:37:26 +0200 | [diff] [blame] | 74 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 75 | <!-- _freeze_importlib --> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 76 | <Projects2 Condition="$(Platform) != 'ARM' and $(Platform) != 'ARM64'" Include="_freeze_importlib.vcxproj" /> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 77 | <!-- python[w].exe --> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 78 | <Projects2 Include="python.vcxproj;pythonw.vcxproj" /> |
Steve Dower | 0cd6391 | 2018-12-10 18:52:57 -0800 | [diff] [blame] | 79 | <Projects2 Include="python_uwp.vcxproj;pythonw_uwp.vcxproj" Condition="$(IncludeUwp)" /> |
Steve Dower | 1c3de54 | 2018-12-10 08:11:21 -0800 | [diff] [blame] | 80 | <!-- venv[w]launcher.exe --> |
| 81 | <Projects2 Include="venvlauncher.vcxproj;venvwlauncher.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 82 | </ItemGroup> |
| 83 | |
| 84 | <Target Name="Build"> |
| 85 | <MSBuild Projects="@(Projects)" |
| 86 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 87 | BuildInParallel="%(BuildInParallel)" |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 88 | StopOnFirstFailure="true" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 89 | Targets="%(BuildTarget)" /> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 90 | <MSBuild Projects="@(Projects2)" |
| 91 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 92 | BuildInParallel="%(BuildInParallel)" |
| 93 | StopOnFirstFailure="true" |
| 94 | Targets="%(BuildTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 95 | </Target> |
| 96 | |
| 97 | <Target Name="Clean"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 98 | <MSBuild Projects="@(Projects2)" |
| 99 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 100 | BuildInParallel="%(BuildInParallel)" |
| 101 | StopOnFirstFailure="false" |
| 102 | Condition="%(CleanTarget) != ''" |
| 103 | Targets="%(CleanTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 104 | <MSBuild Projects="@(Projects)" |
| 105 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 106 | BuildInParallel="%(BuildInParallel)" |
| 107 | StopOnFirstFailure="false" |
| 108 | Condition="%(CleanTarget) != ''" |
| 109 | Targets="%(CleanTarget)" /> |
| 110 | </Target> |
| 111 | |
| 112 | <Target Name="CleanAll"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 113 | <MSBuild Projects="@(Projects2)" |
| 114 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 115 | BuildInParallel="%(BuildInParallel)" |
| 116 | StopOnFirstFailure="false" |
| 117 | Condition="%(CleanAllTarget) != ''" |
| 118 | Targets="%(CleanAllTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 119 | <MSBuild Projects="@(Projects)" |
| 120 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 121 | BuildInParallel="%(BuildInParallel)" |
| 122 | StopOnFirstFailure="false" |
| 123 | Condition="%(CleanAllTarget) != ''" |
| 124 | Targets="%(CleanAllTarget)" /> |
| 125 | </Target> |
| 126 | |
| 127 | <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
| 128 | <Target Name="RebuildAll" DependsOnTargets="CleanAll;Build" /> |
Zachary Ware | d01db1c | 2017-09-06 17:29:37 -0700 | [diff] [blame] | 129 | </Project> |