Skip to content

Commit

Permalink
Bundle OpenJCEPlus on Mac/Linux
Browse files Browse the repository at this point in the history
OpenJCEPlus providers are supported on the Mac OS with aarch64
and amd64 architectures. Also on the Linux aarch64. This PR
aims to add aarch64-mac, x86_64-mac and Linux aarch64 to
platforms bundling OpenJCEPlus.

Signed-off-by: Jinhang Zhang <[email protected]>
  • Loading branch information
JinhangZhang committed Dec 4, 2024
1 parent 68a71ab commit 587398e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions closed/make/copy/Copy-openjceplus.gmk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ===========================================================================
# ===========================================================================
# (c) Copyright IBM Corp. 2023, 2024 All Rights Reserved
# ===========================================================================
# This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -33,7 +33,7 @@ ifeq (true,$(BUILD_OPENJCEPLUS))
# Copy OpenJCEPlus native libraries.
$(eval $(call SetupCopyFiles, OPENJCEPLUS_JGSKIT_LIBS_COPY, \
SRC := $(OPENJCEPLUS_TOPDIR)/target, \
FILES := $(filter %.dll %.so %.x, $(call FindFiles, $(OPENJCEPLUS_TOPDIR)/target)), \
FILES := $(filter %.dll %.dylib %.so %.x, $(call FindFiles, $(OPENJCEPLUS_TOPDIR)/target)), \
FLATTEN := true, \
DEST := $(LIB_DST_DIR), \
))
Expand Down
11 changes: 10 additions & 1 deletion closed/make/lib/Lib-openjceplus.gmk
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,22 @@ OPENJCEPLUS_JGSKIT_PLATFORM :=
ifeq ($(call isTargetOs, aix), true)
OPENJCEPLUS_JGSKIT_PLATFORM := ppc-aix64
else ifeq ($(call isTargetOs, linux), true)
ifeq ($(call isTargetCpu, ppc64le), true)
ifeq ($(call isTargetCpu, aarch64), true)
OPENJCEPLUS_JGSKIT_PLATFORM := arm-linux64
else ifeq ($(call isTargetCpu, ppc64le), true)
OPENJCEPLUS_JGSKIT_PLATFORM := ppcle-linux64
else ifeq ($(call isTargetCpu, s390x), true)
OPENJCEPLUS_JGSKIT_PLATFORM := s390-linux64
else ifeq ($(call isTargetCpu, x86_64), true)
OPENJCEPLUS_JGSKIT_PLATFORM := x86-linux64
endif
else ifeq ($(call isTargetOs, macosx), true)
ifeq ($(call isTargetCpu, aarch64), true)
OPENJCEPLUS_JGSKIT_PLATFORM := aarch64-mac
else ifeq ($(call isTargetCpu, x86_64), true)
OPENJCEPLUS_JGSKIT_PLATFORM := x86_64-mac
endif
OPENJCEPLUS_JGSKIT_MAKE := jgskit.mac.mak
else ifeq ($(call isTargetOs, windows), true)
ifeq ($(call isTargetCpu, x86_64), true)
OPENJCEPLUS_JDK := $(call MixedPath,$(OPENJCEPLUS_JDK))
Expand Down

0 comments on commit 587398e

Please sign in to comment.