Skip to content

Commit

Permalink
Attach zlib to where the glob happens, and remove duplicate cpp files…
Browse files Browse the repository at this point in the history
… from dump_syms.
  • Loading branch information
BillyONeal committed Dec 9, 2023
1 parent 7e3c4d1 commit 355e4f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
21 changes: 9 additions & 12 deletions ports/breakpad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,23 @@ else()
endif()
endif()

set(USED_ZLIB OFF)
if(LINUX AND NOT CMAKE_SYSTEM_NAME STREQUAL Android)
# src/common/linux/dump_symbols.cc wants zlib.h
find_package(ZLIB REQUIRED)
target_link_libraries(libbreakpad_client PRIVATE ZLIB::ZLIB)
set(USED_ZLIB ON)
endif()

target_include_directories(libbreakpad_client
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:include>
)
list(APPEND TARGETS libbreakpad_client)

set(USED_ZLIB OFF)
if(INSTALL_TOOLS)
if(LINUX)
find_package(ZLIB REQUIRED)
set(USED_ZLIB ON)
add_executable(microdump_stackwalk
src/processor/microdump_stackwalk.cc)
target_link_libraries(microdump_stackwalk PRIVATE libbreakpad libbreakpad_client)
Expand Down Expand Up @@ -144,16 +149,8 @@ if(INSTALL_TOOLS)
src/common/dwarf/dwarf2diehandler.cc
src/common/dwarf/dwarf2reader.cc
src/common/dwarf/elf_reader.cc
src/common/linux/crc32.cc
src/common/linux/dump_symbols.cc
src/common/linux/elf_symbols_to_module.cc
src/common/linux/elfutils.cc
src/common/linux/file_id.cc
src/common/linux/linux_libc_support.cc
src/common/linux/memory_mapped_file.cc
src/common/linux/safe_readlink.cc
src/tools/linux/dump_syms/dump_syms.cc)
target_link_libraries(dump_syms PRIVATE libbreakpad_client ZLIB::ZLIB)
target_link_libraries(dump_syms PRIVATE libbreakpad_client)
install(TARGETS dump_syms DESTINATION bin)

add_executable(minidump-2-core
Expand Down
2 changes: 1 addition & 1 deletion versions/b-/breakpad.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"versions": [
{
"git-tree": "23d2ade2d52db24c4dcd8ff524f5484bec854933",
"git-tree": "63d1b4c2912e6536e9a5509c6fae6696af64241a",
"version-date": "2023-01-27",
"port-version": 0
},
Expand Down

0 comments on commit 355e4f1

Please sign in to comment.