CMake Support

649 views
Skip to first unread message

Geoffrey Viola

unread,
Apr 21, 2018, 4:13:14 PM4/21/18
to google-breakpad-discuss
Are there any plans to add CMake support? I see some users have implemented themselves, but this gets out of date quickly: https://github.com/Mendeley/breakpad. It would be nice to add this project as a git submodule or install it and use CMake's find_package function.

Mike Frysinger

unread,
Apr 22, 2018, 4:33:41 AM4/22/18
to google-brea...@googlegroups.com
what are you looking for exactly ?  just to have a cmake module installed so other people using breakpad in a cmake-based project have an easier time ?  or for the breakpad build itself to be changed to cmake ?
-mike

On Sun, Apr 22, 2018 at 5:13 AM Geoffrey Viola <viola.g...@gmail.com> wrote:
Are there any plans to add CMake support? I see some users have implemented themselves, but this gets out of date quickly: https://github.com/Mendeley/breakpad. It would be nice to add this project as a git submodule or install it and use CMake's find_package function.

--
You received this message because you are subscribed to the Google Groups "google-breakpad-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-breakpad-d...@googlegroups.com.
To post to this group, send email to google-brea...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-breakpad-discuss.
For more options, visit https://groups.google.com/d/optout.

Min Li

unread,
Oct 23, 2018, 1:42:45 AM10/23/18
to google-breakpad-discuss
CMake support is very simple. for example:
set(BREAKPAD_SRC_DIR ${CMAKE_SOURCE_DIR}/native_libs/breakpad/src)
include_directories(${BREAKPAD_SRC_DIR})
set_property(SOURCE ${BREAKPAD_SRC_DIR}/common/android/breakpad_getcontext.S PROPERTY LANGUAGE C)
## source file see ${BREAKPAD_SRC_DIR}/../android/google_breakpad/Android.mk
file(GLOB breakpad_source_files
        "${BREAKPAD_SRC_DIR}/client/linux/crash_generation/crash_generation_client.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/dump_writer_common/thread_info.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/dump_writer_common/ucontext_reader.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/handler/exception_handler.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/handler/minidump_descriptor.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/log/log.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/microdump_writer/microdump_writer.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/minidump_writer/linux_dumper.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/minidump_writer/linux_ptrace_dumper.cc"
       
"${BREAKPAD_SRC_DIR}/client/linux/minidump_writer/minidump_writer.cc"
       
"${BREAKPAD_SRC_DIR}/client/minidump_file_writer.cc"
       
"${BREAKPAD_SRC_DIR}/common/android/breakpad_getcontext.S"
       
"${BREAKPAD_SRC_DIR}/common/convert_UTF.c"
       
"${BREAKPAD_SRC_DIR}/common/md5.cc"
       
"${BREAKPAD_SRC_DIR}/common/string_conversion.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/elfutils.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/file_id.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/guid_creator.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/linux_libc_support.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/memory_mapped_file.cc"
       
"${BREAKPAD_SRC_DIR}/common/linux/safe_readlink.cc"
       
)
add_library(breakpad SHARED ${breakpad_source_files})
target_link_libraries(breakpad log)




在 2018年4月22日星期日 UTC+8上午4:13:14,Geoffrey Viola写道:
Reply all
Reply to author
Forward
Message has been deleted
0 new messages