aboutsummaryrefslogtreecommitdiff
path: root/src/lib/metrics/include.am
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2020-10-19 15:15:47 -0400
committerDavid Goulet <dgoulet@torproject.org>2020-10-27 10:43:42 -0400
commitec731290a5a790093961f0fdb06cf69000194adf (patch)
treeda6a2351d3bb17071c64f493edfa292e4257c7ec /src/lib/metrics/include.am
parentbd582583f610d568bb61d1a108d1ff4f38ef08b5 (diff)
downloadtor-ec731290a5a790093961f0fdb06cf69000194adf.tar.gz
tor-ec731290a5a790093961f0fdb06cf69000194adf.zip
lib: New metrics library
Used to provide an interface to create metrics store and update the entries. Related to #40063 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/lib/metrics/include.am')
-rw-r--r--src/lib/metrics/include.am25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/lib/metrics/include.am b/src/lib/metrics/include.am
new file mode 100644
index 0000000000..62c289446e
--- /dev/null
+++ b/src/lib/metrics/include.am
@@ -0,0 +1,25 @@
+
+noinst_LIBRARIES += src/lib/libtor-metrics.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-metrics-testing.a
+endif
+
+# ADD_C_FILE: INSERT SOURCES HERE.
+src_lib_libtor_metrics_a_SOURCES = \
+ src/lib/metrics/metrics_store.c \
+ src/lib/metrics/metrics_store_entry.c \
+ src/lib/metrics/metrics_common.c \
+ src/lib/metrics/prometheus.c
+
+src_lib_libtor_metrics_testing_a_SOURCES = \
+ $(src_lib_libtor_metrics_a_SOURCES)
+src_lib_libtor_metrics_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_lib_libtor_metrics_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+# ADD_C_FILE: INSERT HEADERS HERE.
+noinst_HEADERS += \
+ src/lib/metrics/metrics_store.h \
+ src/lib/metrics/metrics_store_entry.h \
+ src/lib/metrics/metrics_common.h \
+ src/lib/metrics/prometheus.h