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

@@ -95,6 +95,9 @@ calls_config_data = config_data
calls_config_data.set_quoted('VCS_TAG', '@VCS_TAG@')
calls_config_data.set10('WL_SCANNER_FOUND', wl_scanner.found())
use_l5_hacks = get_option('librem5-hack')
calls_config_data.set('CALLS_USE_UGLY_CODE', use_l5_hacks)
config_h_in = configure_file(
output: 'config.h.in',
configuration: calls_config_data