summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2018-11-01 19:13:30 +0100
committerJens Georg <mail@jensge.org>2018-11-02 11:18:41 +0100
commit0e5810ca2d9ab20923809a9057f76e9b59215428 (patch)
treee6accacae7f01a8ff36bb0c5739664898899b6cf /examples
parent85bae723e4ebb90275293697bc3ce95d420774b2 (diff)
downloadgupnp-0e5810ca2d9ab20923809a9057f76e9b59215428.tar.gz
build: Switch to meson
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile.am15
-rw-r--r--examples/meson.build12
2 files changed, 12 insertions, 15 deletions
diff --git a/examples/Makefile.am b/examples/Makefile.am
deleted file mode 100644
index 58e569a..0000000
--- a/examples/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-AM_CFLAGS = $(LIBGUPNP_CFLAGS) -I$(top_srcdir) -I$(top_builddir) $(GTHREAD_CFLAGS)
-LDADD = $(top_builddir)/libgupnp/libgupnp-1.2.la
-
-noinst_PROGRAMS = light-server light-client
-
-light_server_SOURCES = light-server.c
-light_server_LDFLAGS = -export-dynamic $(GTHREAD_LIBS) $(LIBGUPNP_LIBS)
-
-light_client_SOURCES = light-client.c
-light_client_LDFLAGS = $(GTHREAD_LIBS) $(LIBGUPNP_LIBS)
-
-MAINTAINERCLEANFILES = Makefile.in
-
-EXTRA_DIST = BinaryLight1.xml \
- SwitchPower1.xml
diff --git a/examples/meson.build b/examples/meson.build
new file mode 100644
index 0000000..dccd47b
--- /dev/null
+++ b/examples/meson.build
@@ -0,0 +1,12 @@
+executable(
+ 'light-server',
+ 'light-server.c',
+ export_dynamic : true,
+ dependencies : gupnp
+)
+
+executable(
+ 'light-client',
+ 'light-client.c',
+ dependencies : gupnp
+)