meson.build (d2854b75a6e47ca5fcff90916f6e28c1f2e97d22) meson.build (5191bae9d11562c826c6c1f719815548894def3a)
1# See README.md for details.
2project('openpower-hw-diags', 'cpp',
3 version: '0.1', meson_version: '>=0.49.0',
4 default_options: [
5 'warning_level=3',
6 'werror=true',
7 'cpp_std=c++17',
8 ])

--- 63 unchanged lines hidden (view full) ---

72 '-DTEST_TRACE',
73 ]
74 phosphor_logging = false
75endif
76
77pthread = declare_dependency(link_args : '-pthread')
78lrt = declare_dependency(link_args : '-lrt')
79
1# See README.md for details.
2project('openpower-hw-diags', 'cpp',
3 version: '0.1', meson_version: '>=0.49.0',
4 default_options: [
5 'warning_level=3',
6 'werror=true',
7 'cpp_std=c++17',
8 ])

--- 63 unchanged lines hidden (view full) ---

72 '-DTEST_TRACE',
73 ]
74 phosphor_logging = false
75endif
76
77pthread = declare_dependency(link_args : '-pthread')
78lrt = declare_dependency(link_args : '-lrt')
79
80# JSON parser
81if cmplr.has_header('nlohmann/json.hpp')
82 nlohmann_json_dep = declare_dependency()
83else
84 subproject('nlohmann', required: false)
85 nlohmann_json_dep = declare_dependency(
86 include_directories: [
87 'subprojects/nlohmann/single_include',
88 'subprojects/nlohmann/single_include/nlohmann',
89 ]
90 )
91 nlohmann_json_dep = nlohmann_json_dep.as_system('system')
92endif
93
94# JSON validator
95if cmplr.has_header('valijson/validator.hpp')
96 valijson_dep = declare_dependency()
97else
98 subproject('valijson', required: false)
99 valijson_dep = declare_dependency(
100 include_directories: 'subprojects/valijson/include'
101 )
102 valijson_dep = valijson_dep.as_system('system')
103endif
104
80#-------------------------------------------------------------------------------
81# Build the local static libraries
82#-------------------------------------------------------------------------------
83
84subdir('analyzer')
85subdir('attn')
86subdir('util')
87

--- 35 unchanged lines hidden ---
105#-------------------------------------------------------------------------------
106# Build the local static libraries
107#-------------------------------------------------------------------------------
108
109subdir('analyzer')
110subdir('attn')
111subdir('util')
112

--- 35 unchanged lines hidden ---