xref: /openbmc/btbridge/meson.build (revision 805e84fba6154cfa7e8b3ba1356d9e904d7314d6)
18ee19a4dSEd Tanousproject(
28ee19a4dSEd Tanous    'phosphor-ipmi-bt',
38ee19a4dSEd Tanous    'c',
48ee19a4dSEd Tanous    version: '1.0',
58ee19a4dSEd Tanous    meson_version: '>=1.1.1',
68ee19a4dSEd Tanous    default_options: [
78ee19a4dSEd Tanous        'b_lto_mode=default',
88ee19a4dSEd Tanous        'b_lto_threads=0',
98ee19a4dSEd Tanous        'b_lto=true',
108ee19a4dSEd Tanous        'b_ndebug=if-release',
118ee19a4dSEd Tanous        'warning_level=3',
128ee19a4dSEd Tanous        'werror=true',
13*805e84fbSPatrick Williams    ],
148ee19a4dSEd Tanous)
158ee19a4dSEd Tanous
168ee19a4dSEd Tanoussystemd = dependency('systemd')
178ee19a4dSEd Tanouslibsystemd = dependency('libsystemd')
18*805e84fbSPatrick Williamssystemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
198ee19a4dSEd Tanous
20*805e84fbSPatrick Williamsexecutable('btbridged', 'btbridged.c', dependencies: [libsystemd], install: true)
218ee19a4dSEd Tanous
228ee19a4dSEd Tanousconfigure_file(
238ee19a4dSEd Tanous    input: 'btbridged.service',
248ee19a4dSEd Tanous    output: 'org.openbmc.HostIpmi.service',
258ee19a4dSEd Tanous    install: true,
268ee19a4dSEd Tanous    install_dir: systemd_system_unit_dir,
278ee19a4dSEd Tanous    copy: true,
288ee19a4dSEd Tanous)
29