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/common/meson.build | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 capplets/common/meson.build (limited to 'capplets/common') diff --git a/capplets/common/meson.build b/capplets/common/meson.build new file mode 100644 index 00000000..17f8f91f --- /dev/null +++ b/capplets/common/meson.build @@ -0,0 +1,46 @@ +common_inc = include_directories('.') +cflags = [ + '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir), + '-DMATEDATADIR="@0@"'.format(mcc_datadir), + '-DMATELOCALEDIR="@0@"'.format(mcc_localedir), + '-DGTK_ENGINE_DIR="/usr/lib/gtk-3.0/3.0.0/theming-engines"', + '-DG_LOG_DOMAIN="capplet-common"', + '-DINSTALL_PREFIX="@0@"'.format(mcc_prefix), + '-DPIXMAP_DIR="@0@"'.format(mcc_pixmaps), +] + +sources = [ + 'activate-settings-daemon.c', + 'capplet-util.c', + 'dconf-util.c', + 'file-transfer-dialog.c', + 'mate-theme-apply.c', + 'mate-theme-info.c', + 'gtkrc-utils.c', + 'theme-thumbnail.c', + 'wm-common.c', +] +gmodule_dep = cc.find_library('gmodule-2.0') +libcommon = static_library( + 'common', + sources: sources, + include_directories: config_inc, + dependencies: [common_deps,gmodule_dep], + c_args: cflags, + #link_args: ldflags, + install: false, +) + +libcommon_dep = declare_dependency( + include_directories: common_inc, + link_with: libcommon +) + +executable( + 'mate-theme-test', + sources : 'mate-theme-test.c', + dependencies : [common_deps, libcommon_dep], + include_directories: config_inc, + c_args : cflags, + install : false, +) -- cgit v1.2.1