8000 gh-108494: Document how to add a project in PCbuild/readme.txt · vstinner/cpython@a320a99 · GitHub
[go: up one dir, main page]

Skip to content

Commit a320a99

Browse files
committed
pythongh-108494: Document how to add a project in PCbuild/readme.txt
1 parent 7dc2c50 commit a320a99

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

PCbuild/readme.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,23 @@ project, with some projects overriding certain specific values. The GUI
293293
doesn't always reflect the correct settings and may confuse the user
294294
with false information, especially for settings that automatically adapt
295295
for different configurations.
296+
297+
Add a new project
298+
-----------------
299+
300+
For example, add a new _testclinic_limited project to build a new
301+
_testclinic_limited extension, the file Modules/_testclinic_limited.c:
302+
303+
* In PCbuild/, copy _asyncio.vcxproj to _testclinic_limited.vcxproj,
304+
replace RootNamespace value with `_testclinic_limited`, replace
305+
`_asyncio.c` with `_testclinic_limited.c`.
306+
* Open Visual Studio, open PCbuild\pcbuild.sln solution, add the
307+
PCbuild\_testclinic_limited.vcxproj project to the solution ("add existing
308+
project).
309+
* Add a dependency on the python project to the new _testclinic_limited
310+
project.
311+
* Save and exit Visual Studio.
312+
* Add `;_testclinic_limited` to `<TestModules Include="...">` in
313+
PCbuild\pcbuild.proj.
314+
* Build Python from scratch (clean the solution) to check that the new project
315+
is built successfully.

0 commit comments

Comments
 (0)
0