summaryrefslogtreecommitdiff
path: root/capplets/keyboard
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/keyboard
parentc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff)
downloadmate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2
mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz
Add meson build support
Diffstat (limited to 'capplets/keyboard')
-rw-r--r--capplets/keyboard/meson.build42
1 files changed, 42 insertions, 0 deletions
diff --git a/capplets/keyboard/meson.build b/capplets/keyboard/meson.build
new file mode 100644
index 00000000..22fa4a6f
--- /dev/null
+++ b/capplets/keyboard/meson.build
@@ -0,0 +1,42 @@
+desktop = 'mate-keyboard.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+sources = files(
+ 'mate-keyboard-properties.c',
+ 'mate-keyboard-properties-a11y.c',
+ 'mate-keyboard-properties-xkb.c',
+ 'mate-keyboard-properties-xkbmc.c',
+ 'mate-keyboard-properties-xkblt.c',
+ 'mate-keyboard-properties-xkbltadd.c',
+ 'mate-keyboard-properties-xkbot.c',
+ 'mate-keyboard-properties-xkbpv.c'
+)
+
+sources += gnome.compile_resources(
+ 'mate-keyboard-properties-resources',
+ 'org.mate.mcc.keyboard.gresource.xml',
+ c_name: 'keyboard',
+ export: true
+)
+
+cflags += [
+ '-DMATECC_DATA_DIR="@0@"'.format(mcc_pkgdatadir),
+]
+
+executable(
+ 'mate-keyboard-properties',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, libcommon_dep, xklavier_dep, matekbd_dep, matekbdui_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)