| install_sources = [ |
| # go/keep-sorted start |
| 'installer.cc', |
| 'installer_main.cc', |
| # go/keep-sorted end |
| ] |
| |
| executable( |
| 'installer_main', |
| install_sources, |
| link_args: '-Wl,--gc-sections', |
| include_directories : incdir, |
| dependencies: bmcweb_dependencies, |
| link_with: libs_link_with, |
| install: true, |
| cpp_args: ['-Wno-error'], |
| ) |
| |
| systemd_dep = dependency('systemd') |
| systemd_system_unitdir = systemd_dep.get_variable( |
| pkgconfig: 'systemdsystemunitdir' |
| ) |
| |
| install_data( |
| 'activation-check.service', |
| install_dir: systemd_system_unitdir, |
| ) |
| |
| install_data( |
| 'install-service.service', |
| install_dir: systemd_system_unitdir, |
| ) |