summaryrefslogtreecommitdiff
path: root/Makefile-ostree.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2016-12-30 14:18:34 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-01-04 16:32:11 +0000
commitced22f6c9b096d6bb337886fafd06eae1b888005 (patch)
treea81d392dc34dd53363fe8e3ed386964730b570d5 /Makefile-ostree.am
parentc051ee4a35c90451f891eb52a0b44554df59912e (diff)
downloadostree-ced22f6c9b096d6bb337886fafd06eae1b888005.tar.gz
Split trivial-httpd into separate binary
Working on the libcurl backend, I hit the issue that the trivial-httpd program depends on libsoup. I briefly considered having two versions, but libcurl is client only, and moreover trivial-httpd is no longer trivial - it has various features which are used by the test suite extensively. Hence, what we'll do is build it as a separate binary which links to libsoup, and use it during the tests. We *also* currently still provide `ostree trivial-httpd` since some things use it like `rpm-ostree-toolbox` and the Cockpit tests. After those are ported to use some other webserver, I plan to add a build-time option to drop it. Closes: #636 Approved by: jlebon
Diffstat (limited to 'Makefile-ostree.am')
-rw-r--r--Makefile-ostree.am13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile-ostree.am b/Makefile-ostree.am
index d46fc225..05fec155 100644
--- a/Makefile-ostree.am
+++ b/Makefile-ostree.am
@@ -103,7 +103,8 @@ EXTRA_DIST += src/ostree/parse-datetime.y
CLEANFILES += src/ostree/parse-datetime.c
ostree_bin_shared_cflags = $(AM_CFLAGS) -I$(srcdir)/src/libotutil -I$(srcdir)/src/libostree \
- -I$(srcdir)/src/ostree -I$(srcdir)/libglnx $(OT_INTERNAL_GIO_UNIX_CFLAGS)
+ -I$(srcdir)/src/ostree -I$(srcdir)/libglnx $(OT_INTERNAL_GIO_UNIX_CFLAGS) \
+ -DPKGLIBEXECDIR=\"$(pkglibexecdir)\"
ostree_bin_shared_ldadd = $(AM_LDFLAGS) libglnx.la libotutil.la libostree-1.la \
$(OT_INTERNAL_GIO_UNIX_LIBS)
@@ -112,12 +113,14 @@ ostree_LDADD = $(ostree_bin_shared_ldadd) libbsdiff.la libostree-kernel-args.la
if USE_LIBSOUP
-ostree_SOURCES += \
- src/ostree/ot-builtin-pull.c \
- src/ostree/ot-builtin-trivial-httpd.c \
- $(NULL)
+ostree_SOURCES += src/ostree/ot-builtin-pull.c src/ostree/ot-builtin-trivial-httpd.c
ostree_CFLAGS += $(OT_INTERNAL_SOUP_CFLAGS)
ostree_LDADD += $(OT_INTERNAL_SOUP_LIBS)
+
+pkglibexec_PROGRAMS += ostree-trivial-httpd
+ostree_trivial_httpd_SOURCES = src/ostree/ostree-trivial-httpd.c
+ostree_trivial_httpd_CFLAGS = $(ostree_bin_shared_cflags) $(OT_INTERNAL_SOUP_CFLAGS)
+ostree_trivial_httpd_LDADD = $(ostree_bin_shared_ldadd) $(OT_INTERNAL_SOUP_LIBS)
endif
if USE_LIBARCHIVE