From 20b3f101a40cd7455cc5b41e381291504deec5ba Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 9 Aug 2019 15:15:28 +0200 Subject: [PATCH] Print gradle output on compiling Enable the attribute "console" of custom_target() introduced in meson 0.48. This allows to get a feedback of what gradle does (which can takes a very long time). This produces warnings because we declare to support meson >= 0.37, but we don't want to stop supporting older versions for that. Older versions just ignore the option: > WARNING: Unknown keyword arguments in target scrcpy-server: console Newer meson versions use it, but warn because we declare supporting older versions: > WARNING: Project targetting '>= 0.37' but tried to use feature > introduced in '0.48.0': console arg in custom_target Meson does not support conditional branches to suppress such warnings, so just keep the warnings. --- server/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/server/meson.build b/server/meson.build index d96373a0..43901246 100644 --- a/server/meson.build +++ b/server/meson.build @@ -6,6 +6,7 @@ if prebuilt_server == '' build_always: true, # gradle is responsible for tracking source changes output: 'scrcpy-server.jar', command: [find_program('./scripts/build-wrapper.sh'), meson.current_source_dir(), '@OUTPUT@', get_option('buildtype')], + console: true, install: true, install_dir: 'share/scrcpy') else