diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-02 19:43:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 19:43:05 (GMT) |
commit | 981696e342f41dc3f8c2ea94a79475c931d2c7cf (patch) | |
tree | 4538b0b42a5c2474aedb0be1ea2e8e9236f0f19b | |
parent | 914ffb40d0d3ced2ed11e8f0edbc4dc4c569ccf6 (diff) | |
download | cpython-981696e342f41dc3f8c2ea94a79475c931d2c7cf.zip cpython-981696e342f41dc3f8c2ea94a79475c931d2c7cf.tar.gz cpython-981696e342f41dc3f8c2ea94a79475c931d2c7cf.tar.bz2 |
[3.11] gh-108494: Document how to add a project in PCbuild/readme.txt (#110077) (#110232)
gh-108494: Document how to add a project in PCbuild/readme.txt (#110077)
(cherry picked from commit 6387b5313c60c1403785b2245db33372476ac304)
-rw-r--r-- | PCbuild/readme.txt | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PCbuild/readme.txt b/PCbuild/readme.txt index 092b2cc..d6149a3 100644 --- a/PCbuild/readme.txt +++ b/PCbuild/readme.txt @@ -291,3 +291,31 @@ 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 a new _testclinic_limited project to build a new +_testclinic_limited extension, the file Modules/_testclinic_limited.c: + +* In PCbuild/, copy _testclinic.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 solution, add the + PCbuild\_testclinic_limited.vcxproj project to the solution ("add existing + project). +* Add a dependency on the python project to the new _testclinic_limited + project. +* Save and exit Visual Studio. +* Add `;_testclinic_limited` to `<TestModules Include="...">` in + PCbuild\pcbuild.proj. +* Update "exts" in Tools\msi\lib\lib_files.wxs file or in + Tools\msi\test\test_files.wxs file (for tests). +* PC\layout\main.py needs updating if you add a test-only extension whose name + doesn't start with "_test". +* Add the extension to PCbuild\readme.txt (this file). +* Build Python from scratch (clean the solution) to check that the new project + is built successfully. +* Ensure the new .vcxproj and .vcxproj.filters files are added to your commit, + as well as the changes to pcbuild.sln, pcbuild.proj and any other modified + files. |