blob: 775242d64a48c2fb41ad8193c9861ff9612be9ab [file] [log] [blame]
Ben Tyner941aaeb2019-04-26 17:38:10 -05001project('openpower-libhei', 'cpp',
Paul Greenwooddc47e0a2019-11-01 16:22:57 -05002 version: '0.1', meson_version: '>=0.50.0',
Ben Tyner941aaeb2019-04-26 17:38:10 -05003 default_options: [
4 'warning_level=3',
5 'werror=true',
Ben Tyner0fa81f72019-09-05 14:30:02 -05006 'cpp_std=c++11',
7 'cpp_args=-Wno-unused-parameter'
8 ])
Ben Tyner941aaeb2019-04-26 17:38:10 -05009
Ben Tynera8126fd2019-08-01 19:40:07 -050010incdir = [include_directories('src')]
Ben Tyner941aaeb2019-04-26 17:38:10 -050011
Ben Tyner7c796052020-02-03 19:00:37 -060012# libhei_dep provides dependencies needed to build with libhei as a subproject
13# rather than a base project.
14libhei_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
19libhei_dep = declare_dependency(include_directories : incdir,
20 sources : libhei_src)
21
Zane Shelleyad103b92019-07-31 15:57:54 -050022build_tests = get_option('tests')
Ben Tyner941aaeb2019-04-26 17:38:10 -050023
Zane Shelleyad103b92019-07-31 15:57:54 -050024if not build_tests.disabled()
25 incdir += include_directories('test')
26 subdir('test')
Ben Tyner941aaeb2019-04-26 17:38:10 -050027endif