blob: 5cc45cfe7fbc681071d495769f9d5a253000d2be [file] [log] [blame]
George Liu759ebaf2023-08-16 19:48:05 +08001
2cpp = meson.get_compiler('cpp')
3if cpp.has_header('nlohmann/json.hpp')
4 nlohmann_json_dep = declare_dependency()
5else
6 subproject('nlohmann', required: false)
7 nlohmann_json_dep = declare_dependency(
8 include_directories: [
9 'subprojects/nlohmann/single_include',
10 'subprojects/nlohmann/single_include/nlohmann',
11 ]
12 )
13endif
14
kasunathbac958d2022-06-07 18:15:24 -070015rde_pre = declare_dependency(
16 include_directories: [rde_inc],
kasunath7cea1b92022-06-14 20:23:27 -070017 dependencies: [
George Liu759ebaf2023-08-16 19:48:05 +080018 nlohmann_json_dep,
kasunath7cea1b92022-06-14 20:23:27 -070019 dependency('libbej'),
20 dependency('phosphor-dbus-interfaces'),
21 dependency('sdbusplus'),
22 ]
23)
kasunathbac958d2022-06-07 18:15:24 -070024
kasunatha1a69f12022-05-27 14:31:38 -070025rde_lib = static_library(
26 'rde',
27 'rde_dictionary_manager.cpp',
kasunath37bc0df2022-06-07 12:40:26 -070028 'external_storer_file.cpp',
kasunathbac958d2022-06-07 18:15:24 -070029 'rde_handler.cpp',
kasunath7cea1b92022-06-14 20:23:27 -070030 'notifier_dbus_handler.cpp',
kasunathbac958d2022-06-07 18:15:24 -070031 implicit_include_directories: false,
32 dependencies: rde_pre)
kasunatha1a69f12022-05-27 14:31:38 -070033
34rde_dep = declare_dependency(
kasunathbac958d2022-06-07 18:15:24 -070035 link_with: rde_lib,
36 dependencies: rde_pre)