/src/ext/keccak-tiny/libkeccak-tiny.a
/src/ext/keccak-tiny/libkeccak-tiny.lib
+# /src/lib
+/src/lib/libtor-err.a
+/src/lib/libtor-err-testing.a
+
# /src/or/
/src/or/Makefile
/src/or/Makefile.in
# "Common" libraries used to link tor's utility code.
TOR_UTIL_LIBS = \
src/common/libor.a \
+ src/lib/libtor-err.a \
src/common/libor-ctime.a
# Variants of the above for linking the testing variant of tor (for coverage
# and tests)
TOR_UTIL_TESTING_LIBS = \
src/common/libor-testing.a \
+ src/lib/libtor-err-testing.a \
src/common/libor-ctime-testing.a
# Internal crypto libraries used in Tor
LIBOR_A_SRC = \
src/common/address.c \
src/common/address_set.c \
- src/common/backtrace.c \
src/common/buffers.c \
src/common/compat.c \
src/common/compat_threads.c \
src/common/sandbox.c \
src/common/storagedir.c \
src/common/token_bucket.c \
- src/common/torerr.c \
src/common/workqueue.c \
$(libor_extra_source) \
$(threads_impl_source) \
COMMONHEADERS = \
src/common/address.h \
src/common/address_set.h \
- src/common/backtrace.h \
src/common/buffers.h \
src/common/buffers_tls.h \
src/common/aes.h \
src/common/testsupport.h \
src/common/timers.h \
src/common/token_bucket.h \
- src/common/torerr.h \
src/common/torint.h \
src/common/torlog.h \
src/common/tortls.h \
include src/ext/include.am
-include src/trunnel/include.am
+include src/lib/err/include.am
include src/common/include.am
+include src/trunnel/include.am
include src/or/include.am
include src/rust/include.am
include src/test/include.am
--- /dev/null
+
+noinst_LIBRARIES += src/lib/libtor-err.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-err-testing.a
+endif
+
+src_lib_libtor_err_a_SOURCES = \
+ src/lib/err/backtrace.c \
+ src/lib/err/torerr.c
+
+src_lib_libtor_err_testing_a_SOURCES = \
+ $(src_lib_libtor_err_a_SOURCES)
+
+noinst_HEADERS += \
+ src/lib/err/backtrace.h \
+ src/lib/err/torerr.h
cfg.from_cflags("TOR_LDFLAGS_openssl");
cfg.from_cflags("TOR_LDFLAGS_libevent");
+ cfg.link_relpath("src/lib");
cfg.link_relpath("src/common");
cfg.link_relpath("src/ext/keccak-tiny");
- cfg.link_relpath("src/ext/keccak-tiny");
cfg.link_relpath("src/ext/ed25519/ref10");
cfg.link_relpath("src/ext/ed25519/donna");
cfg.link_relpath("src/trunnel");
cfg.component("or-crypto-testing");
cfg.component("or-ctime-testing");
cfg.component("or-testing");
+ cfg.component("tor-err-testing");
cfg.component("or-event-testing");
cfg.component("or-ctime-testing");
cfg.component("curve25519_donna");