blob: 0c9764972098b6fcb046122710e07d3b93a7c1b9 [file] [log] [blame]
Patrick Williams953315d2022-03-16 14:30:39 -05001sources = [
2 'group.cpp',
3 'led-main.cpp',
4 'manager.cpp',
5 'serialize.cpp',
6 '../utils.cpp',
Alexander Hansen638d1482024-08-21 17:39:57 +02007 'config-validator.cpp',
Patrick Williams953315d2022-03-16 14:30:39 -05008]
9
10if get_option('use-json').disabled()
11 led_gen_hpp = custom_target(
12 'led-gen.hpp',
13 command : [
14 prog_python,
15 meson.project_source_root() + '/scripts/parse_led.py',
16 '-i', meson.project_source_root(),
17 '-o', meson.current_build_dir(),
18 ],
19 output : 'led-gen.hpp')
20 sources += [led_gen_hpp]
21endif
22
Patrick Williams95b0db92023-11-29 06:43:59 -060023if get_option('use-lamp-test').allowed()
Patrick Williams953315d2022-03-16 14:30:39 -050024 conf_data.set_quoted('LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/lamp_test')
25 conf_data.set_quoted('HOST_LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/host_lamp_test')
26 conf_data.set_quoted('LAMP_TEST_LED_OVERRIDES_JSON', '/usr/share/phosphor-led-manager/lamp-test-led-overrides.json')
27 conf_data.set('LAMP_TEST_TIMEOUT_IN_SECS', 240)
28
29 sources += ['lamptest/lamptest.cpp']
30endif
31
32executable(
33 'phosphor-ledmanager',
34 sources,
35 include_directories: ['..'],
36 dependencies: deps,
37 install: true,
38 install_dir: get_option('bindir')
39)