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> |
| 10 | <IncludeSSL Condition="'$(IncludeSSL)' == ''">true</IncludeSSL> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 11 | <IncludeTkinter Condition="'$(IncludeTkinter)' == ''">true</IncludeTkinter> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 12 | </PropertyGroup> |
| 13 | |
| 14 | <ItemDefinitionGroup> |
| 15 | <Projects> |
| 16 | <Platform>$(Platform)</Platform> |
| 17 | <Configuration>$(Configuration)</Configuration> |
| 18 | <Properties></Properties> |
| 19 | <BuildTarget>Build</BuildTarget> |
| 20 | <CleanTarget>Clean</CleanTarget> |
| 21 | <CleanAllTarget>CleanAll</CleanAllTarget> |
| 22 | <BuildInParallel>true</BuildInParallel> |
| 23 | </Projects> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 24 | <Projects2> |
| 25 | <Platform>$(Platform)</Platform> |
| 26 | <Configuration>$(Configuration)</Configuration> |
| 27 | <Properties></Properties> |
| 28 | <BuildTarget>Build</BuildTarget> |
| 29 | <CleanTarget>Clean</CleanTarget> |
| 30 | <CleanAllTarget>CleanAll</CleanAllTarget> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 31 | <BuildInParallel>false</BuildInParallel> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 32 | </Projects2> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 33 | </ItemDefinitionGroup> |
| 34 | <ItemGroup> |
| 35 | <!-- pythonXY.dll --> |
| 36 | <!-- |
| 37 | Parallel build is explicitly disabled for this project because it |
| 38 | causes many conflicts between pythoncore and projects that depend |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 39 | on pythoncore. Once the core DLL has been built, subsequent |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 40 | projects will be built in parallel. |
| 41 | --> |
| 42 | <Projects Include="pythoncore.vcxproj"> |
| 43 | <BuildInParallel>false</BuildInParallel> |
| 44 | </Projects> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 45 | <!-- python3.dll --> |
| 46 | <Projects Include="python3dll.vcxproj" /> |
| 47 | <!-- py[w].exe --> |
| 48 | <Projects Include="pylauncher.vcxproj;pywlauncher.vcxproj" /> |
Steve Dower | df450d1 | 2016-07-16 16:17:33 -0700 | [diff] [blame] | 49 | <!-- pyshellext.dll --> |
| 50 | <Projects Include="pyshellext.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 51 | <!-- Extension modules --> |
Yury Selivanov | f23746a | 2018-01-22 19:11:18 -0500 | [diff] [blame] | 52 | <ExtensionModules Include="_asyncio;_contextvars;_ctypes;_decimal;_distutils_findvs;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;_queue;select;unicodedata;winsound" /> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 53 | <!-- Extension modules that require external sources --> |
| 54 | <ExternalModules Include="_bz2;_lzma;_sqlite3" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 55 | <!-- _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] | 56 | <ExtensionModules Include="_socket" Condition="!$(IncludeSSL) or !$(IncludeExternals)" /> |
| 57 | <ExternalModules Include="_ssl;_hashlib" Condition="$(IncludeSSL)" /> |
Steve Dower | 68d663c | 2017-07-17 11:15:48 +0200 | [diff] [blame] | 58 | <ExternalModules Include="_tkinter" Condition="$(IncludeTkinter)" /> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 59 | <ExtensionModules Include="@(ExternalModules->'%(Identity)')" Condition="$(IncludeExternals)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 60 | <Projects Include="@(ExtensionModules->'%(Identity).vcxproj')" Condition="$(IncludeExtensions)" /> |
| 61 | <!-- Test modules --> |
Steve Dower | 312cef7 | 2016-10-03 09:04:58 -0700 | [diff] [blame] | 62 | <TestModules Include="_ctypes_test;_testbuffer;_testcapi;_testembed;_testimportmultiple;_testmultiphase;_testconsole" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 63 | <TestModules Include="xxlimited" Condition="'$(Configuration)' == 'Release'" /> |
| 64 | <Projects Include="@(TestModules->'%(Identity).vcxproj')" Condition="$(IncludeTests)"> |
| 65 | <!-- Disable parallel build for test modules --> |
| 66 | <BuildInParallel>false</BuildInParallel> |
| 67 | </Projects> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 68 | |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 69 | <!-- _freeze_importlib --> |
| 70 | <Projects2 Include="_freeze_importlib.vcxproj" /> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 71 | <!-- python[w].exe --> |
Steve Dower | 10beb3c | 2016-12-12 11:17:59 -0800 | [diff] [blame] | 72 | <Projects2 Include="python.vcxproj;pythonw.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 73 | </ItemGroup> |
| 74 | |
| 75 | <Target Name="Build"> |
| 76 | <MSBuild Projects="@(Projects)" |
| 77 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 78 | BuildInParallel="%(BuildInParallel)" |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 79 | StopOnFirstFailure="true" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 80 | Targets="%(BuildTarget)" /> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 81 | <MSBuild Projects="@(Projects2)" |
| 82 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 83 | BuildInParallel="%(BuildInParallel)" |
| 84 | StopOnFirstFailure="true" |
| 85 | Targets="%(BuildTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 86 | </Target> |
| 87 | |
| 88 | <Target Name="Clean"> |
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="false" |
| 93 | Condition="%(CleanTarget) != ''" |
| 94 | Targets="%(CleanTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 95 | <MSBuild Projects="@(Projects)" |
| 96 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 97 | BuildInParallel="%(BuildInParallel)" |
| 98 | StopOnFirstFailure="false" |
| 99 | Condition="%(CleanTarget) != ''" |
| 100 | Targets="%(CleanTarget)" /> |
| 101 | </Target> |
| 102 | |
| 103 | <Target Name="CleanAll"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame] | 104 | <MSBuild Projects="@(Projects2)" |
| 105 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 106 | BuildInParallel="%(BuildInParallel)" |
| 107 | StopOnFirstFailure="false" |
| 108 | Condition="%(CleanAllTarget) != ''" |
| 109 | Targets="%(CleanAllTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 110 | <MSBuild Projects="@(Projects)" |
| 111 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 112 | BuildInParallel="%(BuildInParallel)" |
| 113 | StopOnFirstFailure="false" |
| 114 | Condition="%(CleanAllTarget) != ''" |
| 115 | Targets="%(CleanAllTarget)" /> |
| 116 | </Target> |
| 117 | |
| 118 | <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
| 119 | <Target Name="RebuildAll" DependsOnTargets="CleanAll;Build" /> |
Zachary Ware | d01db1c | 2017-09-06 17:29:37 -0700 | [diff] [blame] | 120 | </Project> |