File tree 3 files changed +28
-1
lines changed
3 files changed +28
-1
lines changed Original file line number Diff line number Diff line change 32
32
<artifactId >jna</artifactId >
33
33
<version >${jna.version} </version >
34
34
</dependency >
35
+ <dependency >
36
+ <groupId >net.java.dev.jna</groupId >
37
+ <artifactId >android-arm</artifactId >
38
+ <version >${jna.version} </version >
39
+ </dependency >
35
40
<dependency >
36
41
<groupId >junit</groupId >
37
42
<artifactId >junit</artifactId >
68
73
<target >1.7</target >
69
74
</configuration >
70
75
</plugin >
76
+ <plugin >
77
+ <groupId >org.apache.maven.plugins</groupId >
78
+ <artifactId >maven-dependency-plugin</artifactId >
79
+ <executions >
80
+ <execution >
81
+ <id >resource-dependencies</id >
82
+ <phase >process-sources</phase >
83
+ <goals >
84
+ <goal >unpack-dependencies</goal >
85
+ </goals >
86
+ <configuration >
87
+ <includeArtifactIds >android-arm</includeArtifactIds >
88
+ <includes >libjnidispatch.so</includes >
89
+ <outputDirectory >libs/armeabi</outputDirectory >
90
+ </configuration >
91
+ </execution >
92
+ </executions >
93
+ </plugin >
71
94
</plugins >
72
95
<pluginManagement >
73
96
<plugins >
Original file line number Diff line number Diff line change @@ -28,14 +28,18 @@ cd android-toolchain
28
28
ANDROID_TOOLCHAIN_DIR=` pwd`
29
29
echo Android toolchain set in $ANDROID_TOOLCHAIN_DIR
30
30
31
+ # Install the jar containing the jna native library for Android (taken from https://github.com/java-native-access/jna/tree/master/lib/native)
32
+ echo " Installing jar android-arm.jar in the local Maven... This jar is not provided in the Maven Central, rather by the project's GitHub repo."
33
+ mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=${BASEDIR} /rust-build/libs/android-arm.jar -DgroupId=net.java.dev.jna -DartifactId=android-arm -Dversion=4.4.0 -Dpackaging=jar
34
+
31
35
# Go to the .cargo directory
32
36
cd $BASEDIR /rust
33
37
mkdir .cargo
34
38
cd .cargo
35
39
CURR_DIR=` pwd`
36
40
echo Entered directory $CURR_DIR
37
41
38
- # Create a config file
42
+ # Create a config file
39
43
cat > config << EOF
40
44
[target]
41
45
[target.arm-linux-androideabi]
You can’t perform that action at this time.
0 commit comments