George Liu | 759ebaf | 2023-08-16 19:48:05 +0800 | [diff] [blame] | 1 | |
| 2 | cpp = meson.get_compiler('cpp') |
| 3 | if cpp.has_header('nlohmann/json.hpp') |
| 4 | nlohmann_json_dep = declare_dependency() |
| 5 | else |
| 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 | ) |
| 13 | endif |
| 14 | |
kasunath | bac958d | 2022-06-07 18:15:24 -0700 | [diff] [blame] | 15 | rde_pre = declare_dependency( |
| 16 | include_directories: [rde_inc], |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 17 | dependencies: [ |
George Liu | 759ebaf | 2023-08-16 19:48:05 +0800 | [diff] [blame] | 18 | nlohmann_json_dep, |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 19 | dependency('libbej'), |
| 20 | dependency('phosphor-dbus-interfaces'), |
| 21 | dependency('sdbusplus'), |
| 22 | ] |
| 23 | ) |
kasunath | bac958d | 2022-06-07 18:15:24 -0700 | [diff] [blame] | 24 | |
kasunath | a1a69f1 | 2022-05-27 14:31:38 -0700 | [diff] [blame] | 25 | rde_lib = static_library( |
| 26 | 'rde', |
| 27 | 'rde_dictionary_manager.cpp', |
kasunath | 37bc0df | 2022-06-07 12:40:26 -0700 | [diff] [blame] | 28 | 'external_storer_file.cpp', |
kasunath | bac958d | 2022-06-07 18:15:24 -0700 | [diff] [blame] | 29 | 'rde_handler.cpp', |
kasunath | 7cea1b9 | 2022-06-14 20:23:27 -0700 | [diff] [blame] | 30 | 'notifier_dbus_handler.cpp', |
kasunath | bac958d | 2022-06-07 18:15:24 -0700 | [diff] [blame] | 31 | implicit_include_directories: false, |
| 32 | dependencies: rde_pre) |
kasunath | a1a69f1 | 2022-05-27 14:31:38 -0700 | [diff] [blame] | 33 | |
| 34 | rde_dep = declare_dependency( |
kasunath | bac958d | 2022-06-07 18:15:24 -0700 | [diff] [blame] | 35 | link_with: rde_lib, |
| 36 | dependencies: rde_pre) |