Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 1 | project('openpower-libhei', 'cpp', |
Paul Greenwood | dc47e0a | 2019-11-01 16:22:57 -0500 | [diff] [blame] | 2 | version: '0.1', meson_version: '>=0.50.0', |
Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 3 | default_options: [ |
| 4 | 'warning_level=3', |
| 5 | 'werror=true', |
Ben Tyner | 0fa81f7 | 2019-09-05 14:30:02 -0500 | [diff] [blame] | 6 | 'cpp_std=c++11', |
| 7 | 'cpp_args=-Wno-unused-parameter' |
| 8 | ]) |
Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 9 | |
Ben Tyner | a8126fd | 2019-08-01 19:40:07 -0500 | [diff] [blame] | 10 | incdir = [include_directories('src')] |
Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 11 | |
Ben Tyner | 7c79605 | 2020-02-03 19:00:37 -0600 | [diff] [blame] | 12 | # libhei_dep provides dependencies needed to build with libhei as a subproject |
| 13 | # rather than a base project. |
| 14 | libhei_src = ['src/isolator/hei_isolator.cpp', |
| 15 | 'src/isolator/hei_isolation_node.cpp', |
| 16 | 'src/register/hei_hardware_register.cpp', |
| 17 | 'src/util/hei_bit_string.cpp'] |
| 18 | |
| 19 | libhei_dep = declare_dependency(include_directories : incdir, |
| 20 | sources : libhei_src) |
| 21 | |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 22 | build_tests = get_option('tests') |
Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 23 | |
Zane Shelley | ad103b9 | 2019-07-31 15:57:54 -0500 | [diff] [blame] | 24 | if not build_tests.disabled() |
| 25 | incdir += include_directories('test') |
| 26 | subdir('test') |
Ben Tyner | 941aaeb | 2019-04-26 17:38:10 -0500 | [diff] [blame] | 27 | endif |