Move trace into its own library in libs.

Apparently it has no testing variant.
This commit is contained in:
Nick Mathewson 2018-06-21 12:02:14 -04:00
parent 03d7812615
commit 4bdda6d05f
9 changed files with 22 additions and 22 deletions

1
.gitignore vendored
View File

@ -173,6 +173,7 @@ uptime-*.json
/src/lib/libtor-ctime-testing.a /src/lib/libtor-ctime-testing.a
/src/lib/libtor-err.a /src/lib/libtor-err.a
/src/lib/libtor-err-testing.a /src/lib/libtor-err-testing.a
/src/lib/libtor-trace.a
# /src/or/ # /src/or/
/src/or/Makefile /src/or/Makefile

View File

@ -71,7 +71,7 @@ TOR_INTERNAL_LIBS = \
$(TOR_UTIL_LIBS) \ $(TOR_UTIL_LIBS) \
src/common/libor-event.a \ src/common/libor-event.a \
src/trunnel/libor-trunnel.a \ src/trunnel/libor-trunnel.a \
src/trace/libor-trace.a src/lib/libtor-trace.a
# Variants of the above for linking the testing variant of tor (for coverage # Variants of the above for linking the testing variant of tor (for coverage
# and tests) # and tests)
@ -82,7 +82,7 @@ TOR_INTERNAL_TESTING_LIBS = \
$(TOR_UTIL_TESTING_LIBS) \ $(TOR_UTIL_TESTING_LIBS) \
src/common/libor-event-testing.a \ src/common/libor-event-testing.a \
src/trunnel/libor-trunnel-testing.a \ src/trunnel/libor-trunnel-testing.a \
src/trace/libor-trace.a src/lib/libtor-trace.a
# All libraries used to link tor-cov # All libraries used to link tor-cov

View File

@ -2,6 +2,7 @@ include src/ext/include.am
include src/lib/err/include.am include src/lib/err/include.am
include src/lib/ctime/include.am include src/lib/ctime/include.am
include src/lib/compress/include.am include src/lib/compress/include.am
include src/lib/trace/include.am
include src/common/include.am include src/common/include.am
include src/trunnel/include.am include src/trunnel/include.am
include src/or/include.am include src/or/include.am
@ -11,4 +12,3 @@ include src/tools/include.am
include src/win32/include.am include src/win32/include.am
include src/config/include.am include src/config/include.am
include src/test/fuzz/include.am include src/test/fuzz/include.am
include src/trace/include.am

18
src/lib/trace/include.am Normal file
View File

@ -0,0 +1,18 @@
noinst_LIBRARIES += \
src/lib/libtor-trace.a
TRACEHEADERS = \
src/lib/trace/trace.h \
src/lib/trace/events.h
if USE_EVENT_TRACING_DEBUG
TRACEHEADERS += \
src/lib/trace/debug.h
endif
# Library source files.
src_lib_libtor_trace_a_SOURCES = \
src/lib/trace/trace.c
noinst_HEADERS+= $(TRACEHEADERS)

View File

@ -1,19 +0,0 @@
noinst_LIBRARIES += \
src/trace/libor-trace.a
LIBOR_TRACE_A_SOURCES = \
src/trace/trace.c
TRACEHEADERS = \
src/trace/trace.h \
src/trace/events.h
if USE_EVENT_TRACING_DEBUG
TRACEHEADERS += \
src/trace/debug.h
endif
# Library source files.
src_trace_libor_trace_a_SOURCES = $(LIBOR_TRACE_A_SOURCES)
noinst_HEADERS+= $(TRACEHEADERS)