summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-08-24 12:20:51 +0100
committerRichard Hughes <richard@hughsie.com>2017-05-10 12:44:02 +0100
commit8122b447e5c85a7addfc19827232d5cfe85b4eba (patch)
tree8c277f330485f7e4ad945c048a7e2687e03a3bbc /client
parentfe18fd82266a0ff1f744d3ae287dc312e09549fa (diff)
downloadappstream-glib-8122b447e5c85a7addfc19827232d5cfe85b4eba.tar.gz
Switch to the meson build system.
Diffstat (limited to 'client')
-rw-r--r--client/Makefile.am77
-rw-r--r--client/meson.build64
2 files changed, 64 insertions, 77 deletions
diff --git a/client/Makefile.am b/client/Makefile.am
deleted file mode 100644
index 6c0647f..0000000
--- a/client/Makefile.am
+++ /dev/null
@@ -1,77 +0,0 @@
-AM_CPPFLAGS = \
- $(PIE_CFLAGS) \
- $(GLIB_CFLAGS) \
- $(GDKPIXBUF_CFLAGS) \
- $(LIBARCHIVE_CFLAGS) \
- $(SOUP_CFLAGS) \
- $(OSTREE_CFLAGS) \
- -I$(top_srcdir) \
- -I$(top_builddir) \
- -I$(top_srcdir)/libappstream-glib \
- -I$(top_builddir)/libappstream-glib \
- -I$(top_srcdir)/libappstream-builder \
- -I$(top_builddir)/libappstream-builder \
- -DG_LOG_DOMAIN=\"As\" \
- -DVERSION="\"$(VERSION)\"" \
- -DLOCALEDIR=\""$(localedir)"\"
-
-AS_GLIB_LIBS = \
- $(top_builddir)/libappstream-glib/libappstream-glib.la
-AS_BUILDER_LIBS = \
- $(top_builddir)/libappstream-builder/libappstream-builder.la
-
-bin_PROGRAMS = \
- appstream-compose \
- appstream-util
-
-if HAVE_BUILDER
-bin_PROGRAMS += \
- appstream-builder
-endif
-
-appstream_util_SOURCES = \
- as-util.c
-appstream_util_LDADD = \
- $(AS_GLIB_LIBS) \
- $(GLIB_LIBS) \
- $(GDKPIXBUF_LIBS) \
- $(SOUP_LIBS) \
- $(LIBARCHIVE_LIBS)
-appstream_util_LDFLAGS = \
- $(RELRO_LDFLAGS) \
- $(PIE_LDFLAGS)
-appstream_util_CFLAGS = \
- $(WARN_CFLAGS)
-
-if HAVE_BUILDER
-appstream_builder_SOURCES = \
- as-builder.c
-appstream_builder_LDADD = \
- $(AS_GLIB_LIBS) \
- $(AS_BUILDER_LIBS) \
- $(GLIB_LIBS) \
- $(OSTREE_LIBS) \
- $(SOUP_LIBS) \
- $(LIBARCHIVE_LIBS)
-appstream_builder_LDFLAGS = \
- $(RELRO_LDFLAGS) \
- $(PIE_LDFLAGS)
-appstream_builder_CFLAGS = \
- $(WARN_CFLAGS)
-endif
-
-appstream_compose_SOURCES = \
- as-compose.c
-appstream_compose_LDADD = \
- $(AS_GLIB_LIBS) \
- $(GLIB_LIBS) \
- $(SOUP_LIBS) \
- $(GDKPIXBUF_LIBS) \
- $(LIBARCHIVE_LIBS)
-appstream_compose_LDFLAGS = \
- $(RELRO_LDFLAGS) \
- $(PIE_LDFLAGS)
-appstream_compose_CFLAGS = \
- $(WARN_CFLAGS)
-
--include $(top_srcdir)/git.mk
diff --git a/client/meson.build b/client/meson.build
new file mode 100644
index 0000000..57b6b2f
--- /dev/null
+++ b/client/meson.build
@@ -0,0 +1,64 @@
+as_util_cargs = ['-DG_LOG_DOMAIN="As"']
+
+if get_option('enable-builder')
+ appstream_builder = executable(
+ 'appstream-builder',
+ sources : 'as-builder.c',
+ include_directories : [
+ include_directories('..'),
+ asglib_incdir,
+ asbuilder_incdir,
+ ],
+ dependencies : [
+ glib,
+ gdkpixbuf,
+ soup,
+ libarchive
+ ],
+ link_with : [
+ asglib,
+ asbuilder,
+ ],
+ c_args : as_util_cargs,
+ install: true,
+ install_dir : get_option('bindir'),
+ )
+endif
+
+appstream_util = executable(
+ 'appstream-util',
+ sources : 'as-util.c',
+ include_directories : [
+ include_directories('..'),
+ asglib_incdir,
+ ],
+ dependencies : [
+ glib,
+ gdkpixbuf,
+ soup,
+ libarchive,
+ ],
+ link_with : asglib,
+ c_args : as_util_cargs,
+ install: true,
+ install_dir : get_option('bindir'),
+)
+
+appstream_compose = executable(
+ 'appstream-compose',
+ sources : 'as-compose.c',
+ include_directories : [
+ include_directories('..'),
+ asglib_incdir,
+ ],
+ dependencies : [
+ glib,
+ gdkpixbuf,
+ soup,
+ libarchive,
+ ],
+ link_with : asglib,
+ c_args : as_util_cargs,
+ install: true,
+ install_dir : get_option('bindir'),
+)