summaryrefslogtreecommitdiff
path: root/capplets/common
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-10-19 11:41:29 +0800
committerLuke from DC <[email protected]>2023-12-27 04:24:30 +0000
commitbca3b80da6b3653ada9e0546a3fd053cdc4651d0 (patch)
tree91882520deb84786b2b2a7bf20470039d19265c8 /capplets/common
parentc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff)
downloadmate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2
mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz
Add meson build support
Diffstat (limited to 'capplets/common')
-rw-r--r--capplets/common/meson.build46
1 files changed, 46 insertions, 0 deletions
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,
+)