| hothtools_headers = include_directories('.') |
| |
| libhothtools_lib = static_library( |
| 'hothtools', |
| [ |
| 'cli_parser.cpp', |
| 'hoth_dbus.cpp', |
| 'payload_update_cli.cpp', |
| 'hoth_updater_cli.cpp', |
| ], |
| include_directories: [hothd_headers, hothtools_headers], |
| implicit_include_directories: false, |
| dependencies: libhothd_deps) |
| |
| libhothtools_dep = declare_dependency( |
| dependencies: libhothd_deps, |
| include_directories: [hothd_headers, hothtools_headers], |
| link_with: libhothtools_lib) |
| |
| executable( |
| 'hoth_updater', |
| 'hoth_updater_main.cpp', |
| 'hoth_updater_cli.cpp', |
| dependencies: [sdbusplus_dep, libhothd_dep], |
| install: true, |
| link_args: '-Wl,--gc-sections', |
| ) |
| |
| executable( |
| 'payload_update', |
| 'payload_update_main.cpp', |
| dependencies: [sdbusplus_dep, libhothd_dep, libhothtools_dep], |
| install: true, |
| ) |
| if not build_tests.disabled() |
| subdir('test') |
| endif |