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/display/meson.build | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 capplets/display/meson.build (limited to 'capplets/display') diff --git a/capplets/display/meson.build b/capplets/display/meson.build new file mode 100644 index 00000000..26790973 --- /dev/null +++ b/capplets/display/meson.build @@ -0,0 +1,60 @@ +sources = files( + 'xrandr-capplet.c', + 'scrollarea.c', +) + +sources += gnome.compile_resources( + 'mate-display-properties-resources', + 'org.mate.mcc.display.gresource.xml', + c_name: 'display', + export: true +) + +sources += gnome.genmarshal('foo-marshal', prefix : 'foo_marshal', sources : 'foo-marshal.list') +cflags = [ + '-DDATADIR="@0@"'.format(mcc_datadir), + '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir), + '-DSBINDIR="@0@"'.format(mcc_sbindir), + '-DMATELOCALEDIR="@0@"'.format(mcc_localedir), +] + +executable( + 'mate-display-properties', + sources : sources, + include_directories: config_inc, + dependencies : [common_deps, libcommon_dep], + c_args : cflags, + install : true, + install_dir : get_option('bindir') +) + +executable( + 'mate-display-properties-install-systemwide', + sources : 'mate-display-properties-install-systemwide.c', + include_directories: config_inc, + dependencies : [common_deps, libcommon_dep], + c_args : cflags, + install : true, + install_dir : get_option('sbindir') +) + +desktop = 'mate-display-properties.desktop' + +i18n.merge_file( + type: 'desktop', + input: desktop + '.in', + output: desktop, + po_dir: po_dir, + install: true, + install_dir: mcc_desktopdir +) + +policy = 'org.mate.randr.policy' + +i18n.merge_file( + input: policy + '.in', + output: policy, + po_dir: po_dir, + install: true, + install_dir: mcc_policydir, +) -- cgit v1.2.1