author | ogino |
Tue, 26 Apr 2011 21:46:20 -0700 | |
changeset 9367 | 7ed49dc79ebc |
parent 9010 | 4c635f6cdfb1 |
child 9351 | d51c071707da |
permissions | -rw-r--r-- |
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) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
56 |
$(ECHO) "sun/awt/motif/" >> $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
57 |
$(ECHO) "sun/awt/X11/" >> $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
58 |
$(ECHO) "sun/applet/" >> $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
59 |
$(ECHO) "sun/java2d/opengl/" >> $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
60 |
$(ECHO) "com/sun/java/swing/plaf/" >> $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
61 |
$(ECHO) "sun/awt/motif/MFontConfiguration" >$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
62 |
$(ECHO) "sun/applet/AppContextCreator" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
63 |
$(ECHO) "sun/applet/AppletAudioClip" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
64 |
$(ECHO) "sun/java2d/opengl/GLXSurfaceData" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
65 |
$(ECHO) "sun/java2d/opengl/GLXSurfaceData"\$$"GLXOffScreenSurfaceData" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
66 |
$(ECHO) "sun/java2d/opengl/GLXVolatileSurfaceManager" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
67 |
$(ECHO) "sun/java2d/opengl/OGLSurfaceData" >>$(HEADLESS_CLASSLIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
68 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
69 |
$(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
|
70 |
$(prep-target) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
71 |
$(RM) $@.temp |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
72 |
$(CD) $(CLASSBINDIR) ; \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
73 |
$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
74 |
-o $@.temp $(HEADLESS_CLASSLIST) $(NOT_HEADLESS_RT_JAR_LIST) . |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
75 |
$(MV) $@.temp $@ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
76 |
@$(CD) $(CLASSBINDIR); $(java-vm-cleanup) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
77 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
78 |
# 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
|
79 |
MakeHeadlessJarFileList: $(TOTAL_HEADLESS_JAR_FILELIST) $(JARSPLIT_JARFILE) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
80 |
@$(RM) $(HEADLESS_RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
81 |
$(BOOT_JAVA_CMD) -jar $(JARSPLIT_JARFILE) $(TOTAL_HEADLESS_JAR_FILELIST) \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
82 |
-o $(HEADLESS_RT_JAR_FILELIST) $(RES_JAR_FILELIST) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
83 |
@$(java-vm-cleanup) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
84 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
85 |
# Create headless rt.jar |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
86 |
HL_RT_JAR=$(ABS_TEMPDIR)/rt-hl-orig.jar |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
87 |
$(HL_RT_JAR): MakeHeadlessJarFileList $(JAR_MANIFEST_FILE) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
88 |
$(prep-target) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
89 |
$(CD) $(CLASSBINDIR) ; \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
90 |
$(BOOT_JAR_CMD) $(CREATE_JAR_OPTS) $(JAR_MANIFEST_FILE) $@ @$(HEADLESS_RT_JAR_FILELIST) \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
91 |
$(JAR_JFLAGS) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
92 |
@$(CD) $(CLASSBINDIR); $(java-vm-cleanup) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
93 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
94 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
95 |
# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
96 |
# Produce a reduced Headful JRE for Embedded Devices |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
97 |
# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
98 |
# The deployment binaries are added during the deployment build process |
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 |
# 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
|
102 |
NOT_REDUCEDJRE_BIN = \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
103 |
java_vm \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
104 |
kinit \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
105 |
klist \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
106 |
ktab \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
107 |
orbd \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
108 |
policytool \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
109 |
rmid \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
110 |
rmiregistry \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
111 |
servertool \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
112 |
tnameserv \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
113 |
pack200 \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
114 |
unpack200 |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
115 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
116 |
# 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
|
117 |
NOT_REDUCEDJRE_LIB = \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
118 |
charsets.jar \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
119 |
ext/dnsns.jar \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
120 |
ext/localedata.jar \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
121 |
$(LIBARCH)/client/classes.jsa \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
122 |
$(LIBARCH)/libjavaplugin_jni.so \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
123 |
$(LIBARCH)/libjavaplugin_nscp_gcc29.so \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
124 |
$(LIBARCH)/libjavaplugin_nscp.so \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
125 |
$(LIBARCH)/libjavaplugin_oji.so |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
126 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
127 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
128 |
ifeq ($(PLATFORM), linux) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
129 |
STRIP_OPTS = --strip-unneeded |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
130 |
else |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
131 |
STRIP_OPTS = -x |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
132 |
endif |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
133 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
134 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
135 |
reduced-image-jre:: |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
136 |
@$(ECHO) Starting to Produce Reduced JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
137 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
138 |
@# First make a copy of the full JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
139 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
140 |
$(RM) -r $(JRE_REDUCED_IMAGE_DIR) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
141 |
$(MKDIR) -p $(JRE_REDUCED_IMAGE_DIR) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
142 |
$(CD) $(JRE_IMAGE_DIR); \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
143 |
$(TAR) cf - . | ($(CD) $(JRE_REDUCED_IMAGE_DIR); $(TAR) xf - ); |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
144 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
145 |
@# strip the main .so files |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
146 |
$(STRIP) $(STRIP_OPTS) $(JRE_REDUCED_IMAGE_DIR)/lib/$(LIBARCH)/client/libjvm.so |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
147 |
ifndef BUILD_CLIENT_ONLY |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
148 |
$(STRIP) $(STRIP_OPTS) $(JRE_REDUCED_IMAGE_DIR)/lib/$(LIBARCH)/server/libjvm.so |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
149 |
endif |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
150 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
151 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
152 |
@# 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
|
153 |
@# reduced JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
154 |
@# |
9010
4c635f6cdfb1
7031929: Variable names typos in Release-embedded.gmk
dholmes
parents:
8993
diff
changeset
|
155 |
for l in $(NOT_REDUCEDJRE_BIN) ; do \ |
8993
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
156 |
$(RM) $(JRE_REDUCED_IMAGE_DIR)/bin/$$l ; \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
157 |
done |
9010
4c635f6cdfb1
7031929: Variable names typos in Release-embedded.gmk
dholmes
parents:
8993
diff
changeset
|
158 |
for l in $(NOT_REDUCEDJRE_LIB) ; do \ |
8993
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
159 |
$(RM) $(JRE_REDUCED_IMAGE_DIR)/lib/$$l ; \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
160 |
done |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
161 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
162 |
@# Remove misc. other files |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
163 |
$(RM) -r $(JRE_REDUCED_IMAGE_DIR)/man |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
164 |
$(RM) -f $(JRE_REDUCED_IMAGE_DIR)/CHANGES |
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 |
@$(ECHO) Done Creating Reduced JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
167 |
|
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 |
# Produce a reduced Headless JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
170 |
# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
171 |
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
|
172 |
@$(ECHO) Starting to Produce Reduced Headless JRE |
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 |
@# 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
|
175 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
176 |
$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
177 |
$(MKDIR) -p $(JRE_REDUCED_HEADLESS_IMAGE_DIR) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
178 |
$(CD) $(JRE_REDUCED_IMAGE_DIR); \ |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
179 |
$(TAR) cf - . | ($(CD) $(JRE_REDUCED_HEADLESS_IMAGE_DIR); $(TAR) xf - ); |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
180 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
181 |
@# Replace the full rt.jar with the headless rt.jar |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
182 |
$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/rt.jar |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
183 |
$(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
|
184 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
185 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
186 |
@# 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
|
187 |
@# reduced Headless JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
188 |
@# |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
189 |
$(RM) -f $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/gtkhelper |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
190 |
$(RM) $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/libjsoundalsa.so |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
191 |
$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/audio |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
192 |
$(RM) -fr $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/applet |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
193 |
$(RM) $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/awt_robot |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
194 |
$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/$(LIBARCH)/xawt |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
195 |
$(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
|
196 |
@# Remove oblique fonts and reduce font support to LucidaSansRegular only |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
197 |
$(RM) -fr $(JRE_REDUCED_HEADLESS_IMAGE_DIR)/lib/oblique-fonts |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
198 |
$(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
|
199 |
$(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
|
200 |
$(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
|
201 |
$(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
|
202 |
$(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
|
203 |
$(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
|
204 |
$(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
|
205 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
206 |
ifeq ($(PLATFORM), linux) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
207 |
# put out minimal fonts.dir file for the remaining font |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
208 |
$(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
|
209 |
$(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
|
210 |
$(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
|
211 |
$(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
|
212 |
$(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
|
213 |
$(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
|
214 |
$(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
|
215 |
$(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
|
216 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
217 |
endif # Linux |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
218 |
|
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 |
@# all done with JRE reduced headless image |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
221 |
@# |
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 |
@$(ECHO) Done Creating Reduced Headless JRE |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
224 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
225 |
images-clobber:: |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
226 |
$(RM) -r $(JRE_REDUCED_IMAGE_DIR) |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
227 |
$(RM) -r $(JRE_REDUCED_HEADLESS_IMAGE_DIR) |
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 |
.PHONY: reduced-image-jre reduced-headless-image-jre |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
230 |
|
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
231 |
endif # JAVASE_EMBEDDED |
9076d969ffdf
7025066: Build systems changes to support SE Embedded Integration
dholmes
parents:
diff
changeset
|
232 |