William A. Kennington III | 6398d72 | 2021-04-16 13:45:58 -0700 | [diff] [blame] | 1 | project( |
| 2 | 'gpioplus', |
| 3 | 'cpp', |
William A. Kennington III | 3f49f01 | 2021-04-16 13:53:27 -0700 | [diff] [blame] | 4 | version: '0.1', meson_version: '>=0.57.0', |
William A. Kennington III | 6398d72 | 2021-04-16 13:45:58 -0700 | [diff] [blame] | 5 | default_options: [ |
| 6 | 'warning_level=3', |
William A. Kennington III | 71e795a | 2021-04-16 13:54:01 -0700 | [diff] [blame] | 7 | 'cpp_std=c++20', |
William A. Kennington III | 6398d72 | 2021-04-16 13:45:58 -0700 | [diff] [blame] | 8 | 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'), |
| 9 | 'examples=' + (meson.is_subproject() ? 'false' : 'true'), |
| 10 | ]) |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 11 | |
William A. Kennington III | 1565897 | 2019-03-27 19:44:36 -0700 | [diff] [blame] | 12 | subdir('src') |
| 13 | |
| 14 | build_tests = get_option('tests') |
| 15 | build_examples = get_option('examples') |
| 16 | |
| 17 | if build_examples |
| 18 | subdir('example') |
| 19 | endif |
| 20 | if not build_tests.disabled() |
| 21 | subdir('test') |
| 22 | endif |