mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Move stacktrace dialog to gui folder
This commit is contained in:
parent
a1903e5d67
commit
d69e6bb7aa
@ -107,21 +107,6 @@ if (STACKTRACE)
|
|||||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
target_sources(qbt_app PRIVATE stacktrace_win.h)
|
target_sources(qbt_app PRIVATE stacktrace_win.h)
|
||||||
|
|
||||||
if (GUI)
|
|
||||||
qt_wrap_ui(STACKTRACE_UI_HEADERS stacktracedialog.ui)
|
|
||||||
|
|
||||||
target_sources(qbt_app PRIVATE
|
|
||||||
stacktracedialog.h
|
|
||||||
stacktracedialog.cpp
|
|
||||||
${STACKTRACE_UI_HEADERS}
|
|
||||||
)
|
|
||||||
|
|
||||||
# UI headers will be generated in ${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
target_include_directories(qbt_app PRIVATE
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# i686 arch on Windows requires frame pointer preservation
|
# i686 arch on Windows requires frame pointer preservation
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
target_compile_options(qbt_app PRIVATE /Zi)
|
target_compile_options(qbt_app PRIVATE /Zi)
|
||||||
|
@ -23,12 +23,7 @@ stacktrace {
|
|||||||
unix {
|
unix {
|
||||||
HEADERS += $$PWD/stacktrace.h
|
HEADERS += $$PWD/stacktrace.h
|
||||||
}
|
}
|
||||||
else {
|
win32 {
|
||||||
HEADERS += $$PWD/stacktrace_win.h
|
HEADERS += $$PWD/stacktrace_win.h
|
||||||
!nogui {
|
|
||||||
HEADERS += $$PWD/stacktracedialog.h
|
|
||||||
SOURCES += $$PWD/stacktracedialog.cpp
|
|
||||||
FORMS += $$PWD/stacktracedialog.ui
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
#else
|
#else
|
||||||
#include "stacktrace_win.h"
|
#include "stacktrace_win.h"
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
#include "stacktracedialog.h"
|
#include "gui/stacktracedialog.h"
|
||||||
#endif // DISABLE_GUI
|
#endif // DISABLE_GUI
|
||||||
#endif // Q_OS_UNIX
|
#endif // Q_OS_UNIX
|
||||||
#endif //STACKTRACE
|
#endif //STACKTRACE
|
||||||
|
@ -221,6 +221,16 @@ if (DBUS)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (STACKTRACE)
|
||||||
|
qt_wrap_ui(STACKTRACE_UI_HEADERS stacktracedialog.ui)
|
||||||
|
|
||||||
|
target_sources(qbt_gui PRIVATE
|
||||||
|
stacktracedialog.h
|
||||||
|
stacktracedialog.cpp
|
||||||
|
${STACKTRACE_UI_HEADERS}
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
|
if ((CMAKE_SYSTEM_NAME STREQUAL "Windows") OR (CMAKE_SYSTEM_NAME STREQUAL "Darwin"))
|
||||||
target_sources(qbt_gui PRIVATE
|
target_sources(qbt_gui PRIVATE
|
||||||
programupdater.h
|
programupdater.h
|
||||||
|
@ -215,3 +215,11 @@ FORMS += \
|
|||||||
$$PWD/watchedfolderoptionsdialog.ui
|
$$PWD/watchedfolderoptionsdialog.ui
|
||||||
|
|
||||||
RESOURCES += $$PWD/about.qrc
|
RESOURCES += $$PWD/about.qrc
|
||||||
|
|
||||||
|
stacktrace {
|
||||||
|
!unix {
|
||||||
|
HEADERS += $$PWD/stacktracedialog.h
|
||||||
|
SOURCES += $$PWD/stacktracedialog.cpp
|
||||||
|
FORMS += $$PWD/stacktracedialog.ui
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user