From bca3b80da6b3653ada9e0546a3fd053cdc4651d0 Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Thu, 19 Oct 2023 11:41:29 +0800 Subject: Add meson build support --- capplets/about-me/meson.build | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 capplets/about-me/meson.build (limited to 'capplets/about-me') diff --git a/capplets/about-me/meson.build b/capplets/about-me/meson.build new file mode 100644 index 00000000..690eab0b --- /dev/null +++ b/capplets/about-me/meson.build @@ -0,0 +1,41 @@ +desktop = 'mate-about-me.desktop' + +i18n.merge_file( + type: 'desktop', + input: desktop + '.in', + output: desktop, + po_dir: po_dir, + install: true, + install_dir: mcc_desktopdir +) + +sources = files( + 'e-image-chooser.c', + 'mate-about-me.c', + 'mate-about-me-fingerprint.c', + 'mate-about-me-password.c' +) + +sources += gnome.compile_resources( + 'mate-about-me-resources', + 'org.mate.mcc.am.gresource.xml', + c_name: 'about_me', + export: true +) + +cflags += [ + '-DDATADIR="@0@"'.format(mcc_datadir), + '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir), + '-DMATECC_PIXMAP_DIR="@0@"'.format(mcc_pixmaps), + '-DMATELOCALEDIR="@0@"'.format(mcc_localedir), +] + +executable( + 'mate-about-me', + sources : sources, + include_directories: config_inc, + dependencies : [common_deps, libcommon_dep], + c_args : cflags, + install : true, + install_dir : get_option('bindir') +) -- cgit v1.2.1