125c482b1d
So I was trying to hack on my host's copy of rpm-ostree inside a pet docker container, but ran into a conflict with libhif since dnf uses it. I think we basically need to *always* build the bundled path, rather than what I'm doing with CAHC and FADC where it's built as a regular RPM. It's not really sustainable right now for us to have both bundled and not-bundled build paths - and we need to support co-installation with dnf. Another major issue is that we want to version lock with libhif - right now our CI and both CAHC/FADC track libhif master, but that means everything breaks if libhif breaks and we don't immediately port. git submodules solve all of these problems - the same as we're doing with libglnx. libglnx is *designed* for use as a git submodule, where as libhif needs to support being both bundled and not-bundled. So we end up with some hacks on our side, but I think it's all not too bad. I've marked build rules with `# bundled libhif` so we know where to find them later when libhif is stable. Closes: #357 Approved by: jlebon
111 lines
3.2 KiB
Plaintext
111 lines
3.2 KiB
Plaintext
libexec_PROGRAMS += rpm-ostreed
|
|
|
|
dbus_built_sources = rpm-ostreed-generated.h rpm-ostreed-generated.c
|
|
|
|
rpm-ostreed-generated.h: rpm-ostreed-generated.c
|
|
rpm-ostreed-generated.c: Makefile.am $(top_srcdir)/src/daemon/org.projectatomic.rpmostree1.xml
|
|
$(AM_V_GEN) gdbus-codegen \
|
|
--interface-prefix org.projectatomic.rpmostree1 \
|
|
--c-namespace RPMOSTree \
|
|
--c-generate-object-manager \
|
|
--generate-c-code rpm-ostreed-generated \
|
|
--generate-docbook rpm-ostreed-generated \
|
|
$(top_srcdir)/src/daemon/org.projectatomic.rpmostree1.xml \
|
|
$(NULL)
|
|
BUILT_SOURCES += $(dbus_built_sources)
|
|
CLEANFILES += rpm-ostreed-generated-org.projectatomic.rpmostree1.OS.xml \
|
|
rpm-ostreed-generated-org.projectatomic.rpmostree1.Sysroot.xml \
|
|
rpm-ostreed-generated-org.projectatomic.rpmostree1.Transaction.xml \
|
|
$(NULL)
|
|
|
|
noinst_LTLIBRARIES += librpmostreed.la
|
|
nodist_librpmostreed_la_SOURCES = $(dbus_built_sources)
|
|
|
|
librpmostreed_la_SOURCES = \
|
|
src/daemon/rpmostreed-types.h \
|
|
src/daemon/rpmostreed-daemon.h \
|
|
src/daemon/rpmostreed-daemon.c \
|
|
src/daemon/rpmostreed-utils.h \
|
|
src/daemon/rpmostreed-utils.c \
|
|
src/daemon/rpmostreed-sysroot.h \
|
|
src/daemon/rpmostreed-sysroot.c \
|
|
src/daemon/rpmostree-sysroot-upgrader.h \
|
|
src/daemon/rpmostree-sysroot-upgrader.c \
|
|
src/daemon/rpmostreed-errors.h \
|
|
src/daemon/rpmostreed-errors.c \
|
|
src/daemon/rpmostreed-deployment-utils.h \
|
|
src/daemon/rpmostreed-deployment-utils.c \
|
|
src/daemon/rpmostreed-transaction.h \
|
|
src/daemon/rpmostreed-transaction.c \
|
|
src/daemon/rpmostreed-transaction-monitor.h \
|
|
src/daemon/rpmostreed-transaction-monitor.c \
|
|
src/daemon/rpmostreed-transaction-types.h \
|
|
src/daemon/rpmostreed-transaction-types.c \
|
|
src/daemon/rpmostreed-transaction-pkg-change.c \
|
|
src/daemon/rpmostree-package-variants.h \
|
|
src/daemon/rpmostree-package-variants.c \
|
|
src/daemon/rpmostreed-os.h \
|
|
src/daemon/rpmostreed-os.c \
|
|
$(NULL)
|
|
|
|
librpmostreed_la_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
$(PKGDEP_RPMOSTREE_CFLAGS) \
|
|
-DG_LOG_DOMAIN=\"rpm-ostreed\" \
|
|
-I$(srcdir)/src/daemon \
|
|
-I$(srcdir)/src/lib \
|
|
-I$(srcdir)/src/libpriv \
|
|
-I$(libglnx_srcpath) \
|
|
$(NULL)
|
|
|
|
librpmostreed_la_LIBADD = \
|
|
$(PKGDEP_RPMOSTREE_LIBS) \
|
|
librpmostreepriv.la \
|
|
librpmostree-1.la \
|
|
$(CAP_LIBS)
|
|
$(NULL)
|
|
|
|
rpm_ostreed_SOURCES = \
|
|
src/daemon/main.c \
|
|
$(NULL)
|
|
|
|
rpm_ostreed_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
-DPKGLIBDIR=\"$(pkglibdir)\" \
|
|
$(PKGDEP_RPMOSTREE_CFLAGS) \
|
|
-I$(srcdir)/src/daemon \
|
|
-I$(srcdir)/libglnx \
|
|
-DG_LOG_DOMAIN=\"rpm-ostreed\" \
|
|
$(NULL)
|
|
|
|
rpm_ostreed_LDADD = \
|
|
librpmostreed.la \
|
|
$(PKGDEP_RPMOSTREE_LIBS) \
|
|
$(NULL)
|
|
|
|
dbusconf_DATA = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.conf
|
|
dbusconfdir = ${sysconfdir}/dbus-1/system.d
|
|
|
|
systemdunit_in_files = $(srcdir)/src/daemon/rpm-ostreed.service.in
|
|
systemdunit_DATA = $(systemdunit_in_files:.service.in=.service)
|
|
systemdunitdir = $(prefix)/lib/systemd/system/
|
|
$(systemdunit_DATA):
|
|
$(SED_SUBST) $@.in > $@
|
|
|
|
service_in_files = $(srcdir)/src/daemon/org.projectatomic.rpmostree1.service.in
|
|
service_DATA = $(service_in_files:.service.in=.service)
|
|
servicedir = $(dbusservicedir)
|
|
$(service_DATA):
|
|
$(SED_SUBST) $@.in > $@
|
|
|
|
EXTRA_DIST += \
|
|
$(dbusservice_DATA) \
|
|
$(service_in_files) \
|
|
$(systemdunit_in_files) \
|
|
$(NULL)
|
|
|
|
CLEANFILES += \
|
|
$(service_DATA) \
|
|
$(systemdunit_DATA) \
|
|
$(NULL)
|