mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-12 10:13:51 +01:00
eaabd3ff8d
* chore(Trace): add dev env settings * add(Trace): init add Poco::trace and libbacktrace files * feat(Exception): generate stack trace if enabled at compile time * chore(DNSSD): remove binaries from git * fix(Trace): build * chore(ci): exclude exception text tests for trace build; add debug test script params * chore(build): mac (dl) * chore(cmake): Changes to build Trace with CMake. * chore(cmake): Changes to build Trace on Windows * chore(cmake): Improvements to include trace sample. * chore(cmake): Fixes to properly build/link Trace on Linux * chore(cmake): add_definitions --> add_compile_definitions * chore(cmake): Build Trace as static and don't export it. * chore(make): Link Trace with built-in libbacktrace on Linux * chore(Trace): remove unnecessary sources for libbacktrace. * chore(github): enable trace on a few github checks * chore(cmake): Build Trace with clang++ on Linux. * chore(cmake): Properly set POCO_ENABLE_TRACE globally when needed. * fix(cmake): Trace: corrected include for clang on Linux --------- Co-authored-by: Matej Kenda <matejken@gmail.com>
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
#
|
|
# Makefile
|
|
#
|
|
# Makefile for Poco Trace
|
|
#
|
|
|
|
|
|
include $(POCO_BASE)/build/rules/global
|
|
|
|
INCLUDE += -I $(POCO_BASE)/Trace/src -I $(POCO_BASE)/Trace/src/symbols -I $(POCO_BASE)/Trace/include/Poco/Trace -I $(POCO_BASE)/Trace/include/Poco/Trace/backtrace
|
|
LIBRARY += -L$(POCO_BASE)/lib/$(OSNAME)/$(OSARCH)/lib
|
|
|
|
SYSFLAGS += -DCPPTRACE_DEMANGLE_WITH_CXXABI -DCPPTRACE_UNWIND_WITH_UNWIND
|
|
|
|
ifeq ($(OSNAME), Linux)
|
|
SYSFLAGS += -DCPPTRACE_GET_SYMBOLS_WITH_LIBBACKTRACE
|
|
SYSLIBS += -lbacktrace
|
|
else
|
|
ifeq ($(OSNAME), Darwin)
|
|
SYSFLAGS += -DCPPTRACE_GET_SYMBOLS_WITH_LIBDL
|
|
endif
|
|
endif
|
|
|
|
objects = cpptrace ctrace from_current \
|
|
elf mach-o module_base object pe safe_dl \
|
|
demangle_with_cxxabi demangle_with_nothing demangle_with_winapi \
|
|
snippet symbols_core symbols_with_addr2line symbols_with_dbghelp \
|
|
symbols_with_dl symbols_with_libbacktrace symbols_with_libdwarf \
|
|
symbols_with_nothing debug_map_resolver dwarf_resolver \
|
|
unwind_with_dbghelp unwind_with_execinfo unwind_with_libunwind \
|
|
unwind_with_nothing unwind_with_unwind unwind_with_winapi
|
|
|
|
target = PocoTrace
|
|
target_version = $(LIBVERSION)
|
|
|
|
include $(POCO_BASE)/build/rules/lib
|