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 Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 54 | <ExtensionModules Include="_asyncio;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" /> |
| 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 | 68d663c | 2017-07-17 11:15:48 +0200 | [diff] [blame] | 63 | <ExternalModules Include="_tkinter" Condition="$(IncludeTkinter)" /> |
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'" /> |
| 69 | <Projects Include="@(TestModules->'%(Identity).vcxproj')" Condition="$(IncludeTests)"> |
| 70 | <!-- Disable parallel build for test modules --> |
| 71 | <BuildInParallel>false</BuildInParallel> |
| 72 | </Projects> |
Victor Stinner | 23bace2 | 2019-04-18 11:37:26 +0200 | [diff] [blame] | 73 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 74 | <!-- _freeze_importlib --> |
Paul Monson | f96e7fd | 2019-05-17 10:07:24 -0700 | [diff] [blame] | 75 | <Projects2 Condition="$(Platform) != 'ARM' and $(Platform) != 'ARM64'" Include="_freeze_importlib.vcxproj" /> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 76 | <!-- python[w].exe --> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 77 | <Projects2 Include="python.vcxproj;pythonw.vcxproj" /> |
Steve Dower | 0cd6391 | 2018-12-10 18:52:57 -0800 | [diff] [blame] | 78 | <Projects2 Include="python_uwp.vcxproj;pythonw_uwp.vcxproj" Condition="$(IncludeUwp)" /> |
Steve Dower | 1c3de54 | 2018-12-10 08:11:21 -0800 | [diff] [blame] | 79 | <!-- venv[w]launcher.exe --> |
| 80 | <Projects2 Include="venvlauncher.vcxproj;venvwlauncher.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 81 | </ItemGroup> |
| 82 | |
| 83 | <Target Name="Build"> |
| 84 | <MSBuild Projects="@(Projects)" |
| 85 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 86 | BuildInParallel="%(BuildInParallel)" |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 87 | StopOnFirstFailure="true" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 88 | Targets="%(BuildTarget)" /> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 89 | <MSBuild Projects="@(Projects2)" |
| 90 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 91 | BuildInParallel="%(BuildInParallel)" |
| 92 | StopOnFirstFailure="true" |
| 93 | Targets="%(BuildTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 94 | </Target> |
| 95 | |
| 96 | <Target Name="Clean"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 97 | <MSBuild Projects="@(Projects2)" |
| 98 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 99 | BuildInParallel="%(BuildInParallel)" |
| 100 | StopOnFirstFailure="false" |
| 101 | Condition="%(CleanTarget) != ''" |
| 102 | Targets="%(CleanTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 103 | <MSBuild Projects="@(Projects)" |
| 104 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 105 | BuildInParallel="%(BuildInParallel)" |
| 106 | StopOnFirstFailure="false" |
| 107 | Condition="%(CleanTarget) != ''" |
| 108 | Targets="%(CleanTarget)" /> |
| 109 | </Target> |
| 110 | |
| 111 | <Target Name="CleanAll"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 112 | <MSBuild Projects="@(Projects2)" |
| 113 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 114 | BuildInParallel="%(BuildInParallel)" |
| 115 | StopOnFirstFailure="false" |
| 116 | Condition="%(CleanAllTarget) != ''" |
| 117 | Targets="%(CleanAllTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 118 | <MSBuild Projects="@(Projects)" |
| 119 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 120 | BuildInParallel="%(BuildInParallel)" |
| 121 | StopOnFirstFailure="false" |
| 122 | Condition="%(CleanAllTarget) != ''" |
| 123 | Targets="%(CleanAllTarget)" /> |
| 124 | </Target> |
| 125 | |
| 126 | <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
| 127 | <Target Name="RebuildAll" DependsOnTargets="CleanAll;Build" /> |
Zachary Ware | d01db1c | 2017-09-06 17:29:37 -0700 | [diff] [blame] | 128 | </Project> |