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', 17 meson.project_source_root(), 18 '-o', 19 meson.current_build_dir(), 20 ], 21 output: 'led-gen.hpp', 22 ) 23 sources += [led_gen_hpp] 24endif 25 26if get_option('use-lamp-test').allowed() 27 conf_data.set_quoted( 28 'LAMP_TEST_OBJECT', 29 '/xyz/openbmc_project/led/groups/lamp_test', 30 ) 31 conf_data.set_quoted( 32 'HOST_LAMP_TEST_OBJECT', 33 '/xyz/openbmc_project/led/groups/host_lamp_test', 34 ) 35 conf_data.set_quoted( 36 'LAMP_TEST_LED_OVERRIDES_JSON', 37 '/usr/share/phosphor-led-manager/lamp-test-led-overrides.json', 38 ) 39 conf_data.set('LAMP_TEST_TIMEOUT_IN_SECS', 240) 40 41 sources += ['lamptest/lamptest.cpp'] 42endif 43 44executable( 45 'phosphor-ledmanager', 46 sources, 47 include_directories: ['..'], 48 dependencies: deps, 49 install: true, 50 install_dir: get_option('bindir'), 51) 52