From 0ad701cdd7e1ced585e16087aadbaea929934a5f Mon Sep 17 00:00:00 2001 From: Kostas Tsiounis Date: Tue, 27 Aug 2024 11:36:05 -0400 Subject: [PATCH] Avoid rebuilding native code headers for OpenJCEPlus Some OpenJCEPlus headers are already compiled as part of a previous target, so there is no reason to recompile them. Instead a different makefile target is utilized to skip this step. Signed-off-by: Kostas Tsiounis --- closed/make/modules/openjceplus/Lib.gmk | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/closed/make/modules/openjceplus/Lib.gmk b/closed/make/modules/openjceplus/Lib.gmk index aa11aef0fcb..022b59ec8cf 100644 --- a/closed/make/modules/openjceplus/Lib.gmk +++ b/closed/make/modules/openjceplus/Lib.gmk @@ -23,8 +23,9 @@ include LibCommon.gmk ifeq (true,$(BUILD_OPENJCEPLUS)) # Identify the desired JGSKIT target platform. -OPENJCEPLUS_BOOT_JDK := $(BOOT_JDK) +OPENJCEPLUS_JDK := $(JDK_OUTPUTDIR) OPENJCEPLUS_GSKIT_HOME := $(OPENJCEPLUS_TOPDIR)/ock/jgsk_sdk +OPENJCEPLUS_HEADER_FILES := $(SUPPORT_OUTPUTDIR)/headers/openjceplus OPENJCEPLUS_JCE_CLASSPATH := $(JDK_OUTPUTDIR)/modules/openjceplus:$(JDK_OUTPUTDIR)/modules/java.base OPENJCEPLUS_JGSKIT_MAKE := jgskit.mak OPENJCEPLUS_JGSKIT_MAKE_PATH := $(OPENJCEPLUS_TOPDIR)/src/main/native @@ -43,8 +44,9 @@ else ifeq ($(call isTargetOs, linux), true) endif else ifeq ($(call isTargetOs, windows), true) ifeq ($(call isTargetCpu, x86_64), true) - OPENJCEPLUS_BOOT_JDK := $(call MixedPath,$(OPENJCEPLUS_BOOT_JDK)) + OPENJCEPLUS_JDK := $(call MixedPath,$(OPENJCEPLUS_JDK)) OPENJCEPLUS_GSKIT_HOME := $(call MixedPath,$(OPENJCEPLUS_GSKIT_HOME)) + OPENJCEPLUS_HEADER_FILES := $(call MixedPath,$(SUPPORT_OUTPUTDIR)/headers/openjceplus) OPENJCEPLUS_JCE_CLASSPATH := "$(call MixedPath,$(JDK_OUTPUTDIR)/modules/openjceplus)\;$(call MixedPath,$(JDK_OUTPUTDIR)/modules/java.base)" OPENJCEPLUS_JGSKIT_MAKE := jgskit.win64.mak OPENJCEPLUS_JGSKIT_PLATFORM := win64 @@ -63,10 +65,14 @@ compile-libs : export \ $(OPENJCEPLUS_VS_LIB) \ GSKIT_HOME=$(OPENJCEPLUS_GSKIT_HOME) \ - JAVA_HOME=$(OPENJCEPLUS_BOOT_JDK) \ + JAVA_HOME=$(OPENJCEPLUS_JDK) \ JCE_CLASSPATH=$(OPENJCEPLUS_JCE_CLASSPATH) \ PLATFORM=$(OPENJCEPLUS_JGSKIT_PLATFORM) \ - && $(MAKE) -j1 -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) -f $(OPENJCEPLUS_JGSKIT_MAKE) all + && $(MAKE) \ + -C $(OPENJCEPLUS_JGSKIT_MAKE_PATH) \ + -f $(OPENJCEPLUS_JGSKIT_MAKE) \ + OPENJCEPLUS_HEADER_FILES=$(OPENJCEPLUS_HEADER_FILES) \ + noheaders @$(ECHO) OpenJCEplus compile complete TARGETS += compile-libs