blob: 144a74e4ea35efa92e3e8628b615f38dc53c0eb2 [file] [log] [blame]
Brandon Kim554fad02022-05-15 15:41:05 -07001project(
2 'bios-bmc-smm-error-logger',
3 'cpp',
4 version: '0.1',
Patrick Williams9f7eca22023-08-23 06:31:06 -05005 meson_version: '>=1.1.1',
Brandon Kim554fad02022-05-15 15:41:05 -07006 default_options: [
Patrick Williams9f7eca22023-08-23 06:31:06 -05007 'cpp_std=c++23',
Brandon Kim554fad02022-05-15 15:41:05 -07008 'warning_level=3',
9 'werror=true',
10 ])
11
Brandon Kim55dcada2022-03-09 02:18:01 -080012root_inc = include_directories('.')
13bios_bmc_smm_error_logger_inc = include_directories('include')
kasunatha1a69f12022-05-27 14:31:38 -070014rde_inc = include_directories('include')
Brandon Kim55dcada2022-03-09 02:18:01 -080015
Brandon Kim1a3dc602022-06-17 11:34:33 -070016# Setting up config data
17conf_data = configuration_data()
18
19conf_data.set('READ_INTERVAL_MS', get_option('read-interval-ms'))
20
21conf_data.set('MEMORY_REGION_SIZE', get_option('memory-region-size'))
22conf_data.set('MEMORY_REGION_OFFSET', get_option('memory-region-offset'))
23conf_data.set('BMC_INTERFACE_VERSION', get_option('bmc-interface-version'))
24
25conf_data.set('QUEUE_REGION_SIZE', get_option('queue-region-size'))
26conf_data.set('UE_REGION_SIZE', get_option('ue-region-size'))
27conf_data.set('MAGIC_NUMBER_BYTE1', get_option('magic-number-byte1'))
28conf_data.set('MAGIC_NUMBER_BYTE2', get_option('magic-number-byte2'))
29conf_data.set('MAGIC_NUMBER_BYTE3', get_option('magic-number-byte3'))
30conf_data.set('MAGIC_NUMBER_BYTE4', get_option('magic-number-byte4'))
31
32conf_h = configure_file(
33 output: 'config.h',
34 configuration: conf_data)
35
kasunatha1a69f12022-05-27 14:31:38 -070036subdir('src/rde')
Brandon Kim1a3dc602022-06-17 11:34:33 -070037subdir('src')
George Liubbe408c2023-08-07 16:45:15 +080038if get_option('tests').allowed()
Brandon Kim55dcada2022-03-09 02:18:01 -080039 subdir('test')
40endif
Brandon Kimb6389b92022-03-09 02:32:18 -080041
42# installation of systemd service files
43subdir('service_files')