diff options
author | Dmitri Ovodok <dmitrio95@yandex.ru> | 2019-02-21 11:04:29 +0300 |
---|---|---|
committer | Dmitri Ovodok <dmitrio95@yandex.ru> | 2019-02-22 17:15:24 +0300 |
commit | 43ea1910dbe1130a34e0cbeaf3bb490ed358d97b (patch) | |
tree | 6c7b589083f3ff89475dc484bd98b2b605c181b4 /src | |
parent | 4f2339dcdf55ded84bdab91e82116801b32314d3 (diff) |
Add an option to disable crash reporter GUI component
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/libcrashreporter-handler/Handler.cpp | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cee1842..14638bd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,2 +1,5 @@ add_subdirectory(libcrashreporter-handler) -add_subdirectory(libcrashreporter-gui) + +if (ENABLE_CRASH_REPORTER) + add_subdirectory(libcrashreporter-gui) +endif(ENABLE_CRASH_REPORTER) diff --git a/src/libcrashreporter-handler/Handler.cpp b/src/libcrashreporter-handler/Handler.cpp index 40307ac..2ef58ed 100644 --- a/src/libcrashreporter-handler/Handler.cpp +++ b/src/libcrashreporter-handler/Handler.cpp @@ -218,7 +218,7 @@ LaunchUploader( const char* dump_dir, const char* minidump_id, void* context, bo printf( "Error: Can't launch CrashReporter!\n" ); return false; } -#ifdef Q_OS_LINUX +#if defined(Q_OS_LINUX) && defined(ENABLE_CRASH_REPORTER) // If we're running on Linux, we expect that the CrashReporter component will // attach gdb, do its thing and then kill this process, so we hang here for the // time being, on purpose. -- Teo 3/2016 |