From 633ab16bc8631df84276323ea299d80a8c45d3f9 Mon Sep 17 00:00:00 2001 From: Assam Boudjelthia Date: Fri, 25 Nov 2022 16:48:26 +0200 Subject: CMake:Android: copy templates, bindings and gradle files pre_build At the moment when doing a non-prefix build and changing some of those files, CMake will not update the changes to the build folder unless done manually or a re-configure is done manually. qt_copy_or_install() only does copy those files at configure time once, and using CMAKE_CONFIGURE_DEPENDS would be an overkill here and even a bit of an extra annoyance, so in this case having a custom command seem to be suitable. Done-with: Alexey Edelev Change-Id: I55aa9e9d3eea32a4bb54c64abd4cbdcb891c44b6 Reviewed-by: Alexandru Croitor Reviewed-by: Alexey Edelev --- src/3rdparty/gradle/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/3rdparty') diff --git a/src/3rdparty/gradle/CMakeLists.txt b/src/3rdparty/gradle/CMakeLists.txt index e9060a669f..3013eca1f9 100644 --- a/src/3rdparty/gradle/CMakeLists.txt +++ b/src/3rdparty/gradle/CMakeLists.txt @@ -42,3 +42,11 @@ qt_copy_or_install( DESTINATION "${destination}" ) + +if(NOT QT_WILL_INSTALL) + qt_internal_copy_at_build_time(TARGET Qt${QtBase_VERSION_MAJOR}GradleScripts + FILES ${gradle_programs} ${gradle_files} + DIRECTORIES ${gradle_wrapper} + DESTINATION ${destination} + ) +endif() -- cgit v1.2.3