add breakpad support on linux

This commit is contained in:
Green Sky
2024-11-12 12:53:39 +01:00
parent 9277ef34f6
commit 281e681bf8
7 changed files with 199 additions and 5 deletions

View File

@ -126,6 +126,16 @@ target_sources(tomato PUBLIC
./debug_video_tap.cpp
)
if (TOMATO_BREAKPAD)
target_sources(tomato PUBLIC
./breakpad_client.hpp
./breakpad_client.cpp
)
target_link_libraries(tomato PUBLIC breakpad_client)
target_compile_definitions(tomato PUBLIC TOMATO_BREAKPAD)
endif()
if (TOMATO_TOX_AV)
target_sources(tomato PUBLIC
./tox_av.hpp
@ -167,9 +177,6 @@ target_link_libraries(tomato PUBLIC
SDL3_image::SDL3_image
)
# probably not enough
#target_compile_definitions(tomato PUBLIC ENTT_API_EXPORT)
set_target_properties(tomato PROPERTIES POSITION_INDEPENDENT_CODE ON)
########################################