Nan Zhou | 3b80d01 | 2022-08-15 21:12:40 +0000 | [diff] [blame] | 1 | ldap_dep = meson.get_compiler('cpp').find_library('ldap', required: true) |
| 2 | |
Ratan Gupta | ca039ca | 2022-01-09 12:22:27 +0530 | [diff] [blame] | 3 | phosphor_ldap_conf_deps = [ |
Konstantin Aladyshev | c992c26 | 2024-04-02 16:54:35 +0300 | [diff] [blame^] | 4 | boost_dep, |
Patrick Williams | e92f4ac | 2022-04-05 16:10:18 -0500 | [diff] [blame] | 5 | cereal_dep, |
Ratan Gupta | ca039ca | 2022-01-09 12:22:27 +0530 | [diff] [blame] | 6 | phosphor_dbus_interfaces_dep, |
| 7 | phosphor_logging_dep, |
| 8 | sdbusplus_dep, |
Nan Zhou | 3b80d01 | 2022-08-15 21:12:40 +0000 | [diff] [blame] | 9 | ldap_dep, |
Ratan Gupta | ca039ca | 2022-01-09 12:22:27 +0530 | [diff] [blame] | 10 | ] |
| 11 | |
| 12 | phosphor_ldap_conf_lib = static_library( |
| 13 | 'phosphor_ldap_conf', |
| 14 | [ |
| 15 | 'utils.cpp', |
| 16 | 'ldap_config.cpp', |
| 17 | 'ldap_config_mgr.cpp', |
| 18 | 'ldap_mapper_entry.cpp', |
| 19 | 'ldap_mapper_serialize.cpp' |
| 20 | ], |
| 21 | include_directories: '..', |
| 22 | dependencies: phosphor_ldap_conf_deps, |
| 23 | ) |
| 24 | |
| 25 | phosphor_ldap_conf_dep = declare_dependency( |
| 26 | link_with: phosphor_ldap_conf_lib, |
| 27 | dependencies: phosphor_ldap_conf_deps, |
| 28 | ) |
| 29 | |
| 30 | executable( |
| 31 | 'phosphor-ldap-conf', |
| 32 | 'main.cpp', |
| 33 | include_directories: '..', |
| 34 | dependencies: phosphor_ldap_conf_dep, |
Ratan Gupta | ca039ca | 2022-01-09 12:22:27 +0530 | [diff] [blame] | 35 | install: true, |
| 36 | ) |