From 9b1d25aa227d150bee7c8ecf6a1982ef053c70fd Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 17 Jun 2019 18:54:33 -0400 Subject: [PATCH] Allow multiple architecture native builds HawtJNI's description of platform is insufficient to distinguish between multiple architectures of the same operating system, such as Linux/amd64 and Linux/aarch64. Renaming and relocating these resources is necessary to create jars which will cover all available OS/arch combinations. --- pom.xml | 11 +++++++---- readme.md | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 0983f01..d332c77 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ org.fusesource.jansi - jansi-${platform} + jansi-${platformId} 1.9-SNAPSHOT ${project.artifactId} @@ -36,7 +36,7 @@ UTF-8 1.5 1.16 - native + native http://fusesource.github.io/${forge-project-id} @@ -123,7 +123,7 @@ - org.fusesource.jansi.${platform} + org.fusesource.jansi.${platformId} @@ -262,6 +262,9 @@ platform + + ${platform}-${arch} + @@ -278,7 +281,7 @@ package-source - ${platform} + ${platform}/${arch} jansi false false diff --git a/readme.md b/readme.md index 027eab8..c30a435 100644 --- a/readme.md +++ b/readme.md @@ -28,8 +28,9 @@ Project Links Building -------- -To build, just run `mvn -Dplatform=${platform} package` where `${platform}` may be `windows32`, `windows64`, -`osx`, `linux32`, `linux64`, `freebsd32`, `freebsd64` or any other platform of your choice. +To build, just run `mvn -Dplatform=${platform} -Darch=${arch} package` where `${platform}` may be `windows32`, `windows64`, +`osx`, `linux32`, `linux64`, `freebsd32`, `freebsd64` or any other platform of your choice, +and `${arch}` is the Java `os.name` for the target architecture, such as `i386` or `amd64`. Jansi native uses [HawtJNI](http://fusesource.github.io/hawtjni/) to ease JNI management. See [Platform Build Tools Requirements](http://fusesource.github.io/hawtjni/documentation/developer-guide.html#Platform_Build_Tools_Requirements)