mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
meson: Actually define TIMINGS if needed (#621)
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
c7e8776c78
commit
727e3dc51a
3 changed files with 3 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
||||||
* @ingroup HELPERS
|
* @ingroup HELPERS
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
#if TIMINGS
|
#ifdef TIMINGS
|
||||||
/**
|
/**
|
||||||
* Init the timestamping mechanism .
|
* Init the timestamping mechanism .
|
||||||
* implementation.
|
* implementation.
|
||||||
|
|
|
@ -94,6 +94,7 @@ endif
|
||||||
|
|
||||||
header_conf.set('ENABLE_DRUN', get_option('enable-drun'))
|
header_conf.set('ENABLE_DRUN', get_option('enable-drun'))
|
||||||
header_conf.set('WINDOW_MODE', get_option('enable-window'))
|
header_conf.set('WINDOW_MODE', get_option('enable-window'))
|
||||||
|
header_conf.set('TIMINGS', get_option('enable-timings'))
|
||||||
|
|
||||||
header_conf.set_quoted('MANPAGE_PATH', join_paths(get_option('prefix'), get_option('mandir')))
|
header_conf.set_quoted('MANPAGE_PATH', join_paths(get_option('prefix'), get_option('mandir')))
|
||||||
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))
|
header_conf.set_quoted('SYSCONFDIR', join_paths(get_option('prefix'), get_option('sysconfdir')))
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "rofi.h"
|
#include "rofi.h"
|
||||||
#include "timings.h"
|
#include "timings.h"
|
||||||
#if TIMINGS
|
#ifdef TIMINGS
|
||||||
GTimer *global_timer = NULL;
|
GTimer *global_timer = NULL;
|
||||||
double global_timer_last = 0.0;
|
double global_timer_last = 0.0;
|
||||||
FILE *timing_log = NULL;
|
FILE *timing_log = NULL;
|
||||||
|
|
Loading…
Reference in a new issue