summaryrefslogtreecommitdiffstats
path: root/subprojects/libhandy/glade/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:36:24 +0000
commit9b6d8e63db85c30007b463e91f91a791969fa83f (patch)
tree0899af51d73c1bf986f73ae39a03c4436083018a /subprojects/libhandy/glade/meson.build
parentInitial commit. (diff)
downloadgnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.tar.xz
gnome-control-center-9b6d8e63db85c30007b463e91f91a791969fa83f.zip
Adding upstream version 1:3.38.4.upstream/1%3.38.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'subprojects/libhandy/glade/meson.build')
-rw-r--r--subprojects/libhandy/glade/meson.build59
1 files changed, 59 insertions, 0 deletions
diff --git a/subprojects/libhandy/glade/meson.build b/subprojects/libhandy/glade/meson.build
new file mode 100644
index 0000000..cba9a36
--- /dev/null
+++ b/subprojects/libhandy/glade/meson.build
@@ -0,0 +1,59 @@
+if glade_catalog
+
+glade_xml = 'libhandy.xml'
+module_dir = gladeui_dep.get_pkgconfig_variable('moduledir',
+ define_variable: ['libdir', get_option('libdir')])
+dtd = meson.current_source_dir() / 'glade-catalog.dtd'
+glade_catalogdir = gladeui_dep.get_pkgconfig_variable('catalogdir',
+ define_variable: ['datadir', get_option('datadir')])
+
+libglade_hdy_sources = [
+ 'glade-hdy-carousel.c',
+ 'glade-hdy-expander-row.c',
+ 'glade-hdy-header-bar.c',
+ 'glade-hdy-header-group.c',
+ 'glade-hdy-leaflet.c',
+ 'glade-hdy-preferences-page.c',
+ 'glade-hdy-preferences-window.c',
+ 'glade-hdy-search-bar.c',
+ 'glade-hdy-swipe-group.c',
+ 'glade-hdy-window.c',
+ 'glade-hdy-utils.c',
+]
+
+libglade_hdy_deps = [
+ libhandy_dep,
+ gladeui_dep,
+]
+
+libglade_hdy_args = []
+# Our custom glade module
+libglade_hdy = shared_library(
+ 'glade-handy-' + apiversion,
+ libglade_hdy_sources,
+ c_args: libglade_hdy_args,
+ dependencies: libglade_hdy_deps,
+ include_directories: [ root_inc, src_inc ],
+ install: true,
+ install_dir: module_dir,
+)
+
+# Validate glade catalog
+xmllint = find_program('xmllint', required: true)
+if xmllint.found()
+ custom_target(
+ 'xmllint',
+ build_by_default: true,
+ input: glade_xml,
+ output: 'doesnotexist',
+ command: [xmllint, '--dtdvalid', dtd, '--noout', '@INPUT@'],
+ )
+endif
+
+# Install glade catalog
+install_data(
+ glade_xml,
+ rename: 'libhandy-@0@.xml'.format(apiversion),
+ install_dir: glade_catalogdir)
+
+endif