|
88 | 88 | <PropertyGroup Label="UserMacros" />
|
89 | 89 | <ItemDefinitionGroup>
|
90 | 90 | <ClCompile>
|
91 |
| - <PreprocessorDefinitions>_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 91 | + <PreprocessorDefinitions>Py_NO_ENABLE_SHARED;Py_BUILD_CORE;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
92 | 92 | </ClCompile>
|
93 | 93 | <Link>
|
94 | 94 | <SubSystem>Console</SubSystem>
|
| 95 | + <AdditionalDependencies>version.lib;shlwapi.lib;ws2_32.lib;pathcch.lib;bcrypt.lib;%(AdditionalDependencies)</AdditionalDependencies> |
95 | 96 | </Link>
|
96 | 97 | </ItemDefinitionGroup>
|
97 | 98 | <ItemGroup>
|
98 | 99 | <ClCompile Include="..\Programs\_freeze_module.c" />
|
| 100 | + <ClCompile Include="..\PC\config_minimal.c" /> |
99 | 101 | </ItemGroup>
|
100 | 102 | <ItemGroup>
|
101 |
| - <ProjectReference Include="pythoncore.vcxproj"> |
102 |
| - <Project>{cf7ac3d1-e2df-41d2-bea6-1e2556cdea26}</Project> |
103 |
| - <Private>true</Private> |
104 |
| - <ReferenceOutputAssembly>true</ReferenceOutputAssembly> |
105 |
| - <CopyLocalSatelliteAssemblies>false</CopyLocalSatelliteAssemblies> |
106 |
| - <LinkLibraryDependencies>true</LinkLibraryDependencies> |
107 |
| - <UseLibraryDependencyInputs>false</UseLibraryDependencyInputs> |
108 |
| - </ProjectReference> |
| 103 | + <ClCompile Include="..\Modules\atexitmodule.c" /> |
| 104 | + <ClCompile Include="..\Modules\faulthandler.c" /> |
| 105 | + <ClCompile Include="..\Modules\gcmodule.c" /> |
| 106 | + <ClCompile Include="..\Modules\getbuildinfo.c" /> |
| 107 | + <ClCompile Include="..\Modules\posixmodule.c" /> |
| 108 | + <ClCompile Include="..\Modules\signalmodule.c" /> |
| 109 | + <ClCompile Include="..\Modules\_tracemalloc.c" /> |
| 110 | + <ClCompile Include="..\Modules\_io\_iomodule.c" /> |
| 111 | + <ClCompile Include="..\Modules\_io\bufferedio.c" /> |
| 112 | + <ClCompile Include="..\Modules\_io\bytesio.c" /> |
| 113 | + <ClCompile Include="..\Modules\_io\fileio.c" /> |
| 114 | + <ClCompile Include="..\Modules\_io\iobase.c" /> |
| 115 | + <ClCompile Include="..\Modules\_io\stringio.c" /> |
| 116 | + <ClCompile Include="..\Modules\_io\textio.c" /> |
| 117 | + <ClCompile Include="..\Modules\_io\winconsoleio.c" /> |
| 118 | + <ClCompile Include="..\Objects\abstract.c" /> |
| 119 | + <ClCompile Include="..\Objects\accu.c" /> |
| 120 | + <ClCompile Include="..\Objects\boolobject.c" /> |
| 121 | + <ClCompile Include="..\Objects\bytearrayobject.c" /> |
| 122 | + <ClCompile Include="..\Objects\bytes_methods.c" /> |
| 123 | + <ClCompile Include="..\Objects\bytesobject.c" /> |
| 124 | + <ClCompile Include="..\Objects\call.c" /> |
| 125 | + <ClCompile Include="..\Objects\capsule.c" /> |
| 126 | + <ClCompile Include="..\Objects\cellobject.c" /> |
| 127 | + <ClCompile Include="..\Objects\classobject.c" /> |
| 128 | + <ClCompile Include="..\Objects\codeobject.c" /> |
| 129 | + <ClCompile Include="..\Objects\complexobject.c" /> |
| 130 | + <ClCompile Include="..\Objects\descrobject.c" /> |
| 131 | + <ClCompile Include="..\Objects\dictobject.c" /> |
| 132 | + <ClCompile Include="..\Objects\enumobject.c" /> |
| 133 | + <ClCompile Include="..\Objects\exceptions.c" /> |
| 134 | + <ClCompile Include="..\Objects\fileobject.c" /> |
| 135 | + <ClCompile Include="..\Objects\floatobject.c" /> |
| 136 | + <ClCompile Include="..\Objects\frameobject.c" /> |
| 137 | + <ClCompile Include="..\Objects\funcobject.c" /> |
| 138 | + <ClCompile Include="..\Objects\genericaliasobject.c" /> |
| 139 | + <ClCompile Include="..\Objects\genobject.c" /> |
| 140 | + <ClCompile Include="..\Objects\interpreteridobject.c" /> |
| 141 | + <ClCompile Include="..\Objects\iterobject.c" /> |
| 142 | + <ClCompile Include="..\Objects\listobject.c" /> |
| 143 | + <ClCompile Include="..\Objects\longobject.c" /> |
| 144 | + <ClCompile Include="..\Objects\memoryobject.c" /> |
| 145 | + <ClCompile Include="..\Objects\methodobject.c" /> |
| 146 | + <ClCompile Include="..\Objects\moduleobject.c" /> |
| 147 | + <ClCompile Include="..\Objects\namespaceobject.c" /> |
| 148 | + <ClCompile Include="..\Objects\object.c" /> |
| 149 | + <ClCompile Include="..\Objects\obmalloc.c" /> |
| 150 | + <ClCompile Include="..\Objects\odictobject.c" /> |
| 151 | + <ClCompile Include="..\Objects\picklebufobject.c" /> |
| 152 | + <ClCompile Include="..\Objects\rangeobject.c" /> |
| 153 | + <ClCompile Include="..\Objects\setobject.c" /> |
| 154 | + <ClCompile Include="..\Objects\sliceobject.c" /> |
| 155 | + <ClCompile Include="..\Objects\structseq.c" /> |
| 156 | + <ClCompile Include="..\Objects\tupleobject.c" /> |
| 157 | + <ClCompile Include="..\Objects\typeobject.c" /> |
| 158 | + <ClCompile Include="..\Objects\unicodectype.c" /> |
| 159 | + <ClCompile Include="..\Objects\unicodeobject.c" /> |
| 160 | + <ClCompile Include="..\Objects\unionobject.c" /> |
| 161 | + <ClCompile Include="..\Objects\weakrefobject.c" /> |
| 162 | + <ClCompile Include="..\Parser\myreadline.c" /> |
| 163 | + <ClCompile Include="..\Parser\parser.c" /> |
| 164 | + <ClCompile Include="..\Parser\peg_api.c" /> |
| 165 | + <ClCompile Include="..\Parser\pegen.c" /> |
| 166 | + <ClCompile Include="..\Parser\string_parser.c" /> |
| 167 | + <ClCompile Include="..\Parser\token.c" /> |
| 168 | + <ClCompile Include="..\Parser\tokenizer.c" /> |
| 169 | + <ClCompile Include="..\PC\getpathp.c" /> |
| 170 | + <ClCompile Include="..\PC\invalid_parameter_handler.c" /> |
| 171 | + <ClCompile Include="..\PC\msvcrtmodule.c" /> |
| 172 | + <ClCompile Include="..\PC\winreg.c" /> |
| 173 | + <ClCompile Include="..\Python\_warnings.c" /> |
| 174 | + <ClCompile Include="..\Python\asdl.c" /> |
| 175 | + <ClCompile Include="..\Python\ast.c" /> |
| 176 | + <ClCompile Include="..\Python\ast_opt.c" /> |
| 177 | + <ClCompile Include="..\Python\ast_unparse.c" /> |
| 178 | + <ClCompile Include="..\Python\bltinmodule.c" /> |
| 179 | + <ClCompile Include="..\Python\bootstrap_hash.c" /> |
| 180 | + <ClCompile Include="..\Python\ceval.c" /> |
| 181 | + <ClCompile Include="..\Python\codecs.c" /> |
| 182 | + <ClCompile Include="..\Python\compile.c" /> |
| 183 | + <ClCompile Include="..\Python\context.c" /> |
| 184 | + <ClCompile Include="..\Python\dtoa.c" /> |
| 185 | + <ClCompile Include="..\Python\dynamic_annotations.c" /> |
| 186 | + <ClCompile Include="..\Python\dynload_win.c" /> |
| 187 | + <ClCompile Include="..\Python\errors.c" /> |
| 188 | + <ClCompile Include="..\Python\fileutils.c" /> |
| 189 | + <ClCompile Include="..\Python\formatter_unicode.c" /> |
| 190 | + <ClCompile Include="..\Python\frame.c" /> |
| 191 | + <ClCompile Include="..\Python\future.c" /> |
| 192 | + <ClCompile Include="..\Python\getargs.c" /> |
| 193 | + <ClCompile Include="..\Python\getcompiler.c" /> |
| 194 | + <ClCompile Include="..\Python\getcopyright.c" /> |
| 195 | + <ClCompile Include="..\Python\getopt.c" /> |
| 196 | + <ClCompile Include="..\Python\getplatform.c" /> |
| 197 | + <ClCompile Include="..\Python\getversion.c" /> |
| 198 | + <ClCompile Include="..\Python\hamt.c" /> |
| 199 | + <ClCompile Include="..\Python\hashtable.c" /> |
| 200 | + <ClCompile Include="..\Python\import.c" /> |
| 201 | + <ClCompile Include="..\Python\importdl.c" /> |
| 202 | + <ClCompile Include="..\Python\initconfig.c" /> |
| 203 | + <ClCompile Include="..\Python\marshal.c" /> |
| 204 | + <ClCompile Include="..\Python\modsupport.c" /> |
| 205 | + <ClCompile Include="..\Python\mysnprintf.c" /> |
| 206 | + <ClCompile Include="..\Python\mystrtoul.c" /> |
| 207 | + <ClCompile Include="..\Python\pathconfig.c" /> |
| 208 | + <ClCompile Include="..\Python\preconfig.c" /> |
| 209 | + <ClCompile Include="..\Python\pyarena.c" /> |
| 210 | + <ClCompile Include="..\Python\pyctype.c" /> |
| 211 | + <ClCompile Include="..\Python\pyfpe.c" /> |
| 212 | + <ClCompile Include="..\Python\pyhash.c" /> |
| 213 | + <ClCompile Include="..\Python\pylifecycle.c" /> |
| 214 | + <ClCompile Include="..\Python\pymath.c" /> |
| 215 | + <ClCompile Include="..\Python\pystate.c" /> |
| 216 | + <ClCompile Include="..\Python\pystrcmp.c" /> |
| 217 | + <ClCompile Include="..\Python\pystrhex.c" /> |
| 218 | + <ClCompile Include="..\Python\pystrtod.c" /> |
| 219 | + <ClCompile Include="..\Python\Python-ast.c" /> |
| 220 | + <ClCompile Include="..\Python\pythonrun.c" /> |
| 221 | + <ClCompile Include="..\Python\Python-tokenize.c" /> |
| 222 | + <ClCompile Include="..\Python\pytime.c" /> |
| 223 | + <ClCompile Include="..\Python\specialize.c" /> |
| 224 | + <ClCompile Include="..\Python\structmember.c" /> |
| 225 | + <ClCompile Include="..\Python\suggestions.c" /> |
| 226 | + <ClCompile Include="..\Python\symtable.c" /> |
| 227 | + <ClCompile Include="..\Python\sysmodule.c" /> |
| 228 | + <ClCompile Include="..\Python\thread.c" /> |
| 229 | + <ClCompile Include="..\Python\traceback.c" /> |
109 | 230 | </ItemGroup>
|
110 | 231 | <ItemGroup>
|
111 | 232 | <!-- BEGIN frozen modules -->
|
|
126 | 247 | </None>
|
127 | 248 | <None Include="..\Tools\freeze\flag.py">
|
128 | 249 | <ModName>hello</ModName>
|
129 |
| - <IntFile>$(IntDir)ello.g.h</IntFile> |
| 250 | + <IntFile>$(IntDir)hello.g.h</IntFile> |
130 | 251 | <OutFile>$(PySourcePath)Python\frozen_modules\hello.h</OutFile>
|
131 | 252 | </None>
|
132 | 253 | <!-- END frozen modules -->
|
133 | 254 | </ItemGroup>
|
134 | 255 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
135 | 256 | <ImportGroup Label="ExtensionTargets">
|
136 | 257 | </ImportGroup>
|
137 |
| - <Target Name="_RebuildFrozen"> |
| 258 | + <Target Name="_RebuildFrozen" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGUpdate'"> |
138 | 259 | <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' />
|
139 |
| - |
| 260 | + |
140 | 261 | <Copy SourceFiles="%(None.IntFile)"
|
141 | 262 | DestinationFiles="%(None.OutFile)"
|
142 | 263 | Condition="!Exists(%(None.OutFile)) or (Exists(%(None.IntFile)) and '$([System.IO.File]::ReadAllText(%(None.OutFile)).Replace(`
`, `
`))' != '$([System.IO.File]::ReadAllText(%(None.IntFile)).Replace(`
`, `
`))')">
|
|
145 | 266 |
|
146 | 267 | <Message Text="Updated files: @(_Updated->'%(Filename)%(Extension)',', ')"
|
147 | 268 | Condition="'@(_Updated)' != ''" Importance="high" />
|
148 |
| - <Warning Text="Frozen modules (e.g. importlib) were updated. Please rebuild to pick up the changes.%0D%0A%0D%0AIf you are not developing on Windows but you see this error on a continuous integration build, please run 'make regen-all' and commit anything that changes." |
149 |
| - Condition="'@(_Updated)' != '' and $(Configuration) == 'Debug'" /> |
150 |
| - <Error Text="Frozen (e.g. importlib) files were updated. Please rebuild to pick up the changes.%0D%0A%0D%0AIf you are not developing on Windows but you see this error on a continuous integration build, please run 'make regen-all' and commit anything that changes." |
151 |
| - Condition="'@(_Updated)' != '' and $(Configuration) == 'Release'" /> |
152 |
| - </Target> |
153 |
| - <Target Name="RebuildFrozen" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'" |
154 |
| - DependsOnTargets="_RebuildFrozen"> |
155 |
| - </Target> |
156 |
| - <Target Name="RebuildImportLib" AfterTargets="AfterBuild" Condition="$(Configuration) == 'Debug' or $(Configuration) == 'Release'" |
157 |
| - DependsOnTargets="_RebuildFrozen"> |
158 | 269 | </Target>
|
159 |
| - <Target Name="_CleanFrozen" BeforeTargets="CoreClean"> |
| 270 | + <Target Name="_CleanFrozen" BeforeTargets="CoreClean" Condition="$(Configuration) != 'PGUpdate'"> |
160 | 271 | <ItemGroup>
|
161 | 272 | <Clean Include="%(None.IntFile)" />
|
162 | 273 | </ItemGroup>
|
|
0 commit comments