From c69115df8c1a01a071dc8fc4e012da03d2e0b83b Mon Sep 17 00:00:00 2001 From: Himadri Sekhar Basu Date: Sun, 19 Oct 2025 11:53:36 +0530 Subject: [PATCH] Search and list all source files separately - Use find command to search for python and ui source files --- src/ThemeManager/meson.build | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/src/ThemeManager/meson.build b/src/ThemeManager/meson.build index 5ca41ae..03ef8f6 100644 --- a/src/ThemeManager/meson.build +++ b/src/ThemeManager/meson.build @@ -1,17 +1,8 @@ -python_sources = [ - 'about_window.py', - 'cli_args.py', - 'common.py', - 'DesktopTheme.py', - 'gui.py', - 'indicator.py', - '__init__.py', - 'logger.py', - 'LoginTheme.py', - 'main.py', - 'time_chooser.py', - 'tm_daemon.py', -] +python_sources = files( + run_command( + 'find', '.', '-name', '*.py', '-not', '-name', 'cli_args*', check: true + ).stdout().strip().split('\n') +) version_file = configure_file( input: 'VERSION.in', @@ -37,7 +28,11 @@ python.install_sources( ) # Install assets like ui and icons -ui = files('ui/theme-manager.ui', 'ui/logger.ui') +ui = files( + run_command( + 'find', 'ui', '-name', '*.ui', check: true + ).stdout().strip().split('\n') +) install_data( ui,