blob: 661ded38284eeeb6742505b5515c09e82a4c7984 [file] [log] [blame]
William A. Kennington IIIe0538842021-06-11 02:01:58 -07001# Create config.h with constants that use to come from autoconf.
2conf_data = configuration_data()
3conf_data.set('error_cap', get_option('error_cap'))
4conf_data.set('error_info_cap', get_option('error_info_cap'))
5conf_data.set('rsyslog_server_conf', get_option('rsyslog_server_conf'))
Lakshmi Yadlapati0387a742024-07-01 17:04:37 -05006
7cxx = meson.get_compiler('cpp')
8if cxx.has_header('poll.h')
9 add_project_arguments('-DPLDM_HAS_POLL=1', language: 'cpp')
10endif
11
William A. Kennington IIIe0538842021-06-11 02:01:58 -070012conf_h_dep = declare_dependency(
13 include_directories: include_directories('.'),
14 sources: configure_file(
15 input: 'config.h.meson',
16 output: 'config.h',
17 configuration: conf_data,
18 )
19)