mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-09 22:50:54 +00:00
theme: add development highlight to headerbar
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user