blob: 925ff8d2e686a41d0fc23c201df93ef510424159 [file] [log] [blame]
Nan Zhou3b80d012022-08-15 21:12:40 +00001ldap_dep = meson.get_compiler('cpp').find_library('ldap', required: true)
2
Ratan Guptaca039ca2022-01-09 12:22:27 +05303phosphor_ldap_conf_deps = [
Patrick Williamse92f4ac2022-04-05 16:10:18 -05004 cereal_dep,
Ratan Guptaca039ca2022-01-09 12:22:27 +05305 phosphor_dbus_interfaces_dep,
6 phosphor_logging_dep,
7 sdbusplus_dep,
Nan Zhou3b80d012022-08-15 21:12:40 +00008 ldap_dep,
Ratan Guptaca039ca2022-01-09 12:22:27 +05309]
10
11phosphor_ldap_conf_lib = static_library(
12 'phosphor_ldap_conf',
13 [
14 'utils.cpp',
15 'ldap_config.cpp',
16 'ldap_config_mgr.cpp',
17 'ldap_mapper_entry.cpp',
18 'ldap_mapper_serialize.cpp'
19 ],
20 include_directories: '..',
21 dependencies: phosphor_ldap_conf_deps,
22)
23
24phosphor_ldap_conf_dep = declare_dependency(
25 link_with: phosphor_ldap_conf_lib,
26 dependencies: phosphor_ldap_conf_deps,
27)
28
29executable(
30 'phosphor-ldap-conf',
31 'main.cpp',
32 include_directories: '..',
33 dependencies: phosphor_ldap_conf_dep,
Ratan Guptaca039ca2022-01-09 12:22:27 +053034 install: true,
35)