blob: 29c594c69f1f45f6c666e04d130071cbe3e02fe2 [file] [log] [blame]
George Liuc7d70b62021-05-17 16:02:18 +08001project(
2 'phosphor-ledcontroller', 'cpp',
3 version : '1.0.0',
4 meson_version: '>=0.57.0',
5 default_options: [
6 'warning_level=3',
7 'werror=true',
8 'cpp_std=c++20',
9 'buildtype=debugoptimized'
10 ]
11)
12
George Liu3c894262021-12-28 10:32:49 +080013sdbusplus_dep = dependency('sdbusplus')
14phosphor_dbus_interfaces_dep = dependency('phosphor-dbus-interfaces')
George Liuc7d70b62021-05-17 16:02:18 +080015
16deps = [
17 sdbusplus_dep,
18 phosphor_dbus_interfaces_dep,
19]
20
21sources = [
22 'argument.cpp',
23 'controller.cpp',
24 'physical.cpp',
25 'sysfs.cpp',
26]
27
28executable(
29 'phosphor-ledcontroller',
30 sources,
31 implicit_include_directories: true,
32 dependencies: deps,
33 install: true,
34 install_dir: '/usr/sbin'
35)
36
37build_tests = get_option('tests')
38if build_tests.enabled()
39 subdir('test')
40endif