New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41054: Simplify resource compilation on Windows #21004
Conversation
Remove auto-generated resource header. Pass definitions required by resource files (PYTHON_DLL_NAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code.
PCbuild/pyproject.props
Outdated
@@ -80,7 +80,7 @@ | |||
</Lib> | |||
<ResourceCompile> | |||
<AdditionalIncludeDirectories>$(PySourcePath)PC;$(PySourcePath)Include;$(IntDir);%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> | |||
<PreprocessorDefinitions>$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> | |||
<PreprocessorDefinitions>PYTHON_DLL_NAME=\"$(TargetName)$(TargetExt)\";FIELD3=$(Field3Value);$(_DebugPreprocessorDefinition)%(PreprocessorDefinitions)</PreprocessorDefinitions> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename PYTHON_DLL_NAME
to ORIGINAL_FILENAME
, since that's how it's used.
I had more comments that I eventually unrolled, but since I spent 10-15 minutes figuring out that |
I'm not sure if I should squash and rebase ot just add commits to the aging branch. |
Adding commits is preferred - we squash merge and rewrite commit messages at the end. Doing it during a PR breaks all the reviews up to that point. |
Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code. (cherry picked from commit 4efc336) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
GH-21091 is a backport of this pull request to the 3.9 branch. |
Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code. (cherry picked from commit 4efc336) Co-authored-by: Nikita Nemkin <nikita@nemkin.ru>
Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code.
Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code.
Remove auto-generated resource header. Pass definitions required by resource files (ORIGINAL_FILENAME and FIELD3) directly to resource compiler. Remove unused MS_DLL_ID resource string and related dead code.
Remove auto-generated resource header. Pass definitions required by resource files (
PYTHON_DLL_NAME
andFIELD3
) directly to resource compiler.Remove unused
MS_DLL_ID
resource string and related dead code.https://bugs.python.org/issue41054