mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Refactor container into a library.
This commit is contained in:
parent
f95e3bf5fc
commit
77dff00b18
2
.gitignore
vendored
2
.gitignore
vendored
@ -165,6 +165,8 @@ uptime-*.json
|
|||||||
/src/lib/libcurve25519_donna.a
|
/src/lib/libcurve25519_donna.a
|
||||||
/src/lib/libtor-compress.a
|
/src/lib/libtor-compress.a
|
||||||
/src/lib/libtor-compress-testing.a
|
/src/lib/libtor-compress-testing.a
|
||||||
|
/src/lib/libtor-container.a
|
||||||
|
/src/lib/libtor-container-testing.a
|
||||||
/src/lib/libtor-crypt-ops.a
|
/src/lib/libtor-crypt-ops.a
|
||||||
/src/lib/libtor-crypt-ops-testing.a
|
/src/lib/libtor-crypt-ops-testing.a
|
||||||
/src/lib/libtor-ctime.a
|
/src/lib/libtor-ctime.a
|
||||||
|
@ -40,6 +40,7 @@ endif
|
|||||||
# "Common" libraries used to link tor's utility code.
|
# "Common" libraries used to link tor's utility code.
|
||||||
TOR_UTIL_LIBS = \
|
TOR_UTIL_LIBS = \
|
||||||
src/common/libor.a \
|
src/common/libor.a \
|
||||||
|
src/lib/libtor-container.a \
|
||||||
src/lib/libtor-malloc.a \
|
src/lib/libtor-malloc.a \
|
||||||
src/lib/libtor-err.a \
|
src/lib/libtor-err.a \
|
||||||
src/lib/libtor-ctime.a
|
src/lib/libtor-ctime.a
|
||||||
@ -48,6 +49,7 @@ TOR_UTIL_LIBS = \
|
|||||||
# and tests)
|
# and tests)
|
||||||
TOR_UTIL_TESTING_LIBS = \
|
TOR_UTIL_TESTING_LIBS = \
|
||||||
src/common/libor-testing.a \
|
src/common/libor-testing.a \
|
||||||
|
src/lib/libtor-container-testing.a \
|
||||||
src/lib/libtor-malloc-testing.a \
|
src/lib/libtor-malloc-testing.a \
|
||||||
src/lib/libtor-err-testing.a \
|
src/lib/libtor-err-testing.a \
|
||||||
src/lib/libtor-ctime-testing.a
|
src/lib/libtor-ctime-testing.a
|
||||||
|
@ -38,7 +38,6 @@ LIBOR_A_SRC = \
|
|||||||
src/common/compat_threads.c \
|
src/common/compat_threads.c \
|
||||||
src/common/compat_time.c \
|
src/common/compat_time.c \
|
||||||
src/common/confline.c \
|
src/common/confline.c \
|
||||||
src/common/container.c \
|
|
||||||
src/common/log.c \
|
src/common/log.c \
|
||||||
src/common/memarea.c \
|
src/common/memarea.c \
|
||||||
src/common/util.c \
|
src/common/util.c \
|
||||||
@ -87,7 +86,6 @@ COMMONHEADERS = \
|
|||||||
src/common/compat_threads.h \
|
src/common/compat_threads.h \
|
||||||
src/common/compat_time.h \
|
src/common/compat_time.h \
|
||||||
src/common/confline.h \
|
src/common/confline.h \
|
||||||
src/common/container.h \
|
|
||||||
src/common/handles.h \
|
src/common/handles.h \
|
||||||
src/common/memarea.h \
|
src/common/memarea.h \
|
||||||
src/common/linux_syscalls.inc \
|
src/common/linux_syscalls.inc \
|
||||||
|
@ -3,6 +3,7 @@ include src/lib/err/include.am
|
|||||||
include src/lib/cc/include.am
|
include src/lib/cc/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/container/include.am
|
||||||
include src/lib/crypt_ops/include.am
|
include src/lib/crypt_ops/include.am
|
||||||
include src/lib/include.libdonna.am
|
include src/lib/include.libdonna.am
|
||||||
include src/lib/malloc/include.am
|
include src/lib/malloc/include.am
|
||||||
|
17
src/lib/container/include.am
Normal file
17
src/lib/container/include.am
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
noinst_LIBRARIES += src/lib/libtor-container.a
|
||||||
|
|
||||||
|
if UNITTESTS_ENABLED
|
||||||
|
noinst_LIBRARIES += src/lib/libtor-container-testing.a
|
||||||
|
endif
|
||||||
|
|
||||||
|
src_lib_libtor_container_a_SOURCES = \
|
||||||
|
src/lib/container/container.c
|
||||||
|
|
||||||
|
src_lib_libtor_container_testing_a_SOURCES = \
|
||||||
|
$(src_lib_libtor_container_a_SOURCES)
|
||||||
|
src_lib_libtor_container_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
|
||||||
|
src_lib_libtor_container_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
|
||||||
|
|
||||||
|
noinst_HEADERS += \
|
||||||
|
src/lib/container/container.h
|
@ -151,6 +151,7 @@ pub fn main() {
|
|||||||
// moving forward!
|
// moving forward!
|
||||||
cfg.component("tor-crypt-ops-testing");
|
cfg.component("tor-crypt-ops-testing");
|
||||||
cfg.component("or-testing");
|
cfg.component("or-testing");
|
||||||
|
cfg.component("tor-container-testing");
|
||||||
cfg.component("tor-malloc");
|
cfg.component("tor-malloc");
|
||||||
cfg.component("tor-err-testing");
|
cfg.component("tor-err-testing");
|
||||||
cfg.component("or-event-testing");
|
cfg.component("or-event-testing");
|
||||||
|
Loading…
Reference in New Issue
Block a user