From 8929f0894bc1d64e5132ec7280f44b288772810e Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Sat, 2 May 2026 22:59:48 -0400 Subject: [PATCH] Only compile the bezos_ctl for windows. --- meson.build | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/meson.build b/meson.build index fa73d09..633fb2d 100644 --- a/meson.build +++ b/meson.build @@ -123,16 +123,18 @@ executable('bezos', ['src/main.cpp'], override_options: exe_defaults, dependencies: dependencies) -# bezos_ctrl is a version of bezos_cli compiled to be a windows -# app instead of console. Ironically you have to do this so that -# stream deck and other launchers don't open a cmd.exe to run it. -executable('bezos_ctrl', ['src/bezos_ctl.cpp'], - cpp_args: cpp_args, - link_args: link_args, - include_directories: inc_dirs, - override_options: exe_defaults, - win_subsystem: 'windows', - dependencies: dependencies) +if build_machine.system() == 'windows' + # bezos_ctrl is a version of bezos_cli compiled to be a windows + # app instead of console. Ironically you have to do this so that + # stream deck and other launchers don't open a cmd.exe to run it. + executable('bezos_ctrl', ['src/bezos_ctl.cpp'], + cpp_args: cpp_args, + link_args: link_args, + include_directories: inc_dirs, + override_options: exe_defaults, + win_subsystem: 'windows', + dependencies: dependencies) +endif executable('bezos_cli', ['src/bezos_ctl.cpp'], cpp_args: cpp_args,