Skip to content
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

[breakpad] Add windows tools #38671

Closed
wants to merge 8 commits into from
Closed

Conversation

RealChuan
Copy link
Contributor

@RealChuan RealChuan commented May 10, 2024

  • Changes comply with the maintainer guide.
  • SHA512s are updated for each updated download.
  • The "supports" clause reflects platforms that may be fixed by this new version.
  • Any fixed CI baseline entries are removed from that file.
  • Any patches that are no longer applied are deleted from the port's directory.
  • The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
  • Only one version is added to each modified port's versions file.

@RealChuan RealChuan marked this pull request as draft May 10, 2024 11:14
@RealChuan RealChuan changed the title [Breakpad] Add windows tools [breakpad] Add windows tools May 10, 2024
@RealChuan RealChuan marked this pull request as ready for review May 10, 2024 11:42
@jimwang118 jimwang118 added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label May 11, 2024
@jimwang118
Copy link
Contributor

Testing under local Windows did not generate dump_syms, sym_upload, google_converter.

@jimwang118 jimwang118 marked this pull request as draft May 11, 2024 06:09
@RealChuan
Copy link
Contributor Author

Testing under local Windows did not generate dump_syms, sym_upload, google_converter.

Use vcpkg install breakpad[tools] - triplet x64-windows?

@jimwang118
Copy link
Contributor

Testing under local Windows did not generate dump_syms, sym_upload, google_converter.

Use vcpkg install breakpad[tools] - triplet x64-windows?

I'm very sorry, it's my fault that I didn't add the feature during the test. Retested and passed.

@jimwang118 jimwang118 marked this pull request as ready for review May 11, 2024 06:57
@jimwang118 jimwang118 added the info:reviewed Pull Request changes follow basic guidelines label May 11, 2024
@jimwang118
Copy link
Contributor

Compile test pass with following triplets:

x64-windows

@@ -178,6 +178,29 @@ if(INSTALL_TOOLS)
src/tools/linux/core_handler/core_handler.cc)
target_link_libraries(core_handler PRIVATE libbreakpad_client)
install(TARGETS core_handler DESTINATION bin)
elseif(WIN32)
set(CMAKE_GENERATOR_PLATFORM ${VCPKG_TARGET_ARCHITECTURE})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it initialized correctly?
"The value of this variable should never be modified by project code."
https://cmake.org/cmake/help/latest/variable/CMAKE_GENERATOR_PLATFORM.html

@RealChuan
Copy link
Contributor Author

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this patch?

# (although the friendly name of that is C++ profiling tools). The toolset is the most likely target.
set(PROGRAMFILES_X86 "ProgramFiles(x86)")
execute_process(
COMMAND "$ENV{${PROGRAMFILES_X86}}/Microsoft Visual Studio/Installer/vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillyONeal pointed out that this command may choose a DIA SDK instance not related to the compiler used

@data-queue data-queue marked this pull request as draft May 16, 2024 20:03
@data-queue data-queue removed the info:reviewed Pull Request changes follow basic guidelines label May 16, 2024
@RealChuan RealChuan closed this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants