| # This file defines emulator crash service |
| prebuilt(QT5) |
| |
| set(CRASH_WINDOWS_ICON ../images/emulator_icon.rc) |
| set(android-emu-crash-service_src |
| android/crashreport/CrashService_common.cpp |
| # Make sure we are depending on HW_CONFIG |
| ${ANDROID_HW_CONFIG_H} |
| ) |
| |
| set(android-emu-crash-service_linux-x86_64_src android/crashreport/CrashService_linux.cpp) |
| set(android-emu-crash-service_darwin-x86_64_src android/crashreport/CrashService_darwin.cpp) |
| set(android-emu-crash-service_windows-x86_64_src android/crashreport/CrashService_windows.cpp) |
| set(android-emu-crash-service_windows_msvc-x86_64_src android/crashreport/CrashService_windows.cpp) |
| |
| android_add_library(android-emu-crash-service) |
| target_include_directories(android-emu-crash-service PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
| target_link_libraries(android-emu-crash-service PRIVATE breakpad_server curl android-emu) |
| # Windows-msvc specific dependencies. Need these for posix support. |
| android_target_link_libraries(android-emu-crash-service windows_msvc-x86_64 PUBLIC |
| msvc-posix-compat |
| dirent-win32) |
| |
| set(emulator-crash-service_src |
| android/crashreport/main-crash-service.cpp |
| android/crashreport/ui/ConfirmDialog.cpp |
| android/resource.c |
| android/skin/resource.c |
| #QT Files, these are automatically picked up |
| android/crashreport/ui/ConfirmDialog.ui |
| android/crashreport/ui/ConfirmDialog.h |
| # The icon |
| ${CRASH_WINDOWS_ICON} |
| ) |
| |
| android_add_executable(emulator-crash-service) |
| set_target_properties(emulator-crash-service PROPERTIES OUTPUT_NAME "emulator64-crash-service") |
| target_compile_definitions(emulator-crash-service PRIVATE |
| -DCONFIG_QT -DCRASHUPLOAD=${OPTION_CRASHUPLOAD} |
| -DANDROID_SDK_TOOLS_REVISION=${OPTION_SDK_TOOLS_REVISION} |
| -DANDROID_SDK_TOOLS_BUILD_NUMBER=${OPTION_SDK_TOOLS_BUILD_NUMBER}) |
| target_link_libraries(emulator-crash-service PRIVATE android-emu-crash-service android-emu emulator-libui breakpad_server Qt5::Gui) |
| android_install_exe(emulator-crash-service .) |
| |
| set(emulator64_test_crasher_src android/crashreport/testing/main-test-crasher.cpp) |
| android_add_executable(emulator64_test_crasher) |
| target_link_libraries(emulator64_test_crasher PRIVATE android-emu libqemu2-glue breakpad_server) |
| |
| set(emulator_crashreport_unittests_src |
| android/crashreport/CrashService_common.cpp |
| android/crashreport/CrashService_unittest.cpp |
| android/crashreport/CrashSystem_unittest.cpp |
| android/crashreport/HangDetector_unittest.cpp |
| ) |
| set(emulator_crashreport_unittests_linux-x86_64_src android/crashreport/CrashService_linux.cpp) |
| set(emulator_crashreport_unittests_darwin-x86_64_src android/crashreport/CrashService_darwin.cpp) |
| set(emulator_crashreport_unittests_windows-x86_64_src android/crashreport/CrashService_windows.cpp) |
| set(emulator_crashreport_unittests_windows_msvc-x86_64_src android/crashreport/CrashService_windows.cpp) |
| |
| android_add_test(emulator_crashreport_unittests) |
| target_link_libraries(emulator_crashreport_unittests PRIVATE android-emu libqemu2-glue breakpad_server gtest_main) |
| target_include_directories(emulator_crashreport_unittests PRIVATE .) |
| # Windows-msvc specific dependencies. Need these for posix support. |
| android_target_link_libraries(emulator_crashreport_unittests windows_msvc-x86_64 PUBLIC |
| msvc-posix-compat |
| dirent-win32) |