From c57d9a2a65725dce8632bea6e539517f6b5e8f7d Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 23 Jun 2022 13:59:23 +0100 Subject: Add tofi-run symlink. Invoking 'tofi' now acts like dmenu, expecting newline-separated options on stdin. Also fix history file handling and add an option to disable it. --- meson.build | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4292a3a..eb5c44d 100644 --- a/meson.build +++ b/meson.build @@ -37,6 +37,12 @@ install_data( install_dir: completion_location ) +install_symlink( + 'tofi-run', + install_dir: get_option('bindir'), + pointing_to: 'tofi', +) + add_project_arguments( [ '-pedantic', @@ -79,7 +85,6 @@ compgen_sources = files( cc = meson.get_compiler('c') libm = cc.find_library('m', required: false) freetype = dependency('freetype2') -glib = dependency('glib-2.0') harfbuzz = dependency('harfbuzz') cairo = dependency('cairo') pangocairo = dependency('pangocairo') @@ -120,14 +125,14 @@ endforeach executable( 'tofi', common_sources, harfbuzz_sources, wl_proto_src, wl_proto_headers, - dependencies: [libm, glib, freetype, harfbuzz, cairo, wayland_client, xkbcommon], + dependencies: [libm, freetype, harfbuzz, cairo, wayland_client, xkbcommon], install: true ) executable( 'tofi-pango', common_sources, pango_sources, wl_proto_src, wl_proto_headers, - dependencies: [glib, pangocairo, wayland_client, xkbcommon], + dependencies: [pangocairo, wayland_client, xkbcommon], c_args: '-DUSE_PANGO', install: true ) -- cgit v1.2.3