Build "ugly code" in calls-call-display conditionally

* meson_options.txt: Added option librem5-hack, defaults to true
* src/meson.build: Added conditional define USE_UGLY_CODE which will be
  set when librem5-hack option is used
* src/calls-call-display.c: ifdef'ed ugly_hacks call
This commit is contained in:
Evangelos Ribeiro Tzaras
2020-05-15 22:59:00 +02:00
parent f6db8cb5ba
commit 31fa887f04
3 changed files with 12 additions and 0 deletions

View File

@@ -9,3 +9,7 @@ option('tests',
option('wayland',
type: 'feature', value: 'enabled',
description: 'Whether to support Wayland lockscreen interaction')
option('librem5-hack',
type: 'boolean', value: true,
description: 'Whether to use hacky code to support audio output switching (Speaker)')