diff options
Diffstat (limited to 'src/3rdparty/libbacktrace/libbacktrace.pro')
-rw-r--r-- | src/3rdparty/libbacktrace/libbacktrace.pro | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/3rdparty/libbacktrace/libbacktrace.pro b/src/3rdparty/libbacktrace/libbacktrace.pro new file mode 100644 index 00000000..ff3da892 --- /dev/null +++ b/src/3rdparty/libbacktrace/libbacktrace.pro @@ -0,0 +1,47 @@ +requires(linux|macos) + +TEMPLATE = lib +TARGET = qtbacktrace + +load(am-config) + +CONFIG += \ + static \ + hide_symbols \ + exceptions_off rtti_off warn_off \ + installed + +MODULE_INCLUDEPATH += $$PWD + +load(qt_helper_lib) + +win32-msvc* { + QMAKE_CFLAGS += /D_CRT_SECURE_NO_WARNINGS +} +*-g++* { + QMAKE_CFLAGS += -Wno-unused -funwind-tables -Wno-switch -Wno-enum-compare +} +*-clang* { + CONFIG += warn_off + QMAKE_CFLAGS += -Wall -W -Wno-unused +} + +DEFINES *= _GNU_SOURCE + +INCLUDEPATH += $$PWD/auxincl $$PWD/libbacktrace + +linux: SOURCES += libbacktrace/elf.c +macos: SOURCES += libbacktrace/macho.c + +SOURCES += \ + libbacktrace/backtrace.c \ + libbacktrace/simple.c \ + libbacktrace/dwarf.c \ + libbacktrace/mmapio.c \ + libbacktrace/mmap.c \ + libbacktrace/atomic.c \ + libbacktrace/fileline.c \ + libbacktrace/posix.c \ + libbacktrace/print.c \ + libbacktrace/sort.c \ + libbacktrace/state.c \ |