summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/examples/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/libhandy/examples/meson.build')
-rw-r--r--subprojects/libhandy/examples/meson.build26
1 files changed, 26 insertions, 0 deletions
diff --git a/subprojects/libhandy/examples/meson.build b/subprojects/libhandy/examples/meson.build
new file mode 100644
index 0000000..883607e
--- /dev/null
+++ b/subprojects/libhandy/examples/meson.build
@@ -0,0 +1,26 @@
+if get_option('examples')
+
+handy_demo_resources = gnome.compile_resources(
+ 'handy-demo-resources',
+ 'handy-demo.gresources.xml',
+
+ c_name: 'hdy',
+)
+
+handy_demo_sources = [
+ handy_demo_resources,
+ 'handy-demo.c',
+ 'hdy-demo-preferences-window.c',
+ 'hdy-demo-window.c',
+ 'hdy-view-switcher-demo-window.c',
+ libhandy_generated_headers,
+]
+
+handy_demo = executable('handy-@0@-demo'.format(apiversion),
+ handy_demo_sources,
+ dependencies: libhandy_dep,
+ gui_app: true,
+ install: true,
+)
+
+endif