annotate make/ExplodedImageOptimize.gmk @ 56349:c4a7cf80a3bd

Merge
author mikael
date Fri, 20 Sep 2019 14:51:02 -0700
parents ecc2bcc3beb0
children
rev   line source
erikj@41171 1 #
erikj@53267 2 # Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved.
erikj@41171 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
erikj@41171 4 #
erikj@41171 5 # This code is free software; you can redistribute it and/or modify it
erikj@41171 6 # under the terms of the GNU General Public License version 2 only, as
erikj@41171 7 # published by the Free Software Foundation. Oracle designates this
erikj@41171 8 # particular file as subject to the "Classpath" exception as provided
erikj@41171 9 # by Oracle in the LICENSE file that accompanied this code.
erikj@41171 10 #
erikj@41171 11 # This code is distributed in the hope that it will be useful, but WITHOUT
erikj@41171 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
erikj@41171 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
erikj@41171 14 # version 2 for more details (a copy is included in the LICENSE file that
erikj@41171 15 # accompanied this code).
erikj@41171 16 #
erikj@41171 17 # You should have received a copy of the GNU General Public License version
erikj@41171 18 # 2 along with this work; if not, write to the Free Software Foundation,
erikj@41171 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
erikj@41171 20 #
erikj@41171 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
erikj@41171 22 # or visit www.oracle.com if you need additional information or have any
erikj@41171 23 # questions.
erikj@41171 24 #
erikj@41171 25
erikj@41171 26 # Runs a tool on the exploded image to improve performance
erikj@41171 27
erikj@41171 28 default: all
erikj@41171 29
erikj@41171 30 include $(SPEC)
erikj@41171 31 include MakeBase.gmk
ihse@54024 32 include Execute.gmk
erikj@47217 33 include $(TOPDIR)/make/ModuleTools.gmk
erikj@41171 34
erikj@41171 35 ################################################################################
erikj@41171 36
erikj@53267 37 ALL_MODULEINFO_CLASSES := $(wildcard $(JDK_OUTPUTDIR)/modules/*/module-info.class)
erikj@41171 38
ihse@54024 39 $(eval $(call SetupExecute, optimize_image, \
erikj@55326 40 WARN := Optimizing the exploded image, \
ihse@54024 41 DEPS := $(ALL_MODULEINFO_CLASSES) $(BUILD_JIGSAW_CLASSES), \
ihse@54024 42 OUTPUT_DIR := $(JDK_OUTPUTDIR), \
ihse@54024 43 COMMAND := $(TOOL_ADD_PACKAGES_ATTRIBUTE) $(JDK_OUTPUTDIR), \
ihse@54024 44 ))
erikj@41171 45
ihse@54024 46 TARGETS := $(optimize_image_TARGET)
erikj@41171 47
erikj@41171 48 ################################################################################
erikj@41171 49
erikj@41171 50 all: $(TARGETS)
erikj@41171 51
erikj@41171 52 .PHONY: all default