blob: 74bc567fc75c147eebc6be1002fdc9e571ad6b1f [file] [log] [blame]
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05001systemd = dependency('libsystemd', version: '>= 221')
Alpana Kumarib17dd3b2020-10-01 00:18:10 -05002sdeventplus = dependency('sdeventplus')
SunnySrivastava1984b59fd092020-02-03 09:58:56 -06003
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05004configuration_inc = include_directories('.', '../', '../vpd-parser/')
SunnySrivastava1984b59fd092020-02-03 09:58:56 -06005
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05006vpd_manager_SOURCES =['manager_main.cpp',
7 'manager.cpp',
SunnySrivastava1984e12b1812020-05-26 02:23:11 -05008 'error.cpp',
9 'editor_impl.cpp',
10 'reader_impl.cpp',
Alpana Kumarib17dd3b2020-10-01 00:18:10 -050011 'gpioMonitor.cpp',
Santosh Puranikf2d3b532022-04-19 06:44:07 -050012 'bios_handler.cpp',
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050013 '../impl.cpp',
14 '../vpd-parser/ipz_parser.cpp',
Sunny Srivastava6c71c9d2021-04-15 04:43:54 -050015 '../ibm_vpd_utils.cpp',
16 '../common_utility.cpp',
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050017 '../vpd-parser//keyword_vpd_parser.cpp',
18 '../vpd-parser/memory_vpd_parser.cpp',
19 '../vpd-parser/parser_factory.cpp'
20 ]
SunnySrivastava1984b59fd092020-02-03 09:58:56 -060021
Sunny Srivastava523af2e2022-02-14 07:30:10 -060022vpd_manager_dependencies =[phosphor_logging,
SunnySrivastava1984a7392592020-03-09 10:19:33 -050023 systemd,
Alpana Kumarib17dd3b2020-10-01 00:18:10 -050024 libgpiodcxx,
25 sdeventplus,
SunnySrivastava1984a7392592020-03-09 10:19:33 -050026 ]
27
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050028vpd_manager_exe = executable(
29 'vpd-manager',
Alpana Kumarib17dd3b2020-10-01 00:18:10 -050030 vpd_manager_SOURCES,
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050031 include_directories : configuration_inc,
32 dependencies : [
33 vpd_manager_dependencies,
34 ],
Priyanga Ramasamya4a2adf2022-02-03 05:43:41 -060035 link_with : libvpdecc,
Santosh Puranik6b2b5372022-06-02 20:49:02 +053036 install : true,
37 cpp_args : '-DIPZ_PARSER'
SunnySrivastava1984e12b1812020-05-26 02:23:11 -050038 )