Skip to content

Commit

Permalink
deps: build breakpad on current compatible systems only
Browse files Browse the repository at this point in the history
  • Loading branch information
scribam committed Dec 15, 2023
1 parent 00954f1 commit 7218651
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,25 @@ if(NINTENDO_SWITCH)
endif()

if(NOT LIBRETRO)
message("CMAKE_SYSTEM_NAME ${CMAKE_SYSTEM_NAME}")
message("CMAKE_HOST_SYSTEM_NAME ${CMAKE_HOST_SYSTEM_NAME}")
message("CMAKE_HOST_SYSTEM ${CMAKE_HOST_SYSTEM}")
message("CMAKE_SH ${CMAKE_SH}")
message("CMAKE_SHELL ${CMAKE_SHELL}")
message("CMAKE_SHELL_EXECUTABLE ${CMAKE_SHELL_EXECUTABLE}")
message("ANDROID ${ANDROID}")
message("MINGW ${MINGW}")
find_program(SH_EXECUTABLE sh)
if(SH_EXECUTABLE)
message("SH_EXECUTABLE found")
else()
message("SH_EXECUTABLE not found")
endif()
if((WIN32 AND NOT MSVC) OR (UNIX AND NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES "(FreeBSD|OpenBSD|NetBSD)"))
message("Previously, I built breakpad")
endif()
if((ANDROID AND NOT CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows") OR (MINGW AND SH_EXECUTABLE) OR (CMAKE_SYSTEM_NAME STREQUAL "Linux"))
message("I will build breakpad")
add_subdirectory(core/deps/breakpad)
if(WIN32)
target_link_options(${PROJECT_NAME} PRIVATE "-Wl,--build-id")
Expand Down

0 comments on commit 7218651

Please sign in to comment.