summaryrefslogtreecommitdiff
path: root/src/lib/sandbox/include.am
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-27 09:48:26 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-27 10:04:17 -0400
commitbee580ddbaabcd8d6066761cce385c00d75dd2c5 (patch)
tree8d1f192dffd16cdec221e3b9994f44009c114158 /src/lib/sandbox/include.am
parentd893be190fc244330543c9e98613a3f0daebc6ed (diff)
downloadtor-bee580ddbaabcd8d6066761cce385c00d75dd2c5.tar.gz
tor-bee580ddbaabcd8d6066761cce385c00d75dd2c5.zip
Move sandbox code into a new library.
Diffstat (limited to 'src/lib/sandbox/include.am')
-rw-r--r--src/lib/sandbox/include.am18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lib/sandbox/include.am b/src/lib/sandbox/include.am
new file mode 100644
index 0000000000..adfda6bde5
--- /dev/null
+++ b/src/lib/sandbox/include.am
@@ -0,0 +1,18 @@
+
+noinst_LIBRARIES += src/lib/libtor-sandbox.a
+
+if UNITTESTS_ENABLED
+noinst_LIBRARIES += src/lib/libtor-sandbox-testing.a
+endif
+
+src_lib_libtor_sandbox_a_SOURCES = \
+ src/lib/sandbox/sandbox.c
+
+src_lib_libtor_sandbox_testing_a_SOURCES = \
+ $(src_lib_libtor_sandbox_a_SOURCES)
+src_lib_libtor_sandbox_testing_a_CPPFLAGS = $(AM_CPPFLAGS) $(TEST_CPPFLAGS)
+src_lib_libtor_sandbox_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
+
+noinst_HEADERS += \
+ src/lib/sandbox/linux_syscalls.inc \
+ src/lib/sandbox/sandbox.h