1sources = [ 2 'group.cpp', 3 'led-main.cpp', 4 'manager.cpp', 5 'serialize.cpp', 6 '../utils.cpp', 7 'config-validator.cpp', 8] 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 23if get_option('use-lamp-test').allowed() 24 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) 40