2023-07-04 12:23:53 +03:00
|
|
|
diff --git a/build.gradle b/build.gradle
|
2023-07-27 11:41:00 +03:00
|
|
|
index 4a0df70..46e6f0c 100644
|
2023-07-04 12:23:53 +03:00
|
|
|
--- a/build.gradle
|
|
|
|
+++ b/build.gradle
|
2023-07-27 11:41:00 +03:00
|
|
|
@@ -10,10 +10,6 @@ repositories {
|
|
|
|
mavenCentral()
|
2023-07-04 12:23:53 +03:00
|
|
|
}
|
|
|
|
|
2023-07-27 11:41:00 +03:00
|
|
|
-dependencies {
|
2023-07-04 12:23:53 +03:00
|
|
|
- rust(project(":reqwest-jni"))
|
2023-07-27 11:41:00 +03:00
|
|
|
-}
|
|
|
|
-
|
2023-07-04 12:23:53 +03:00
|
|
|
// javac -h
|
2023-07-27 11:41:00 +03:00
|
|
|
tasks.register('generateJniHeaders', JavaCompile) {
|
|
|
|
classpath = sourceSets.main.compileClasspath
|
2023-07-03 13:24:45 +03:00
|
|
|
diff --git a/reqwest-jni/build.gradle.kts b/reqwest-jni/build.gradle.kts
|
2023-07-27 11:41:00 +03:00
|
|
|
index 189a81d..1c22153 100644
|
2023-07-03 13:24:45 +03:00
|
|
|
--- a/reqwest-jni/build.gradle.kts
|
|
|
|
+++ b/reqwest-jni/build.gradle.kts
|
2023-07-27 11:41:00 +03:00
|
|
|
@@ -4,8 +4,8 @@ plugins {
|
2023-07-03 13:24:45 +03:00
|
|
|
|
|
|
|
rust {
|
|
|
|
release.set(true)
|
|
|
|
- command.set("cross")
|
|
|
|
+ command.set("cargo")
|
|
|
|
+ cargoInstallTargets.set(true)
|
|
|
|
|
|
|
|
- targets += target("aarch64-unknown-linux-gnu", "libreqwest.so")
|
|
|
|
- targets += target("x86_64-unknown-linux-gnu", "libreqwest.so")
|
|
|
|
+ targets += target("x86_64-unknown-linux-musl", "libreqwest.so")
|
|
|
|
}
|