meson.build (06052cc5fa6d449fa6358ee554ea4eccd00525cf) | meson.build (adbb24526a166d6a9d3b6329a6c98c7dd6b5c4ac) |
---|---|
1project('pldm', ['c', 'cpp'], 2 version: '0.1', meson_version: '>=0.57.0', 3 default_options: [ 4 'warning_level=3', 5 'default_library=shared', 6 'werror=true', 7 'cpp_std=c++20', 8 'buildtype=debugoptimized' --- 59 unchanged lines hidden (view full) --- 68sdbusplus = dependency( 69 'sdbusplus', 70 fallback: ['sdbusplus', 'sdbusplus_dep'], 71) 72sdeventplus = dependency( 73 'sdeventplus', 74 fallback: ['sdeventplus', 'sdeventplus_dep'], 75) | 1project('pldm', ['c', 'cpp'], 2 version: '0.1', meson_version: '>=0.57.0', 3 default_options: [ 4 'warning_level=3', 5 'default_library=shared', 6 'werror=true', 7 'cpp_std=c++20', 8 'buildtype=debugoptimized' --- 59 unchanged lines hidden (view full) --- 68sdbusplus = dependency( 69 'sdbusplus', 70 fallback: ['sdbusplus', 'sdbusplus_dep'], 71) 72sdeventplus = dependency( 73 'sdeventplus', 74 fallback: ['sdeventplus', 'sdeventplus_dep'], 75) |
76systemd = dependency('systemd') | |
77 78cpp = meson.get_compiler('cpp') 79 80if cpp.has_header('nlohmann/json.hpp') 81 nlohmann_json = declare_dependency() 82else 83 subproject('nlohmann-json') 84 nlohmann_json = declare_dependency( --- 107 unchanged lines hidden (view full) --- 192 'pldmd/dbus_impl_requester.cpp', 193 'pldmd/instance_id.cpp', 194 'pldmd/dbus_impl_pdr.cpp', 195 implicit_include_directories: false, 196 dependencies: deps, 197 install: true, 198 install_dir: get_option('bindir')) 199 | 76 77cpp = meson.get_compiler('cpp') 78 79if cpp.has_header('nlohmann/json.hpp') 80 nlohmann_json = declare_dependency() 81else 82 subproject('nlohmann-json') 83 nlohmann_json = declare_dependency( --- 107 unchanged lines hidden (view full) --- 191 'pldmd/dbus_impl_requester.cpp', 192 'pldmd/instance_id.cpp', 193 'pldmd/dbus_impl_pdr.cpp', 194 implicit_include_directories: false, 195 dependencies: deps, 196 install: true, 197 install_dir: get_option('bindir')) 198 |
200systemd_system_unit_dir = systemd.get_variable( 201 pkgconfig: 'systemdsystemunitdir', 202 pkgconfig_define: ['prefix', get_option('prefix')]) | 199if get_option('systemd').enabled() 200 systemd_system_unit_dir = dependency('systemd').get_variable( 201 pkgconfig: 'systemdsystemunitdir') |
203 | 202 |
204configure_file( 205 copy: true, 206 input: 'pldmd/service_files/pldmd.service', 207 install: true, 208 install_dir: systemd_system_unit_dir, 209 output: 'pldmd.service', 210) | 203 configure_file( 204 copy: true, 205 input: 'pldmd/service_files/pldmd.service', 206 install: true, 207 install_dir: systemd_system_unit_dir, 208 output: 'pldmd.service', 209 ) |
211 | 210 |
212configure_file( 213 input: 'pldmd/verbosity/verbosity', 214 output: 'pldm_verbosity', 215 configuration: conf_data, 216 install: true, 217 install_dir: join_paths(get_option('sysconfdir'), 'default')) | 211 configure_file( 212 input: 'pldmd/verbosity/verbosity', 213 output: 'pldm_verbosity', 214 configuration: conf_data, 215 install: true, 216 install_dir: join_paths(get_option('sysconfdir'), 'default')) |
218 | 217 |
219if get_option('oem-ibm').enabled() 220 subdir('oem/ibm/service_files') | 218 if get_option('oem-ibm').enabled() 219 subdir('oem/ibm/service_files') 220 endif |
221endif 222 223subdir('pldmtool') 224 225subdir('configurations') 226 227if get_option('utilities').enabled() 228 subdir('utilities') --- 14 unchanged lines hidden --- | 221endif 222 223subdir('pldmtool') 224 225subdir('configurations') 226 227if get_option('utilities').enabled() 228 subdir('utilities') --- 14 unchanged lines hidden --- |