forked from ibmruntimes/openj9-openjdk-jdk11
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate OpenJCEPlus into Semeru OpenJDK module openjceplus
Signed-off-by: Tao Liu <[email protected]> Integrate the building of OpenJCEPlus with Semeru OpenJDK as a module “openjceplus”. The java codes will be built with Semeru OpenJDK as a jmod, and the native codes will be built as a “.so” or ".dll" library.
- Loading branch information
Showing
13 changed files
with
294 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# =========================================================================== | ||
# (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved | ||
# =========================================================================== | ||
# This code is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 only, as | ||
# published by the Free Software Foundation. | ||
# | ||
# IBM designates this particular file as subject to the "Classpath" exception | ||
# as provided by IBM in the LICENSE file that accompanied this code. | ||
# | ||
# This code is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# version 2 for more details (a copy is included in the LICENSE file that | ||
# accompanied this code). | ||
# | ||
# You should have received a copy of the GNU General Public License version | ||
# 2 along with this work; if not, see <http://www.gnu.org/licenses/>. | ||
# =========================================================================== | ||
|
||
include $(TOPDIR)/closed/CopySupport.gmk | ||
|
||
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)), \ | ||
FLATTEN := true, \ | ||
DEST := $(LIB_DST_DIR), \ | ||
)) | ||
|
||
TARGETS += $(OPENJCEPLUS_JGSKIT_LIBS_COPY) | ||
|
||
# Bundle GSKIT library. | ||
OPENJCEPLUS_OCK_DIR := $(TOPDIR)/OpenJCEPlus/ock/jgsk_sdk/lib64 | ||
ifeq ($(call isTargetOs, windows), true) | ||
OPENJCEPLUS_OCK_SUB_DIR := modules_cmds | ||
else | ||
OPENJCEPLUS_OCK_SUB_DIR := modules_libs | ||
endif | ||
|
||
$(eval $(call SetupCopyFiles, OPENJCEPLUS_OCK_COPY, \ | ||
SRC := $(OPENJCEPLUS_OCK_DIR), \ | ||
DEST := $(SUPPORT_OUTPUTDIR)/$(OPENJCEPLUS_OCK_SUB_DIR)/$(MODULE), \ | ||
FILES := $(call FindFiles, $(OPENJCEPLUS_OCK_DIR)), \ | ||
)) | ||
|
||
TARGETS += $(OPENJCEPLUS_OCK_COPY) | ||
endif # BUILD_OPENJCEPLUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# =========================================================================== | ||
# (c) Copyright IBM Corp. 2023, 2023 All Rights Reserved | ||
# =========================================================================== | ||
# This code is free software; you can redistribute it and/or modify it | ||
# under the terms of the GNU General Public License version 2 only, as | ||
# published by the Free Software Foundation. | ||
# | ||
# IBM designates this particular file as subject to the "Classpath" exception | ||
# as provided by IBM in the LICENSE file that accompanied this code. | ||
# | ||
# This code is distributed in the hope that it will be useful, but WITHOUT | ||
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
# version 2 for more details (a copy is included in the LICENSE file that | ||
# accompanied this code). | ||
# | ||
# You should have received a copy of the GNU General Public License version | ||
# 2 along with this work; if not, see <http://www.gnu.org/licenses/>. | ||
# =========================================================================== | ||
|
||
include LibCommon.gmk | ||
|
||
ifeq (true,$(BUILD_OPENJCEPLUS)) | ||
|
||
# Identify the desired JGSKIT target platform. | ||
GSKIT_HOME := $(OPENJCEPLUS_TOPDIR)/ock/jgsk_sdk | ||
JGSKIT_PLATFORM := | ||
JGSKIT_MAKE := jgskit.mak | ||
JGSKIT_MAKE_PATH := $(OPENJCEPLUS_TOPDIR)/src/main/native | ||
JCE_CLASSPATH := $(JDK_OUTPUTDIR)/modules/openjceplus:$(JDK_OUTPUTDIR)/modules/java.base | ||
|
||
ifeq ($(call isTargetOs, aix), true) | ||
JGSKIT_PLATFORM := ppc-aix64 | ||
else ifeq ($(call isTargetOs, linux), true) | ||
ifeq ($(call isTargetCpu, ppc64le), true) | ||
JGSKIT_PLATFORM := ppcle-linux64 | ||
else ifeq ($(call isTargetCpu, x86_64), true) | ||
JGSKIT_PLATFORM := x86-linux64 | ||
endif | ||
else ifeq ($(call isTargetOs, windows), true) | ||
ifeq ($(call isTargetCpu, x86_64), true) | ||
JGSKIT_PLATFORM := win64 | ||
JGSKIT_MAKE := jgskit.win64.mak | ||
JCE_CLASSPATH := "$(call MixedPath,$(OPENJCEPLUS_TOPDIR)/src/main/java)\;$(call MixedPath,$(TOPDIR)/src/java.base/share/classes)" | ||
GSKIT_HOME := $(call MixedPath,$(GSKIT_HOME)) | ||
BOOT_JDK := $(call MixedPath,$(BOOT_JDK)) | ||
endif | ||
endif | ||
|
||
ifeq (,$(JGSKIT_PLATFORM)) | ||
$(error Unsupported platform $(OPENJDK_TARGET_OS)-$(OPENJDK_TARGET_CPU)) | ||
endif # JGSKIT_PLATFORM | ||
|
||
.PHONY : compile-libs | ||
|
||
compile-libs : | ||
@$(ECHO) Compiling OpenJCEPlus native | ||
export \ | ||
GSKIT_HOME=$(GSKIT_HOME) \ | ||
JAVA_HOME=$(BOOT_JDK) \ | ||
JCE_CLASSPATH=$(JCE_CLASSPATH) \ | ||
PLATFORM=$(JGSKIT_PLATFORM) \ | ||
&& $(MAKE) -j1 -C $(JGSKIT_MAKE_PATH) -f $(JGSKIT_MAKE) all | ||
@$(ECHO) OpenJCEplus compile complete | ||
|
||
TARGETS += compile-libs | ||
|
||
endif # BUILD_OPENJCEPLUS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.