Only compile the bezos_ctl for windows.

master
Zed A. Shaw 3 weeks ago
parent 26ed4b74ce
commit 8929f0894b
  1. 22
      meson.build

@ -123,16 +123,18 @@ executable('bezos', ['src/main.cpp'],
override_options: exe_defaults, override_options: exe_defaults,
dependencies: dependencies) dependencies: dependencies)
# bezos_ctrl is a version of bezos_cli compiled to be a windows if build_machine.system() == 'windows'
# app instead of console. Ironically you have to do this so that # bezos_ctrl is a version of bezos_cli compiled to be a windows
# stream deck and other launchers don't open a cmd.exe to run it. # app instead of console. Ironically you have to do this so that
executable('bezos_ctrl', ['src/bezos_ctl.cpp'], # stream deck and other launchers don't open a cmd.exe to run it.
cpp_args: cpp_args, executable('bezos_ctrl', ['src/bezos_ctl.cpp'],
link_args: link_args, cpp_args: cpp_args,
include_directories: inc_dirs, link_args: link_args,
override_options: exe_defaults, include_directories: inc_dirs,
win_subsystem: 'windows', override_options: exe_defaults,
dependencies: dependencies) win_subsystem: 'windows',
dependencies: dependencies)
endif
executable('bezos_cli', ['src/bezos_ctl.cpp'], executable('bezos_cli', ['src/bezos_ctl.cpp'],
cpp_args: cpp_args, cpp_args: cpp_args,

Loading…
Cancel
Save