diff options
author | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-09-15 19:55:35 +0300 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2020-09-17 10:29:16 +0300 |
commit | 615b92008a7e6673bc74ec6e971a6bca5f5c81f6 (patch) | |
tree | 979c259fac6c809330cc4ad9904ba89725dca1a9 /src/3rdparty | |
parent | 8d8b271fe9cd838f2975392ca9856ac19803f0b6 (diff) |
Android: remove --no-daemon arg for Gradle
Allow Gradle builds to run using JVM daemon, this will improve the
current build time noticeably for clean builds and hugely for
incremental builds.
This will bring the Gradle build to comparable speed with a normal
Gradle build in Android Studio.
Task-number: QTBUG-86674
Pick-to: 5.15
Change-Id: Icc4267223802e4c9350b48099236650c023f868d
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'src/3rdparty')
-rw-r--r-- | src/3rdparty/gradle/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/3rdparty/gradle/gradle.pro | 3 | ||||
-rw-r--r-- | src/3rdparty/gradle/gradle.properties | 9 |
3 files changed, 12 insertions, 1 deletions
diff --git a/src/3rdparty/gradle/CMakeLists.txt b/src/3rdparty/gradle/CMakeLists.txt index a6fbfc962a..20c0181403 100644 --- a/src/3rdparty/gradle/CMakeLists.txt +++ b/src/3rdparty/gradle/CMakeLists.txt @@ -6,6 +6,7 @@ qt_copy_or_install( FILES gradlew gradlew.bat + gradle.properties DESTINATION "${destination}" ) diff --git a/src/3rdparty/gradle/gradle.pro b/src/3rdparty/gradle/gradle.pro index 1ff0db2017..5d8efdcfd3 100644 --- a/src/3rdparty/gradle/gradle.pro +++ b/src/3rdparty/gradle/gradle.pro @@ -4,7 +4,8 @@ CONFIG -= qt android_install gradle_files.files = \ $$PWD/gradlew \ - $$PWD/gradlew.bat + $$PWD/gradlew.bat \ + $$PWD/gradle.properties gradle_dirs.files = \ $$PWD/gradle diff --git a/src/3rdparty/gradle/gradle.properties b/src/3rdparty/gradle/gradle.properties new file mode 100644 index 0000000000..554f6aeba1 --- /dev/null +++ b/src/3rdparty/gradle/gradle.properties @@ -0,0 +1,9 @@ +# Project-wide Gradle settings. +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx2048m + +# Enable Gradle caching +org.gradle.caching=true |