Patrick Williams | 953315d | 2022-03-16 14:30:39 -0500 | [diff] [blame] | 1 | sources = [ |
| 2 | 'group.cpp', |
| 3 | 'led-main.cpp', |
| 4 | 'manager.cpp', |
| 5 | 'serialize.cpp', |
| 6 | '../utils.cpp', |
| 7 | ] |
| 8 | |
| 9 | if 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] |
| 20 | endif |
| 21 | |
Patrick Williams | 95b0db9 | 2023-11-29 06:43:59 -0600 | [diff] [blame] | 22 | if get_option('use-lamp-test').allowed() |
Patrick Williams | 953315d | 2022-03-16 14:30:39 -0500 | [diff] [blame] | 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'] |
| 29 | endif |
| 30 | |
| 31 | executable( |
| 32 | 'phosphor-ledmanager', |
| 33 | sources, |
| 34 | include_directories: ['..'], |
| 35 | dependencies: deps, |
| 36 | install: true, |
| 37 | install_dir: get_option('bindir') |
| 38 | ) |