summaryrefslogtreecommitdiff
path: root/shell
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 /shell
parentc2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff)
downloadmate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2
mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz
Add meson build support
Diffstat (limited to 'shell')
-rw-r--r--shell/meson.build60
1 files changed, 60 insertions, 0 deletions
diff --git a/shell/meson.build b/shell/meson.build
new file mode 100644
index 00000000..e39e55e3
--- /dev/null
+++ b/shell/meson.build
@@ -0,0 +1,60 @@
+directory_desktop = 'matecc.directory'
+desktop = 'matecc.desktop'
+
+i18n.merge_file(
+ type: 'desktop',
+ input: desktop + '.in',
+ output: desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: mcc_desktopdir
+)
+
+i18n.merge_file(
+ type: 'desktop',
+ input: directory_desktop + '.desktop.in',
+ output: directory_desktop,
+ po_dir: po_dir,
+ install: true,
+ install_dir: join_paths(mcc_datadir, 'desktop-directories')
+)
+
+sources = files(
+ 'application-tile.c',
+ 'app-resizer.c',
+ 'app-shell.c',
+ 'bookmark-agent.c',
+ 'control-center.c',
+ 'double-click-detector.c',
+ 'libslab-utils.c',
+ 'mate-utils.c',
+ 'nameplate-tile.c',
+ 'search-bar.c',
+ 'shell-window.c',
+ 'slab-mate-util.c',
+ 'slab-section.c',
+ 'themed-icon.c',
+ 'tile-action.c',
+ 'tile.c'
+)
+
+sources += gnome.genmarshal('nld-marshal', prefix : 'nld_marshal', sources : 'nld-marshal.list' )
+cflags = [
+ '-DDATADIR="@0@"'.format(mcc_datadir),
+ '-DMATELOCALEDIR="@0@"'.format(mcc_localedir),
+]
+
+executable(
+ 'mate-control-center',
+ sources : sources,
+ include_directories: config_inc,
+ dependencies : [common_deps, menu_dep],
+ c_args : cflags,
+ install : true,
+ install_dir : get_option('bindir')
+)
+
+install_data (
+ 'matecc.menu',
+ install_dir : join_paths(get_option('sysconfdir'), 'xdg', 'menus')
+)