diff options
author | Phil Jones <philj56@gmail.com> | 2022-06-23 15:16:36 +0100 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2022-06-23 15:16:36 +0100 |
commit | 0dad59e82d77186d81063b409a7ea2cef15b0f40 (patch) | |
tree | ee73ee4268d1a5f61ed0c048003a3deb7f4ff9d4 /meson.build | |
parent | 128fa39bb62d1a1c627812f15030bf3ffb82100d (diff) |
Combine Harfbuzz & Pango backends.
Tofi now uses Harfbuzz if a file is passed to --font-name, and Pango
otherwise.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/meson.build b/meson.build index eb5c44d..810780b 100644 --- a/meson.build +++ b/meson.build @@ -55,12 +55,14 @@ add_project_arguments( language: 'c' ) -common_sources = files( +tofi_sources = files( 'src/main.c', 'src/color.c', 'src/compgen.c', 'src/config.c', 'src/entry.c', + 'src/entry_backend/pango.c', + 'src/entry_backend/harfbuzz.c', 'src/history.c', 'src/log.c', 'src/mkdirp.c', @@ -71,8 +73,6 @@ common_sources = files( 'src/xmalloc.c', ) -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', @@ -124,16 +124,8 @@ endforeach executable( 'tofi', - common_sources, harfbuzz_sources, wl_proto_src, wl_proto_headers, - dependencies: [libm, freetype, harfbuzz, cairo, wayland_client, xkbcommon], - install: true -) - -executable( - 'tofi-pango', - common_sources, pango_sources, wl_proto_src, wl_proto_headers, - dependencies: [pangocairo, wayland_client, xkbcommon], - c_args: '-DUSE_PANGO', + tofi_sources, wl_proto_src, wl_proto_headers, + dependencies: [libm, freetype, harfbuzz, cairo, pangocairo, wayland_client, xkbcommon], install: true ) |