From 0b253b41f662199a94fb85a3a187e4fae3f6425d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 19 Jun 2024 22:43:53 +0200 Subject: [PATCH] clapper-app: meson: Binaries with/without console on Windows --- src/bin/clapper-app/meson.build | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/bin/clapper-app/meson.build b/src/bin/clapper-app/meson.build index 76e298a6..515e83cc 100644 --- a/src/bin/clapper-app/meson.build +++ b/src/bin/clapper-app/meson.build @@ -88,5 +88,18 @@ executable( c_args: clapperapp_c_args, install: true, install_dir: bindir, + win_subsystem: 'windows', ) +if ['windows'].contains(host_machine.system()) + executable( + meson.project_name() + '-console', + clapperapp_sources, + dependencies: clapperapp_deps, + include_directories: clapperapp_conf_inc, + c_args: clapperapp_c_args, + install: true, + install_dir: bindir, + win_subsystem: 'console', + ) +endif build_clapperapp = true