diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-10 19:36:29 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-10 19:36:29 +0100 |
commit | 7c31982244f179cb2f51bb1d81b21ad4efd649ba (patch) | |
tree | 07c612f81b6b5a15aa2c0587fdee7077ceaeba36 /meson.build | |
parent | a6ac47fb763fd4448c0269e274f061226fa0f10a (diff) |
Various small changes.
- Split the compgen and history sorting parts of compgen(), for future
dmenu-like work.
- Add a separate tofi-compgen executable.
- Remove harfbuzz-glib usage, as we shouldn't be doing any complicated
unicode stuff.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 4b4b100..ebdcead 100644 --- a/meson.build +++ b/meson.build @@ -64,12 +64,20 @@ common_sources = files( pango_sources = files('src/entry_backend/pango.c') harfbuzz_sources = files('src/entry_backend/harfbuzz.c') +compgen_sources = files( + 'src/main_compgen.c', + 'src/compgen.c', + 'src/log.c', + 'src/string_vec.c', + 'src/xmalloc.c' +) 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') wayland_client = dependency('wayland-client') wayland_protocols = dependency('wayland-protocols', native: true) @@ -107,6 +115,13 @@ endforeach executable( 'tofi', + common_sources, harfbuzz_sources, wl_proto_src, wl_proto_headers, + dependencies: [libm, glib, 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], c_args: '-DUSE_PANGO', @@ -114,9 +129,8 @@ executable( ) executable( - 'tofi-hb', - common_sources, harfbuzz_sources, wl_proto_src, wl_proto_headers, - dependencies: [libm, glib, freetype, harfbuzz, pangocairo, wayland_client, xkbcommon], + 'tofi-compgen', + compgen_sources, install: true ) |