manager: move code to subdirectory
The root has become pretty cluttered. Move code for the primary
manager application to a subdirectory.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I8503cf08c72750c88a5ce94a4d94671d6b59aafb
diff --git a/meson.build b/meson.build
index 9e7990a..84cb8dc 100644
--- a/meson.build
+++ b/meson.build
@@ -91,35 +91,8 @@
cereal_dep,
]
-sources = [
- 'group.cpp',
- 'led-main.cpp',
- 'manager.cpp',
- 'serialize.cpp',
- 'utils.cpp',
-]
-
-if get_option('use-json').disabled()
- led_gen_hpp = custom_target(
- 'led-gen.hpp',
- command : [
- prog_python,
- meson.project_source_root() + '/scripts/parse_led.py',
- '-i', meson.project_source_root(),
- '-o', meson.current_build_dir(),
- ],
- output : 'led-gen.hpp')
- sources += [led_gen_hpp]
-endif
-
-if get_option('use-lamp-test').enabled()
- conf_data.set_quoted('LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/lamp_test')
- conf_data.set_quoted('HOST_LAMP_TEST_OBJECT', '/xyz/openbmc_project/led/groups/host_lamp_test')
- conf_data.set_quoted('LAMP_TEST_LED_OVERRIDES_JSON', '/usr/share/phosphor-led-manager/lamp-test-led-overrides.json')
- conf_data.set('LAMP_TEST_TIMEOUT_IN_SECS', 240)
-
- sources += ['lamptest.cpp']
-endif
+subdir('manager')
+subdir('fault-monitor')
configure_file(output: 'config.h',
configuration: conf_data
@@ -130,16 +103,6 @@
install_dir: get_option('bindir')
)
-executable(
- 'phosphor-ledmanager',
- sources,
- implicit_include_directories: true,
- dependencies: deps,
- install: true,
- install_dir: get_option('bindir')
-)
-subdir('fault-monitor')
-
build_tests = get_option('tests')
if not build_tests.disabled()
subdir('test')