diff options
author | Daniel Lublin <daniel@lublin.se> | 2022-02-19 19:00:57 +0300 |
---|---|---|
committer | Daniel Lublin <daniel@lublin.se> | 2022-02-19 19:01:09 +0300 |
commit | 93a11856b10bf8af0f54b735f3f138b2271a11b3 (patch) | |
tree | 2974ca42922bf965da28b66a13e629d9028b903c | |
parent | 6cbb3458e7cd2b02416f500b4650a2e78f269336 (diff) |
Try to make it buildbuildit
-rw-r--r-- | build.gradle | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle index 90d9d49..23aab6b 100644 --- a/build.gradle +++ b/build.gradle @@ -15,19 +15,21 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform + buildscript { repositories { - jcenter() + mavenCentral() google() } dependencies { - classpath 'com.android.tools.build:gradle:3.5.3' + classpath 'com.android.tools.build:gradle:7.0.4' } } apply plugin: 'com.android.library' repositories { - jcenter() + mavenCentral() google() } @@ -56,7 +58,8 @@ allprojects { android { compileSdkVersion 29 - buildToolsVersion '29.0.3' + //ndkVersion '23.1.7779620' + //buildToolsVersion '29.0.3' sourceSets.main.jniLibs.srcDir 'src/main/libs/' sourceSets.main.jni.srcDirs = [] // Disable NDK build support until it supports multiple modules. @@ -76,7 +79,11 @@ android { // Trigger NDK build on java compilation task. task ndkBuild(type: Exec) { - commandLine "$project.android.ndkDirectory/ndk-build", '-C', file('src/main/jni/').absolutePath + def ndkExe = "$project.android.ndkDirectory/ndk-build" + if (DefaultNativePlatform.getCurrentOperatingSystem().isWindows()) { + ndkExe += '.cmd' + } + commandLine ndkExe, '-C', file('src/main/jni/').absolutePath } tasks.withType(JavaCompile) { |