jdk/make/common/Release-embedded.gmk
author vladidan
Tue, 06 Dec 2011 16:35:04 -0500
changeset 11186 b8188fb31366
parent 9756 607572fae72f
child 11665 98dad53a8ba1
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     1
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     2
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     4
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    10
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    15
# accompanied this code).
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    16
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    20
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    23
# questions.
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    24
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    25
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    26
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    27
# SE-Embedded Reduced JRE targets
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    28
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    29
ifdef JAVASE_EMBEDDED
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    30
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    31
reduced-image-jre reduced-headless-image-jre ::
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    32
	@$(ECHO) ">>>Making "$@" @ `$(DATE)` ..."
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    33
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    34
# Add the reduced-jre images as pre-reqs. These will be processed last
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    35
images:: reduced-image-jre reduced-headless-image-jre
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    36
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    37
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    38
######################################################
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    39
# Create the headless rt.jar
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    40
######################################################
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    41
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    42
NOT_HEADLESS_RT_JAR_LIST = $(ABS_TEMPDIR)/not_hl_rt_jar.list
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    43
HEADLESS_RT_JAR_FILELIST=$(JARFILELISTS_TEMPDIR)/hl_rt_jar_list
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    44
TOTAL_HEADLESS_JAR_FILELIST=$(REORDER_TEMPDIR)/hl_file_list
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    45
HEADLESS_CLASSLIST=$(ABS_TEMPDIR)/headless_classlist
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    46
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    47
# Add the jar file directories that we don't want in the
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    48
# headless JRE.  If you want to remove most classes in a
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    49
# directory, put the directory in the NOT_HEADLESS_RT_JAR_LIST
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    50
# and put the individual classes you want to keep in the 
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    51
# HEADLESS_CLASSLIST file. 
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    52
$(NOT_HEADLESS_RT_JAR_LIST): $(NOT_RT_JAR_LIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    53
	$(RM) $(HEADLESS_CLASSLIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    54
	$(RM) $(NOT_HEADLESS_RT_JAR_LIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    55
	$(CP) $(NOT_RT_JAR_LIST) $(NOT_HEADLESS_RT_JAR_LIST)
9756
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    56
# List all the packages to be excluded
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    57
	$(ECHO) "sun/awt/motif/" >> $@
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    58
	$(ECHO) "sun/awt/X11/" >> $@
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    59
	$(ECHO) "sun/applet/" >> $@
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    60
	$(ECHO) "sun/java2d/opengl/" >> $@
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    61
	$(ECHO) "com/sun/java/swing/plaf/" >> $@
9756
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    62
# List all the individual classes to be included
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    63
	$(ECHO) "sun/awt/motif/MFontConfiguration.class" >$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    64
	$(ECHO) "sun/applet/AppContextCreator.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    65
	$(ECHO) "sun/applet/AppletAudioClip.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    66
	$(ECHO) "sun/java2d/opengl/GLXSurfaceData.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    67
	$(ECHO) "sun/java2d/opengl/GLXSurfaceData"\$$"GLXOffScreenSurfaceData.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    68
	$(ECHO) "sun/java2d/opengl/GLXVolatileSurfaceManager.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    69
	$(ECHO) "sun/java2d/opengl/OGLSurfaceData.class" >>$(HEADLESS_CLASSLIST)
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    70
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    71
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    72
$(TOTAL_HEADLESS_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_HEADLESS_RT_JAR_LIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    73
	$(prep-target)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    74
	$(RM) $@.temp
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    75
	$(CD) $(CLASSBINDIR) ; \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    76
		$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \
9756
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    77
		-o  $@.temp - $(NOT_HEADLESS_RT_JAR_LIST)  .
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    78
# Add on the explicitly included class files from the otherwise excluded packages
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
    79
	$(CAT) $(HEADLESS_CLASSLIST) >> $@.temp
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    80
	$(MV) $@.temp $@
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    81
	@$(CD) $(CLASSBINDIR); $(java-vm-cleanup)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    82
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    83
# Create the headless rt.jar file list & non-class files list
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    84
MakeHeadlessJarFileList: $(TOTAL_HEADLESS_JAR_FILELIST) $(JARSPLIT_JARFILE)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    85
	@$(RM) $(HEADLESS_RT_JAR_FILELIST) $(RES_JAR_FILELIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    86
	$(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) $(TOTAL_HEADLESS_JAR_FILELIST) \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    87
		-o  $(HEADLESS_RT_JAR_FILELIST) $(RES_JAR_FILELIST)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    88
	@$(java-vm-cleanup)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    89
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    90
# Create headless rt.jar
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    91
HL_RT_JAR=$(ABS_TEMPDIR)/rt-hl-orig.jar
9351
d51c071707da 6595663: Manifest on jars contain JavaBeans entries
ohair
parents: 9010
diff changeset
    92
$(HL_RT_JAR): MakeHeadlessJarFileList $(RT_JAR_MANIFEST_FILE)
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    93
	$(prep-target)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    94
	$(CD) $(CLASSBINDIR) ; \
9351
d51c071707da 6595663: Manifest on jars contain JavaBeans entries
ohair
parents: 9010
diff changeset
    95
		$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(RT_JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    96
		 $(JAR_JFLAGS)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    97
	@$(CD) $(CLASSBINDIR); $(java-vm-cleanup)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    98
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
    99
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   100
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   101
# Produce a reduced Headful JRE for Embedded Devices
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   102
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   103
# The deployment binaries are added during the deployment build process
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   104
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   105
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   106
# Binaries that don't get included in reduced jre image bin directory
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   107
NOT_REDUCEDJRE_BIN = \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   108
 java_vm \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   109
 kinit \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   110
 klist \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   111
 ktab \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   112
 orbd \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   113
 policytool \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   114
 rmid \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   115
 rmiregistry \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   116
 servertool \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   117
 tnameserv \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   118
 pack200 \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   119
 unpack200
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   120
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   121
# jars/resources/libs that don't get included in reduced jre image lib directory
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   122
NOT_REDUCEDJRE_LIB = \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   123
 charsets.jar \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   124
 ext/dnsns.jar \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   125
 ext/localedata.jar \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   126
 $(LIBARCH)/client/classes.jsa \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   127
 $(LIBARCH)/libjavaplugin_jni.so \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   128
 $(LIBARCH)/libjavaplugin_nscp_gcc29.so \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   129
 $(LIBARCH)/libjavaplugin_nscp.so \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   130
 $(LIBARCH)/libjavaplugin_oji.so
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   131
9756
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   132
# JRE docs that don't get included in reduced jre image top directory
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   133
NOT_REDUCEDJRE_DOC = \
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   134
 Welcome.html
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   135
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   136
reduced-image-jre::
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   137
	@$(ECHO) Starting to Produce Reduced JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   138
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   139
	@# First make a copy of the full JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   140
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   141
	$(RM) -r $(JRE_REDUCED_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   142
	$(MKDIR) -p $(JRE_REDUCED_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   143
	$(CD) $(JRE_IMAGE_DIR); \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   144
	    $(TAR) cf - . | ($(CD) $(JRE_REDUCED_IMAGE_DIR); $(TAR) xf - ); 
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   145
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   146
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   147
	@# Remove all of the files that are not needed for the
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   148
	@# reduced JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   149
	@#
9010
4c635f6cdfb1 7031929: Variable names typos in Release-embedded.gmk
dholmes
parents: 8993
diff changeset
   150
	for l in $(NOT_REDUCEDJRE_BIN) ; do \
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   151
	    $(RM) $(JRE_REDUCED_IMAGE_DIR)/bin/$$l ; \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   152
	done
9010
4c635f6cdfb1 7031929: Variable names typos in Release-embedded.gmk
dholmes
parents: 8993
diff changeset
   153
	for l in $(NOT_REDUCEDJRE_LIB) ; do \
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   154
	    $(RM) $(JRE_REDUCED_IMAGE_DIR)/lib/$$l ; \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   155
	done
9756
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   156
	for l in $(NOT_REDUCEDJRE_DOC) ; do \
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   157
	    $(RM) $(JRE_REDUCED_IMAGE_DIR)/$$l ; \
607572fae72f 7024120: Verify reduced JRE contents for java 7
dholmes
parents: 9351
diff changeset
   158
	done
8993
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   159
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   160
	@# Remove misc. other files
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   161
	$(RM) -r $(JRE_REDUCED_IMAGE_DIR)/man
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   162
	$(RM) -f $(JRE_REDUCED_IMAGE_DIR)/CHANGES
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   163
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   164
	@$(ECHO) Done Creating Reduced JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   165
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   166
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   167
# Produce a reduced Headless JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   168
#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   169
reduced-headless-image-jre:: $(RT_JAR) $(RESOURCES_JAR) $(BUILD_META_INDEX) $(HL_RT_JAR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   170
	@$(ECHO) Starting to Produce Reduced Headless JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   171
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   172
	@# First make a copy of the reduced JRE we just built
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   173
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   174
	$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   175
	$(MKDIR) -p $(JRE_REDUCED_HEADLESS_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   176
	$(CD) $(JRE_REDUCED_IMAGE_DIR); \
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   177
	    $(TAR) cf - . | ($(CD) $(JRE_REDUCED_HEADLESS_IMAGE_DIR); $(TAR) xf - ); 
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   178
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   179
	@# Replace the full rt.jar with the headless rt.jar
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   180
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/rt.jar
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   181
	$(CP) $(HL_RT_JAR) $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/rt.jar
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   182
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   183
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   184
	@# Remove all of the files that are not needed for the
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   185
	@# reduced Headless JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   186
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   187
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/gtkhelper
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   188
	$(RM)  $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/libjsoundalsa.so
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   189
	$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/audio
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   190
	$(RM) -fr $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/applet
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   191
	$(RM)  $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/awt_robot
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   192
	$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/xawt
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   193
	$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/libsplashscreen.so
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   194
	@# Remove oblique fonts and reduce font support to LucidaSansRegular only
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   195
	$(RM) -fr $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/oblique-fonts
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   196
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaBrightDemiBold.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   197
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaBrightDemiItalic.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   198
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaBrightItalic.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   199
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaBrightRegular.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   200
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaSansDemiBold.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   201
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaTypewriterBold.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   202
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/LucidaTypewriterRegular.ttf
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   203
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   204
ifeq ($(PLATFORM), linux)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   205
# put out minimal fonts.dir file for the remaining font
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   206
	$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   207
	$(ECHO) 6>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   208
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   209
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-2">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   210
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-4">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   211
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-5">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   212
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-7">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   213
	$(ECHO) "LucidaSansRegular.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-9">>$(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/fonts/fonts.dir
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   214
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   215
endif # Linux
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   216
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   217
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   218
	@# all done with JRE reduced headless image
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   219
	@#
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   220
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   221
	@$(ECHO) Done Creating Reduced Headless JRE
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   222
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   223
images-clobber::
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   224
	$(RM) -r $(JRE_REDUCED_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   225
	$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   226
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   227
.PHONY: reduced-image-jre reduced-headless-image-jre 
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   228
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   229
endif # JAVASE_EMBEDDED
9076d969ffdf 7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff changeset
   230