Skip to content

Commit

Permalink
pythongh-108494: Document howto add a project in PCbuild/readme.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner committed Sep 29, 2023
1 parent 7dc2c50 commit 5025edd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions PCbuild/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -293,3 +293,20 @@ project, with some projects overriding certain specific values. The GUI
doesn't always reflect the correct settings and may confuse the user
with false information, especially for settings that automatically adapt
for different configurations.

Add a new project
-----------------

For example, add ad new _testclinic_limited project to build a new
_testclinic_limited extension, the file Modules/_testclinic_limited.c:

* In PCbuild/, copy _asyncio.vcxproj to _testclinic_limited.vcxproj,
replace RootNamespace value with `_testclinic_limited`, replace
`_asyncio.c` with `_testclinic_limited.c`.
* Open Visual Studio, open `PCbuild\pcbuild.sln`, add the
PCbuild\_testclinic_limited.vcxproj project to the solution ("add existing
project).
* Add a dependency on the python project to the _testclinic_limited project.
* Save and exit Visual Studio.
* Add `;_testclinic_limited` to `<TestModules Include="...">` in
PCbuild\pcbuild.proj.

0 comments on commit 5025edd

Please sign in to comment.