Skip to content

Commit 8807e25

Browse files
committed
force ninja to show what is going on
Without this patch ninja buffer "gradle" output and print it as whole after "gradle" finished. With this patch you see "gradle" progress online.
1 parent 98be1a1 commit 8807e25

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AddQtAndroidApk.cmake

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
1+
cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
22

33
# store the current source directory for future use
44
set(QT_ANDROID_SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR})
@@ -294,6 +294,9 @@ macro(add_qt_android_apk TARGET SOURCE_TARGET)
294294
add_custom_target(
295295
${TARGET}
296296
ALL
297+
# prevent output buffering in Ninja case, because of gradle part
298+
# may take too long
299+
USES_TERMINAL
297300
DEPENDS ${SOURCE_TARGET}
298301
${QT_ANDROID_PRE_COMMANDS}
299302
# it seems that recompiled libraries are not copied if we don't remove them first

0 commit comments

Comments
 (0)