From 60c2f9f3b4603398674dfb8ec9020a7920c64eb2 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Thu, 13 Jun 2019 14:03:23 +0200 Subject: [PATCH] Android: Install gradle templates Install the required gradle templates for the android deployment tool to work correctly. Change-Id: I1b18235c354dbea2d4b47ce1d8146a477676a6cb Reviewed-by: Qt CMake Build Bot Reviewed-by: Simon Hausmann --- src/3rdparty/CMakeLists.txt | 6 ++++++ src/3rdparty/gradle/CMakeLists.txt | 20 ++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/3rdparty/gradle/CMakeLists.txt diff --git a/src/3rdparty/CMakeLists.txt b/src/3rdparty/CMakeLists.txt index d3b30fea65..2d6aed7690 100644 --- a/src/3rdparty/CMakeLists.txt +++ b/src/3rdparty/CMakeLists.txt @@ -1,3 +1,9 @@ add_subdirectory(tinycbor) add_subdirectory(harfbuzz) add_subdirectory(double-conversion) + +#special case begin +if (ANDROID) + add_subdirectory(gradle) +endif() +#special case end diff --git a/src/3rdparty/gradle/CMakeLists.txt b/src/3rdparty/gradle/CMakeLists.txt new file mode 100644 index 0000000000..fd4857f8ab --- /dev/null +++ b/src/3rdparty/gradle/CMakeLists.txt @@ -0,0 +1,20 @@ +# special case begin + +install( + FILES + gradlew + gradlew.bat + DESTINATION + src/3rdparty/gradle + COMPONENT + Devel) + +install( + DIRECTORY + gradle + DESTINATION + src/3rdparty/gradle + COMPONENT + Devel) + +# special case end