kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'libbej', |
| 3 | 'c', |
| 4 | 'cpp', |
| 5 | version: '0.1', |
Patrick Williams | 0686fd9 | 2023-07-12 11:16:13 -0500 | [diff] [blame] | 6 | meson_version: '>=1.1.1', |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 7 | default_options: [ |
| 8 | 'c_std=c18', |
Patrick Williams | 0686fd9 | 2023-07-12 11:16:13 -0500 | [diff] [blame] | 9 | 'cpp_std=c++23', |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 10 | 'werror=true', |
| 11 | 'warning_level=3', |
Willy Tu | 5433c17 | 2022-06-08 22:34:16 -0700 | [diff] [blame] | 12 | 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 13 | ]) |
| 14 | |
kasunath | ec85e11 | 2022-11-28 17:32:30 -0800 | [diff] [blame] | 15 | libbej_incs = include_directories('include', 'include/libbej') |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 16 | subdir('src') |
kasunath | 80ad94f | 2022-10-31 14:42:26 -0700 | [diff] [blame] | 17 | subdir('include/libbej') |
kasunath | 7ffd30a | 2022-05-10 18:11:34 -0700 | [diff] [blame] | 18 | if not get_option('tests').disabled() |
| 19 | subdir('test') |
| 20 | endif |
Willy Tu | cc4098e | 2022-06-23 11:39:38 -0700 | [diff] [blame] | 21 | |