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> |
| 31 | <BuildInParallel>true</BuildInParallel> |
| 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" /> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 47 | <!-- pyshellext.dll --> |
| 48 | <Projects Include="pyshellext.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 49 | <!-- py[w].exe --> |
| 50 | <Projects Include="pylauncher.vcxproj;pywlauncher.vcxproj" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 51 | <!-- _freeze_importlib --> |
| 52 | <Projects Include="_freeze_importlib.vcxproj" /> |
| 53 | <!-- Extension modules --> |
Zachary Ware | b27f3c3 | 2015-09-03 23:43:54 -0500 | [diff] [blame] | 54 | <ExtensionModules Include="_ctypes;_decimal;_elementtree;_msi;_multiprocessing;_overlapped;pyexpat;select;unicodedata;winsound" /> |
| 55 | <!-- Extension modules that require external sources --> |
| 56 | <ExternalModules Include="_bz2;_lzma;_sqlite3" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 57 | <!-- _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] | 58 | <ExtensionModules Include="_socket" Condition="!$(IncludeSSL) or !$(IncludeExternals)" /> |
| 59 | <ExternalModules Include="_ssl;_hashlib" Condition="$(IncludeSSL)" /> |
| 60 | <ExternalModules Include="_tkinter;tix" Condition="$(IncludeTkinter)" /> |
| 61 | <ExtensionModules Include="@(ExternalModules->'%(Identity)')" Condition="$(IncludeExternals)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 62 | <Projects Include="@(ExtensionModules->'%(Identity).vcxproj')" Condition="$(IncludeExtensions)" /> |
| 63 | <!-- Test modules --> |
Steve Dower | 42a059b | 2015-05-23 17:51:54 -0700 | [diff] [blame] | 64 | <TestModules Include="_ctypes_test;_testbuffer;_testcapi;_testembed;_testimportmultiple;_testmultiphase" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 65 | <TestModules Include="xxlimited" Condition="'$(Configuration)' == 'Release'" /> |
| 66 | <Projects Include="@(TestModules->'%(Identity).vcxproj')" Condition="$(IncludeTests)"> |
| 67 | <!-- Disable parallel build for test modules --> |
| 68 | <BuildInParallel>false</BuildInParallel> |
| 69 | </Projects> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 70 | |
| 71 | <!-- python[w].exe --> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 72 | <Projects2 Include="python.vcxproj;pythonw.vcxproj"> |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 73 | <BuildInParallel>false</BuildInParallel> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 74 | </Projects2> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 75 | </ItemGroup> |
| 76 | |
| 77 | <Target Name="Build"> |
| 78 | <MSBuild Projects="@(Projects)" |
| 79 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 80 | BuildInParallel="%(BuildInParallel)" |
Steve Dower | 945863a | 2016-07-13 19:58:21 -0700 | [diff] [blame] | 81 | StopOnFirstFailure="true" |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 82 | Targets="%(BuildTarget)" /> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 83 | <MSBuild Projects="@(Projects2)" |
| 84 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 85 | BuildInParallel="%(BuildInParallel)" |
| 86 | StopOnFirstFailure="true" |
| 87 | Targets="%(BuildTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 88 | </Target> |
| 89 | |
| 90 | <Target Name="Clean"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 91 | <MSBuild Projects="@(Projects2)" |
| 92 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 93 | BuildInParallel="%(BuildInParallel)" |
| 94 | StopOnFirstFailure="false" |
| 95 | Condition="%(CleanTarget) != ''" |
| 96 | Targets="%(CleanTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 97 | <MSBuild Projects="@(Projects)" |
| 98 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 99 | BuildInParallel="%(BuildInParallel)" |
| 100 | StopOnFirstFailure="false" |
| 101 | Condition="%(CleanTarget) != ''" |
| 102 | Targets="%(CleanTarget)" /> |
| 103 | </Target> |
| 104 | |
| 105 | <Target Name="CleanAll"> |
Steve Dower | 6fd76bc | 2016-07-16 16:13:19 -0700 | [diff] [blame^] | 106 | <MSBuild Projects="@(Projects2)" |
| 107 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 108 | BuildInParallel="%(BuildInParallel)" |
| 109 | StopOnFirstFailure="false" |
| 110 | Condition="%(CleanAllTarget) != ''" |
| 111 | Targets="%(CleanAllTarget)" /> |
Steve Dower | 65e4cb1 | 2014-11-22 12:54:57 -0800 | [diff] [blame] | 112 | <MSBuild Projects="@(Projects)" |
| 113 | Properties="Configuration=%(Configuration);Platform=%(Platform);%(Properties)" |
| 114 | BuildInParallel="%(BuildInParallel)" |
| 115 | StopOnFirstFailure="false" |
| 116 | Condition="%(CleanAllTarget) != ''" |
| 117 | Targets="%(CleanAllTarget)" /> |
| 118 | </Target> |
| 119 | |
| 120 | <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> |
| 121 | <Target Name="RebuildAll" DependsOnTargets="CleanAll;Build" /> |
| 122 | </Project> |