mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
For example, add $(AM_CFLAGS) to mumble_CFLAGS. Since $(WARN_CFLAGS) is only added to $(AM_CFLAGS), this fixes the lack of inclusion of the compiler warning flags in the compilation of half of flatpak. Note that $(AM_*) variables are only used by automake if a more specific (per-target) special variable is not defined instead. So if you define mumble_CFLAGS, AM_CFLAGS will not be used for that target unless explicitly included in mumble_CFLAGS. See https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html. Do the same for $(AM_LIBADD), $(AM_LDFLAGS), etc. These are not currently defined, but it’s good practice to include them in mumble_LIBADD (etc.) just in case they’re defined in future. Hopefully their inclusions will be cargo-culted to any new targets which are added, retaining full coverage of the code base. Signed-off-by: Philip Withnall <withnall@endlessm.com>
78 lines
2.4 KiB
PHP
78 lines
2.4 KiB
PHP
noinst_LTLIBRARIES += libflatpak-common.la
|
|
|
|
dbus_built_sources = common/flatpak-dbus.c common/flatpak-dbus.h
|
|
systemd_dbus_built_sources = common/flatpak-systemd-dbus.c common/flatpak-systemd-dbus.h
|
|
|
|
common/flatpak-dbus.c: data/org.freedesktop.Flatpak.xml Makefile
|
|
mkdir -p $(builddir)/common
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
--interface-prefix org.freedesktop.Flatpak. \
|
|
--c-namespace Flatpak \
|
|
--generate-c-code $(builddir)/common/flatpak-dbus \
|
|
$(srcdir)/data/org.freedesktop.Flatpak.xml \
|
|
$(NULL)
|
|
|
|
common/flatpak-systemd-dbus.c: data/org.freedesktop.systemd1.xml Makefile
|
|
mkdir -p $(builddir)/common
|
|
$(AM_V_GEN) $(GDBUS_CODEGEN) \
|
|
--interface-prefix org.freedesktop.systemd1. \
|
|
--c-namespace Systemd \
|
|
--generate-c-code $(builddir)/common/flatpak-systemd-dbus \
|
|
$(srcdir)/data/org.freedesktop.systemd1.xml \
|
|
$(NULL)
|
|
|
|
common/%-dbus.h: common/%-dbus.c
|
|
@true # Built as a side-effect of the rules for the .c
|
|
|
|
nodist_libflatpak_common_la_SOURCES = \
|
|
$(dbus_built_sources) \
|
|
$(systemd_dbus_built_sources) \
|
|
$(xdp_dbus_built_sources) \
|
|
$(NULL)
|
|
|
|
BUILT_SOURCES += $(nodist_libflatpak_common_la_SOURCES)
|
|
CLEANFILES += $(nodist_libflatpak_common_la_SOURCES)
|
|
|
|
libflatpak_common_la_SOURCES = \
|
|
common/flatpak-common-types.h \
|
|
common/flatpak-dir.c \
|
|
common/flatpak-dir.h \
|
|
common/flatpak-run.c \
|
|
common/flatpak-run.h \
|
|
common/flatpak-portal-error.c \
|
|
common/flatpak-portal-error.h \
|
|
common/flatpak-utils.c \
|
|
common/flatpak-utils.h \
|
|
common/flatpak-table-printer.c \
|
|
common/flatpak-table-printer.h \
|
|
common/flatpak-chain-input-stream.c \
|
|
common/flatpak-chain-input-stream.h \
|
|
common/gvdb/gvdb-reader.h \
|
|
common/gvdb/gvdb-format.h \
|
|
common/gvdb/gvdb-reader.c \
|
|
common/gvdb/gvdb-builder.h \
|
|
common/gvdb/gvdb-builder.c \
|
|
common/flatpak-db.c \
|
|
common/flatpak-db.h \
|
|
common/flatpak-json.c \
|
|
common/flatpak-json.h \
|
|
common/flatpak-json-oci.c \
|
|
common/flatpak-json-oci.h \
|
|
common/flatpak-oci-registry.c \
|
|
common/flatpak-oci-registry.h \
|
|
$(NULL)
|
|
|
|
libflatpak_common_la_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
$(BASE_CFLAGS) \
|
|
$(HIDDEN_VISIBILITY_CFLAGS) \
|
|
$(OSTREE_CFLAGS) \
|
|
$(SOUP_CFLAGS) \
|
|
$(JSON_CFLAGS) \
|
|
$(XAUTH_CFLAGS) \
|
|
$(LIBSECCOMP_CFLAGS) \
|
|
$(INTERNAL_GPGME_CFLAGS) \
|
|
-I$(srcdir)/dbus-proxy \
|
|
$(NULL)
|
|
libflatpak_common_la_LIBADD = $(AM_LIBADD) libglnx.la $(BASE_LIBS) $(OSTREE_LIBS) $(SOUP_LIBS) $(JSON_LIBS) $(XAUTH_LIBS) $(LIBSECCOMP_LIBS) $(INTERNAL_GPGME_LIBS)
|