| William A. Kennington III | e053884 | 2021-06-11 02:01:58 -0700 | [diff] [blame] | 1 | # Create config.h with constants that use to come from autoconf. | 
 | 2 | conf_data = configuration_data() | 
 | 3 | conf_data.set('error_cap', get_option('error_cap')) | 
 | 4 | conf_data.set('error_info_cap', get_option('error_info_cap')) | 
 | 5 | conf_data.set('rsyslog_server_conf', get_option('rsyslog_server_conf')) | 
| Lakshmi Yadlapati | 0387a74 | 2024-07-01 17:04:37 -0500 | [diff] [blame^] | 6 |  | 
 | 7 | cxx = meson.get_compiler('cpp') | 
 | 8 | if cxx.has_header('poll.h') | 
 | 9 |     add_project_arguments('-DPLDM_HAS_POLL=1', language: 'cpp') | 
 | 10 | endif | 
 | 11 |  | 
| William A. Kennington III | e053884 | 2021-06-11 02:01:58 -0700 | [diff] [blame] | 12 | conf_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 | ) |