theme: add development highlight to headerbar

This commit is contained in:
Christian Hergert
2018-10-15 18:57:13 -07:00
parent 23adcf0a23
commit be185c2fbc
5 changed files with 38 additions and 0 deletions

View File

@ -9,6 +9,8 @@ project('sysprof', ['c', 'cpp'],
]
)
version_split = meson.project_version().split('.')
cc = meson.get_compiler('c')
config_h = configuration_data()
@ -32,6 +34,9 @@ config_h.set10('ENABLE_NLS', true)
config_h.set_quoted('PACKAGE_LOCALE_DIR', join_paths(get_option('prefix'), get_option('datadir'), 'locale'))
config_h.set('LOCALEDIR', 'PACKAGE_LOCALE_DIR')
# Development build setup
config_h.set('DEVELOPMENT_BUILD', version_split[1].to_int().is_odd())
has_use_clockid = cc.has_member('struct perf_event_attr', 'use_clockid', prefix: '#include <linux/perf_event.h>')
has_clockid = cc.has_member('struct perf_event_attr', 'clockid', prefix: '#include <linux/perf_event.h>')
if has_use_clockid and has_clockid