From 1c6a2eba74ddf423ed1542bb8fe841583721a0be Mon Sep 17 00:00:00 2001 From: themuffinator Date: Thu, 9 Apr 2026 08:48:22 +0100 Subject: [PATCH] build: sync platform icons in bash meson wrapper --- tools/build/meson_setup.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/build/meson_setup.sh b/tools/build/meson_setup.sh index 1d905764..3664202f 100644 --- a/tools/build/meson_setup.sh +++ b/tools/build/meson_setup.sh @@ -4,6 +4,7 @@ set -euo pipefail script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" repo_root="$(cd -- "${script_dir}/../.." && pwd)" default_builddir="${repo_root}/builddir" +sync_icons_script="${script_dir}/sync_icons.py" declare -a MESON_CMD=() PYTHON_CMD="" declare -a READ_ARRAY_RESULT=() @@ -248,6 +249,15 @@ if [[ -z "${command_name}" ]]; then exit 1 fi +if [[ ( "${command_name}" == "setup" || "${command_name}" == "compile" || "${command_name}" == "install" ) && "${OPENQ4_SKIP_ICON_SYNC:-0}" != "1" ]]; then + if [[ ! -f "${sync_icons_script}" ]]; then + echo "Icon sync script not found: '${sync_icons_script}'." >&2 + exit 1 + fi + + "${PYTHON_CMD}" "${sync_icons_script}" --source-root "${repo_root}" +fi + if [[ "${command_name}" == "setup" ]]; then for (( i = 0; i < ${#effective_args[@]}; ++i )); do if [[ "${effective_args[$i]}" == "--reconfigure" && $((i + 1)) -lt ${#effective_args[@]} ]]; then