-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[3fd|python3] switch to vcpkg-msbuild #33026
Merged
JavierMatosD
merged 9 commits into
microsoft:master
from
Neumann-A:python3_vcpkg_msbuild
Aug 9, 2023
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3b0c79f
[python3] switch to vcpkg-msbuild
Neumann-A b9c0bdc
v db
Neumann-A 0adfc3b
update 3fd to use vcpkg-msbuild as a sanity check
Neumann-A 91e4a52
Fix windows cross builds
Neumann-A fead72a
v db
Neumann-A e5ba0fb
arm needs another patch
Neumann-A ba9f83f
v db
Neumann-A f4cd96f
3fd uwp msbuild_install
Neumann-A a80933b
v db
Neumann-A File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/PC/launcher.c b/PC/launcher.c | ||
index 734e75333..7124927cf 100644 | ||
--- a/PC/launcher.c | ||
+++ b/PC/launcher.c | ||
@@ -2015,7 +2015,7 @@ installed, use -0 for available pythons", &p[1]); | ||
return rc; | ||
} | ||
|
||
-#if defined(_WINDOWS) | ||
+#if !defined(_CONSOLE) // _WINDOWS is defined by the vcpkg toolchain | ||
|
||
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, | ||
LPWSTR lpstrCmd, int nShow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj | ||
index 7d3423251f..7f607742fe 100644 | ||
--- a/PCbuild/_freeze_module.vcxproj | ||
+++ b/PCbuild/_freeze_module.vcxproj | ||
@@ -366,7 +366,7 @@ | ||
<ImportGroup Label="ExtensionTargets"> | ||
</ImportGroup> | ||
<Target Name="_RebuildGetPath" AfterTargets="_RebuildFrozen" Condition="$(Configuration) != 'PGUpdate'"> | ||
- <Exec Command='"$(TargetPath)" "%(GetPath.ModName)" "%(GetPath.FullPath)" "%(GetPath.IntFile)"' /> | ||
+ <Exec Command='"_freeze_module.exe" "%(GetPath.ModName)" "%(GetPath.FullPath)" "%(GetPath.IntFile)"' /> | ||
|
||
<Copy SourceFiles="%(GetPath.IntFile)" | ||
DestinationFiles="%(GetPath.OutFile)" | ||
@@ -378,7 +378,7 @@ | ||
Condition="'@(_UpdatedGetPath)' != ''" Importance="high" /> | ||
</Target> | ||
<Target Name="_RebuildFrozen" AfterTargets="AfterBuild" Condition="$(Configuration) != 'PGUpdate'"> | ||
- <Exec Command='"$(TargetPath)" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' /> | ||
+ <Exec Command='"_freeze_module.exe" "%(None.ModName)" "%(None.FullPath)" "%(None.IntFile)"' /> | ||
|
||
<Copy SourceFiles="%(None.IntFile)" | ||
DestinationFiles="%(None.OutFile)" | ||
diff --git a/PCbuild/pcbuild.proj b/PCbuild/pcbuild.proj | ||
index c49a8533ad..b1cdf7c8d7 100644 | ||
--- a/PCbuild/pcbuild.proj | ||
+++ b/PCbuild/pcbuild.proj | ||
@@ -14,6 +14,6 @@ | ||
<ItemDefinitionGroup> | ||
<FreezeProjects> | ||
- <Platform>$(PreferredToolArchitecture)</Platform> | ||
+ <Platform>$(Platform)</Platform> | ||
<Configuration>$(Configuration)</Configuration> | ||
<Configuration Condition="$(Configuration) == 'PGInstrument'">Release</Configuration> | ||
<Properties></Properties> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Wouldn't this benefit from
x_vcpkg_pkgconfig_get_modules()
?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.
I could rather add
DEPENDENT_PKGCONFIG
tovcpkg_msbuild_install
but didn't want to go there yet.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.
Why are these libs duplicated in props file?
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.
The ultimate cleanup plan would be to remove
openssl.props.in
andpython_vcpkg.props.in
completely.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.
Why?
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.
@Hoikas I assume the why is in response of dropping the
props
files as ultimate cleanup. Simply said no portfile should require a direct interaction with build system internals. In the case of MSBuild it is the injection of props files which every port would have needed to to manually. It is simply better to have an abstraction around that than having to deal with msbuild shenanigans.