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 --- typing-break/meson.build | 57 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 typing-break/meson.build (limited to 'typing-break') 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 -- cgit v1.2.1