diff options
author | zhuyaliang <[email protected]> | 2023-10-19 11:41:29 +0800 |
---|---|---|
committer | Luke from DC <[email protected]> | 2023-12-27 04:24:30 +0000 |
commit | bca3b80da6b3653ada9e0546a3fd053cdc4651d0 (patch) | |
tree | 91882520deb84786b2b2a7bf20470039d19265c8 /typing-break | |
parent | c2e94e1925f3c7acfa3fd3352dc8fdafe6375adc (diff) | |
download | mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.bz2 mate-control-center-bca3b80da6b3653ada9e0546a3fd053cdc4651d0.tar.xz |
Add meson build support
Diffstat (limited to 'typing-break')
-rw-r--r-- | typing-break/meson.build | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/typing-break/meson.build b/typing-break/meson.build new file mode 100644 index 00000000..29033b95 --- /dev/null +++ b/typing-break/meson.build @@ -0,0 +1,57 @@ +cflags = [ + '-DIMAGEDIR="@0@"'.format(mcc_directorydir), + '-DMATELOCALEDIR="@0@"'.format(mcc_pixmaps), +] + +deps = [ + gtk_dep, + glib_dep, + mate_desktop_dep, + x11_dep, + xext_dep, + xscrnsaver_dep, + m_dep +] +deps += [appindicator_dep,ayatana_dep] +executable( + 'mate-typing-monitor', + sources : [ + 'drw-break-window.c', + 'drw-monitor.c', + 'drwright.c', + 'drw-selection.c', + 'drw-timer.c', + 'drw-utils.c', + 'main.c' + ], + include_directories : config_inc, + dependencies : deps, + c_args : cflags, + install : true, + install_dir : get_option('bindir') +) + +install_data( + 'mate-typing-monitor.png', + install_dir: join_paths(mcc_icondir, 'hicolor', '48x48', 'apps') +) + +install_data( + 'mate-typing-monitor.svg', + install_dir: join_paths(mcc_icondir, 'hicolor', 'scalable', 'apps') +) + +icons = [ + 'bar-disabled.png', + 'bar-green.png', + 'bar.png', + 'bar-red.png', + 'ocean-stripes.png' +] + +foreach icon: icons + install_data( + icon, + install_dir : mcc_pixmaps + ) +endforeach |