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