mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-30 01:00:13 +02:00
Enable building breakpad on windows
This commit is contained in:
111
thirdparty/breakpad/CMakeLists.txt
vendored
111
thirdparty/breakpad/CMakeLists.txt
vendored
@@ -15,58 +15,67 @@ if(${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||
endif(${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||
|
||||
IF(UNIX)
|
||||
IF(APPLE)
|
||||
IF(APPLE)
|
||||
SET( breakpadSources
|
||||
client/mac/crash_generation/crash_generation_client.cc
|
||||
client/mac/crash_generation/crash_generation_server.cc
|
||||
client/mac/handler/breakpad_nlist_64.cc
|
||||
client/mac/handler/dynamic_images.cc
|
||||
client/mac/handler/exception_handler.cc
|
||||
client/mac/handler/minidump_generator.cc
|
||||
client/mac/handler/protected_memory_allocator.cc
|
||||
# client/mac/Framework/Breakpad.mm
|
||||
# client/mac/Framework/OnDemandServer.mm
|
||||
common/mac/file_id.cc
|
||||
common/mac/macho_id.cc
|
||||
common/mac/macho_reader.cc
|
||||
common/mac/macho_utilities.cc
|
||||
common/mac/macho_walker.cc
|
||||
common/mac/string_utilities.cc
|
||||
common/md5.c
|
||||
common/mac/dump_syms.mm
|
||||
common/mac/MachIPC.mm
|
||||
common/mac/SimpleStringDictionary.mm
|
||||
)
|
||||
ELSE(APPLE)
|
||||
SET( breakpadSources
|
||||
client/linux/crash_generation/crash_generation_client.cc
|
||||
client/linux/crash_generation/crash_generation_server.cc
|
||||
client/linux/minidump_writer/minidump_writer.cc
|
||||
client/linux/minidump_writer/linux_dumper.cc
|
||||
client/linux/handler/exception_handler.cc
|
||||
common/linux/dump_symbols.cc
|
||||
common/linux/file_id.cc
|
||||
common/linux/libcurl_wrapper.cc
|
||||
common/linux/google_crashdump_uploader.cc
|
||||
common/linux/synth_elf.cc
|
||||
common/linux/http_upload.cc
|
||||
common/linux/guid_creator.cc
|
||||
common/linux/elf_symbols_to_module.cc
|
||||
common/string_conversion.cc
|
||||
common/convert_UTF.c
|
||||
client/minidump_file_writer.cc
|
||||
)
|
||||
ENDIF(APPLE)
|
||||
|
||||
SET( breakpadSources
|
||||
client/mac/crash_generation/crash_generation_client.cc
|
||||
client/mac/crash_generation/crash_generation_server.cc
|
||||
client/mac/handler/breakpad_nlist_64.cc
|
||||
client/mac/handler/dynamic_images.cc
|
||||
client/mac/handler/exception_handler.cc
|
||||
client/mac/handler/minidump_generator.cc
|
||||
client/mac/handler/protected_memory_allocator.cc
|
||||
# client/mac/Framework/Breakpad.mm
|
||||
# client/mac/Framework/OnDemandServer.mm
|
||||
common/mac/file_id.cc
|
||||
common/mac/macho_id.cc
|
||||
common/mac/macho_reader.cc
|
||||
common/mac/macho_utilities.cc
|
||||
common/mac/macho_walker.cc
|
||||
common/mac/string_utilities.cc
|
||||
common/string_conversion.cc
|
||||
common/convert_UTF.c
|
||||
common/md5.c
|
||||
common/mac/dump_syms.mm
|
||||
common/mac/MachIPC.mm
|
||||
common/mac/SimpleStringDictionary.mm
|
||||
client/minidump_file_writer.cc
|
||||
LIST(APPEND breakpadSources
|
||||
client/minidump_file_writer.cc
|
||||
common/convert_UTF.c
|
||||
common/string_conversion.cc
|
||||
)
|
||||
|
||||
ELSE(APPLE)
|
||||
|
||||
SET( breakpadSources
|
||||
client/linux/crash_generation/crash_generation_client.cc
|
||||
client/linux/crash_generation/crash_generation_server.cc
|
||||
client/linux/minidump_writer/minidump_writer.cc
|
||||
client/linux/minidump_writer/linux_dumper.cc
|
||||
client/linux/handler/exception_handler.cc
|
||||
common/linux/dump_symbols.cc
|
||||
common/linux/file_id.cc
|
||||
common/linux/libcurl_wrapper.cc
|
||||
common/linux/google_crashdump_uploader.cc
|
||||
common/linux/synth_elf.cc
|
||||
common/linux/http_upload.cc
|
||||
common/linux/guid_creator.cc
|
||||
common/linux/elf_symbols_to_module.cc
|
||||
common/string_conversion.cc
|
||||
common/convert_UTF.c
|
||||
client/minidump_file_writer.cc
|
||||
)
|
||||
|
||||
ENDIF(APPLE)
|
||||
ENDIF(UNIX)
|
||||
|
||||
include_directories(.)
|
||||
add_definitions(-fPIC)
|
||||
add_library(tomahawk_breakpad STATIC ${breakpadSources})
|
||||
target_link_libraries(tomahawk_breakpad)
|
||||
IF(WIN32)
|
||||
ADD_DEFINITIONS( -DUNICODE )
|
||||
SET( breakpadSources
|
||||
client/windows/handler/exception_handler.cc
|
||||
client/windows/crash_generation/crash_generation_client.cc
|
||||
common/windows/guid_string.cc
|
||||
)
|
||||
ENDIF(WIN32)
|
||||
|
||||
|
||||
INCLUDE_DIRECTORIES(.)
|
||||
ADD_DEFINITIONS( -fPIC )
|
||||
ADD_LIBRARY( tomahawk_breakpad STATIC ${breakpadSources} )
|
||||
TARGET_LINK_LIBRARIES( tomahawk_breakpad )
|
||||
|
Reference in New Issue
Block a user