blob: 1e6f3420cfa3e614ec625d7bb19f628fecc161dc [file] [log] [blame]
Zane Shelleyc2528942020-12-02 15:42:42 -06001# Source files.
Zane Shelley6e365872020-10-23 22:00:05 -05002analyzer_src = files(
3 'analyzer_main.cpp',
Zane Shelleyd3b9bac2020-11-17 21:59:12 -06004 'create_pel.cpp',
Zane Shelley65fefb22021-10-18 15:35:26 -05005 'filter-root-cause.cpp',
Zane Shelley6e365872020-10-23 22:00:05 -05006 'hei_user_interface.cpp',
Zane Shelleyf4bd5ff2020-11-05 22:26:04 -06007 'initialize_isolator.cpp',
Zane Shelleya9b44342021-08-08 17:15:52 -05008 'ras-data/ras-data-parser.cpp',
Zane Shelley0b8368c2021-03-18 17:33:41 -05009 'resolution.cpp',
Zane Shelley979e2872021-09-20 22:46:06 -050010 'service_data.cpp',
Zane Shelley6e365872020-10-23 22:00:05 -050011)
Ben Tyner9ae5ca42020-02-28 13:13:50 -060012
Zane Shelley15527a42021-12-16 21:43:13 -060013plugins_src = files(
Zane Shelleyc62813d2023-08-22 16:52:19 -050014 'plugins/ody-plugins.cpp',
Zane Shelley15527a42021-12-16 21:43:13 -060015 'plugins/p10-plugins.cpp',
Zane Shelleyd195b712022-01-26 13:26:34 -060016 'plugins/p10-tod-plugins.cpp',
Zane Shelley15527a42021-12-16 21:43:13 -060017)
18
Zane Shelley61465db2020-10-30 14:53:11 -050019# Library dependencies.
20analyzer_deps = [
21 dbus_interfaces_dep,
Zane Shelley55e7fec2022-01-28 15:29:44 -060022 fmt_dep,
Zane Shelley61465db2020-10-30 14:53:11 -050023 libhei_dep,
Zane Shelley5191bae2021-08-04 22:48:28 -050024 nlohmann_json_dep,
Zane Shelley61465db2020-10-30 14:53:11 -050025 sdbusplus_dep,
Zane Shelley5191bae2021-08-04 22:48:28 -050026 valijson_dep,
Zane Shelley61465db2020-10-30 14:53:11 -050027]
28
Zane Shelleyc2528942020-12-02 15:42:42 -060029# Create static library.
30analyzer_lib = static_library(
31 'analyzer_lib',
Zane Shelley475237a2022-02-03 11:04:54 -060032 [ analyzer_src ],
Zane Shelleyc2528942020-12-02 15:42:42 -060033 include_directories : incdir,
34 dependencies : analyzer_deps,
Zane Shelley9cdfa242022-03-24 13:24:46 -050035 cpp_args : [ package_args ],
Zane Shelleyc2528942020-12-02 15:42:42 -060036 install : false,
37)
38
Zane Shelleyd2854b72021-08-04 22:23:20 -050039# Install the RAS data files.
Zane Shelley4f4f4aa2021-08-02 12:41:25 -050040subdir('ras-data')
41