blob: 0ae858498d097c54debc2002f6449f7da1e4c695 [file] [log] [blame]
project(
'phosphor-ledcontroller', 'cpp',
version : '1.0.0',
meson_version: '>=0.58.0',
default_options: [
'warning_level=3',
'werror=true',
'cpp_std=c++20',
'buildtype=debugoptimized'
]
)
sdbusplus_dep = dependency('sdbusplus')
phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
boost = dependency('boost', include_type: 'system')
deps = [
sdbusplus_dep,
phosphor_dbus_interfaces_dep,
boost,
]
udevdir = dependency('udev').get_variable('udevdir')
install_data(['udev' / 'rules.d' / '70-leds.rules'], install_dir : udevdir / 'rules.d')
systemd = dependency('systemd')
install_data(['systemd' / 'system' / 'xyz.openbmc_project.led.controller@.service'],
install_dir: systemd.get_variable('systemdsystemunitdir')
)
sources = [
'argument.cpp',
'controller.cpp',
'physical.cpp',
'sysfs.cpp',
]
executable(
'phosphor-ledcontroller',
sources,
implicit_include_directories: true,
dependencies: deps,
install: true,
install_dir: '/usr/libexec/phosphor-led-sysfs'
)
build_tests = get_option('tests')
if build_tests.enabled()
subdir('test')
endif