Brandon Kim | 554fad0 | 2022-05-15 15:41:05 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'bios-bmc-smm-error-logger', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
Patrick Williams | 55ce2f2 | 2023-04-12 08:05:57 -0500 | [diff] [blame] | 5 | meson_version: '>=0.58.0', |
Brandon Kim | 554fad0 | 2022-05-15 15:41:05 -0700 | [diff] [blame] | 6 | default_options: [ |
| 7 | 'cpp_std=c++20', |
| 8 | 'warning_level=3', |
| 9 | 'werror=true', |
| 10 | ]) |
| 11 | |
Brandon Kim | 55dcada | 2022-03-09 02:18:01 -0800 | [diff] [blame] | 12 | root_inc = include_directories('.') |
| 13 | bios_bmc_smm_error_logger_inc = include_directories('include') |
kasunath | a1a69f1 | 2022-05-27 14:31:38 -0700 | [diff] [blame] | 14 | rde_inc = include_directories('include') |
Brandon Kim | 55dcada | 2022-03-09 02:18:01 -0800 | [diff] [blame] | 15 | |
Brandon Kim | 1a3dc60 | 2022-06-17 11:34:33 -0700 | [diff] [blame] | 16 | # Setting up config data |
| 17 | conf_data = configuration_data() |
| 18 | |
| 19 | conf_data.set('READ_INTERVAL_MS', get_option('read-interval-ms')) |
| 20 | |
| 21 | conf_data.set('MEMORY_REGION_SIZE', get_option('memory-region-size')) |
| 22 | conf_data.set('MEMORY_REGION_OFFSET', get_option('memory-region-offset')) |
| 23 | conf_data.set('BMC_INTERFACE_VERSION', get_option('bmc-interface-version')) |
| 24 | |
| 25 | conf_data.set('QUEUE_REGION_SIZE', get_option('queue-region-size')) |
| 26 | conf_data.set('UE_REGION_SIZE', get_option('ue-region-size')) |
| 27 | conf_data.set('MAGIC_NUMBER_BYTE1', get_option('magic-number-byte1')) |
| 28 | conf_data.set('MAGIC_NUMBER_BYTE2', get_option('magic-number-byte2')) |
| 29 | conf_data.set('MAGIC_NUMBER_BYTE3', get_option('magic-number-byte3')) |
| 30 | conf_data.set('MAGIC_NUMBER_BYTE4', get_option('magic-number-byte4')) |
| 31 | |
| 32 | conf_h = configure_file( |
| 33 | output: 'config.h', |
| 34 | configuration: conf_data) |
| 35 | |
kasunath | a1a69f1 | 2022-05-27 14:31:38 -0700 | [diff] [blame] | 36 | subdir('src/rde') |
Brandon Kim | 1a3dc60 | 2022-06-17 11:34:33 -0700 | [diff] [blame] | 37 | subdir('src') |
George Liu | bbe408c | 2023-08-07 16:45:15 +0800 | [diff] [blame^] | 38 | if get_option('tests').allowed() |
Brandon Kim | 55dcada | 2022-03-09 02:18:01 -0800 | [diff] [blame] | 39 | subdir('test') |
| 40 | endif |
Brandon Kim | b6389b9 | 2022-03-09 02:32:18 -0800 | [diff] [blame] | 41 | |
| 42 | # installation of systemd service files |
| 43 | subdir('service_files') |