blob: b3eddeb5e7f6c6806098ca9f41b19a10370bb1bf [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',
7]
8
9if get_option('use-json').disabled()
10 led_gen_hpp = custom_target(
11 'led-gen.hpp',
12 command : [
13 prog_python,
14 meson.project_source_root() + '/scripts/parse_led.py',
15 '-i', meson.project_source_root(),
16 '-o', meson.current_build_dir(),
17 ],
18 output : 'led-gen.hpp')
19 sources += [led_gen_hpp]
20endif
21
22if get_option('use-lamp-test').enabled()
23 conf_data.set_quoted('LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/lamp_test')
24 conf_data.set_quoted('HOST_LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/host_lamp_test')
25 conf_data.set_quoted('LAMP_TEST_LED_OVERRIDES_JSON', '/usr/share/phosphor-led-manager/lamp-test-led-overrides.json')
26 conf_data.set('LAMP_TEST_TIMEOUT_IN_SECS', 240)
27
28 sources += ['lamptest/lamptest.cpp']
29endif
30
31executable(
32 'phosphor-ledmanager',
33 sources,
34 include_directories: ['..'],
35 dependencies: deps,
36 install: true,
37 install_dir: get_option('bindir')
38)