@@ -478,6 +478,27 @@ endif
478478
479479################################################################################
480480
481+ ifneq ($(filter static-libs-graal-bundles, $(MAKECMDGOALS)), )
482+ STATIC_LIBS_GRAAL_BUNDLE_FILES := $(call FindFiles, $(STATIC_LIBS_GRAAL_IMAGE_DIR))
483+
484+ ifeq ($(OPENJDK_TARGET_OS)-$(DEBUG_LEVEL), macosx-release)
485+ STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_MACOSX_CONTENTS_SUBDIR)/Home
486+ else
487+ STATIC_LIBS_GRAAL_BUNDLE_SUBDIR := $(JDK_BUNDLE_SUBDIR)
488+ endif
489+
490+ $(eval $(call SetupBundleFile, BUILD_STATIC_LIBS_GRAAL_BUNDLE, \
491+ BUNDLE_NAME := $(STATIC_LIBS_GRAAL_BUNDLE_NAME), \
492+ FILES := $(STATIC_LIBS_GRAAL_BUNDLE_FILES), \
493+ BASE_DIRS := $(STATIC_LIBS_GRAAL_IMAGE_DIR), \
494+ SUBDIR := $(STATIC_LIBS_GRAAL_BUNDLE_SUBDIR), \
495+ ))
496+
497+ STATIC_LIBS_GRAAL_TARGETS += $(BUILD_STATIC_LIBS_GRAAL_BUNDLE)
498+ endif
499+
500+ ################################################################################
501+
481502# Hook to include the corresponding custom file, if present.
482503$(eval $(call IncludeCustomExtension, Bundles.gmk))
483504
@@ -490,8 +511,9 @@ docs-jdk-bundles: $(DOCS_JDK_TARGETS)
490511docs-javase-bundles: $(DOCS_JAVASE_TARGETS)
491512docs-reference-bundles: $(DOCS_REFERENCE_TARGETS)
492513static-libs-bundles: $(STATIC_LIBS_TARGETS)
514+ static-libs-graal-bundles: $(STATIC_LIBS_GRAAL_TARGETS)
493515jcov-bundles: $(JCOV_TARGETS)
494516
495517.PHONY: all default product-bundles test-bundles \
496518 docs-jdk-bundles docs-javase-bundles docs-reference-bundles \
497- static-libs-bundles jcov-bundles
519+ static-libs-bundles static-libs-graal-bundles jcov-bundles
0 commit comments