jdk/makefiles/CreateJars.gmk
author neliasso
Thu, 04 Apr 2013 09:18:47 +0200
changeset 16626 b58a6213631c
parent 16507 75bde2ca0061
child 16852 60207b2b4b42
child 21383 4f8c158eb4c2
permissions -rw-r--r--
8006008: Memory leak in hotspot/src/share/vm/adlc/archDesc.cpp Reviewed-by: roland, kvn Contributed-by: niclas.adlertz@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
     2
# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     4
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    10
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    15
# accompanied this code).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    16
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    20
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    23
# questions.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    24
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    25
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    26
include $(SPEC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    27
include MakeBase.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    28
include JavaCompilation.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    29
include Setup.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    30
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    31
default: all
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    32
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
    33
# Prepare the find cache. Only used if running on windows.
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
    34
$(eval $(call FillCacheFind,$(JDK_OUTPUTDIR)/classes))
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
    35
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    36
include Tools.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    37
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
    38
include Profiles.gmk
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
    39
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    40
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    41
# This makefile...so that altering will trigger rebuilding include/exclude-lists => jars
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    42
#
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    43
MAKEFILE=$(JDK_TOPDIR)/makefiles/CreateJars.gmk
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
    44
#
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
    45
# And similarly for the Profiles
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
    46
PROFILE_MAKEFILES=$(JDK_TOPDIR)/makefiles/Profiles.gmk $(JDK_TOPDIR)/makefiles/profile-rtjar-includes.txt
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    47
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    48
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    49
BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    50
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    51
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/lib))
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    52
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    53
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    54
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    55
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    56
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
    57
		SUFFIXES:=.class .gif .png .properties,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    58
		INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    59
		JARMAIN:=sun.tools.jconsole.JConsole,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    60
		JAR:=$(IMAGES_OUTPUTDIR)/lib/jconsole.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    61
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    62
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    63
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    64
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    65
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    66
$(eval $(call SetupArchive,BUILD_DNS_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    67
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    68
		INCLUDES:=sun/net/spi/nameservice/dns,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    69
		EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
    70
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/dnsns.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    71
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    72
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    73
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    74
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    75
15289
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents: 15140
diff changeset
    76
$(IMAGES_OUTPUTDIR)/lib/tzdb.jar: $(JDK_OUTPUTDIR)/lib/tzdb.jar
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents: 15140
diff changeset
    77
	$(install-file)
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents: 15140
diff changeset
    78
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents: 15140
diff changeset
    79
##########################################################################################
3ac550392e43 8003680: JSR 310 Date/Time API
sherman
parents: 15140
diff changeset
    80
14334
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    81
LOCALEDATA_INCLUDE_LOCALES := ar be bg ca cs da de el es et fi fr ga hi hr hu in is it \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    82
                              iw ja ko lt lv mk ms mt nl no pl pt ro ru sk sl sq sr sv \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    83
                              th tr uk vi zh
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    84
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
    85
LOCALEDATA_INCLUDES := $(addprefix sun/text/resources/,$(LOCALEDATA_INCLUDE_LOCALES)) \
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
    86
		       $(addprefix sun/util/resources/,$(LOCALEDATA_INCLUDE_LOCALES))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    87
14334
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    88
# For non-US English locale data
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    89
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    90
LOCALEDATA_INCLUDES += \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    91
                sun/text/resources/en/FormatData_en_AU.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    92
                sun/text/resources/en/FormatData_en_CA.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    93
                sun/text/resources/en/FormatData_en_GB.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    94
                sun/text/resources/en/FormatData_en_IE.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    95
                sun/text/resources/en/FormatData_en_IN.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    96
                sun/text/resources/en/FormatData_en_MT.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    97
                sun/text/resources/en/FormatData_en_NZ.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    98
                sun/text/resources/en/FormatData_en_PH.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
    99
                sun/text/resources/en/FormatData_en_SG.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   100
                sun/text/resources/en/FormatData_en_ZA.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   101
                sun/util/resources/en/CalendarData_en_GB.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   102
                sun/util/resources/en/CalendarData_en_IE.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   103
                sun/util/resources/en/CalendarData_en_MT.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   104
                sun/util/resources/en/CurrencyNames_en_AU.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   105
                sun/util/resources/en/CurrencyNames_en_CA.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   106
                sun/util/resources/en/CurrencyNames_en_GB.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   107
                sun/util/resources/en/CurrencyNames_en_IE.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   108
                sun/util/resources/en/CurrencyNames_en_IN.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   109
                sun/util/resources/en/CurrencyNames_en_MT.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   110
                sun/util/resources/en/CurrencyNames_en_NZ.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   111
                sun/util/resources/en/CurrencyNames_en_PH.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   112
                sun/util/resources/en/CurrencyNames_en_SG.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   113
                sun/util/resources/en/CurrencyNames_en_ZA.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   114
                sun/util/resources/en/LocaleNames_en_MT.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   115
                sun/util/resources/en/LocaleNames_en_PH.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   116
                sun/util/resources/en/LocaleNames_en_SG.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   117
                sun/util/resources/en/TimeZoneNames_en_CA.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   118
                sun/util/resources/en/TimeZoneNames_en_GB.class \
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   119
                sun/util/resources/en/TimeZoneNames_en_IE.class
43556afc3c04 8001231: Move locale data out of rt.jar (except the US locale)
naoto
parents: 14326
diff changeset
   120
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   121
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   122
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   123
		SUFFIXES:=.class _dict _th,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   124
		INCLUDES:=$(LOCALEDATA_INCLUDES),\
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   125
		EXCLUDES:=sun/text/resources/th/BreakIteratorRules_th.class,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   126
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/localedata.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   127
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   128
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   129
##########################################################################################
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   130
#
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   131
# Different variants of rt.jar are built based on the current profile. The output
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   132
# directory is augmented with the profile name so that the final jar file and all the
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   133
# intermediary list files will be in directory. This has the form lib$PROFILE rather than
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   134
# lib/$PROFILE so that it won't get copied as part of the image generation process.
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   135
# Each profile customizes the RT_JAR_EXCLUDES variable.
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   136
#
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   137
##########################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   138
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   139
# Full JRE exclude list for rt.jar and resources.jar
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   140
# This value should exclude types destined for jars other than rt.jar and resources.jar. 
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   141
# When building a Profile this value augments the profile specific exclusions
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   142
RT_JAR_EXCLUDES += \
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   143
	com/oracle/security \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   144
	com/sun/codemodel \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   145
	com/sun/crypto/provider \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   146
	com/sun/istack/internal/tools \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   147
	com/sun/jarsigner \
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   148
	com/sun/java/accessibility \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   149
	com/sun/javadoc \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   150
	com/sun/jdi \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   151
	com/sun/net/ssl/internal/ssl \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   152
	com/sun/source \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   153
	com/sun/tools \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   154
	com/sun/xml/internal/dtdparser \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   155
	com/sun/xml/internal/rngom \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   156
	com/sun/xml/internal/xsom \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   157
	javax/crypto \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   158
	javax/swing/AbstractButtonBeanInfo.class \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   159
	javax/swing/beaninfo \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   160
	javax/swing/BoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   161
	javax/swing/JAppletBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   162
	javax/swing/JButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   163
	javax/swing/JCheckBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   164
	javax/swing/JCheckBoxMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   165
	javax/swing/JColorChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   166
	javax/swing/JComboBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   167
	javax/swing/JComponentBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   168
	javax/swing/JDesktopPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   169
	javax/swing/JDialogBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   170
	javax/swing/JEditorPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   171
	javax/swing/JFileChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
	javax/swing/JFormattedTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   173
	javax/swing/JFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   174
	javax/swing/JInternalFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
	javax/swing/JLabelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   176
	javax/swing/JLayeredPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   177
	javax/swing/JListBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   178
	javax/swing/JMenuBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   179
	javax/swing/JMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   180
	javax/swing/JMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   181
	javax/swing/JOptionPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   182
	javax/swing/JPanelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   183
	javax/swing/JPasswordFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   184
	javax/swing/JPopupMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   185
	javax/swing/JProgressBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   186
	javax/swing/JRadioButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   187
	javax/swing/JRadioButtonMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   188
	javax/swing/JScrollBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   189
	javax/swing/JScrollPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   190
	javax/swing/JSeparatorBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   191
	javax/swing/JSliderBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   192
	javax/swing/JSpinnerBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   193
	javax/swing/JSplitPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   194
	javax/swing/JTabbedPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   195
	javax/swing/JTableBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   196
	javax/swing/JTextAreaBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   197
	javax/swing/JTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   198
	javax/swing/JTextPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   199
	javax/swing/JToggleButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   200
	javax/swing/JToolBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   201
	javax/swing/JTreeBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   202
	javax/swing/JWindowBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   203
	javax/swing/SwingBeanInfoBase.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   204
	javax/swing/text/JTextComponentBeanInfo.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   205
	META-INF/services/com.sun.jdi.connect.Connector \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   206
	META-INF/services/com.sun.jdi.connect.spi.TransportService \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   207
	META-INF/services/com.sun.tools.attach.spi.AttachProvider \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   208
	META-INF/services/com.sun.tools.xjc.Plugin \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   209
	META-INF/services/java.nio.charset.spi.CharsetProvider \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   210
	META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   211
	org/relaxng/datatype \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   212
	sun/awt/HKSCS.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   213
	sun/awt/motif/X11GB2312.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   214
	sun/awt/motif/X11GB2312\$$$$Decoder.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   215
	sun/awt/motif/X11GB2312\$$$$Encoder.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   216
	sun/awt/motif/X11GBK.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   217
	sun/awt/motif/X11GBK\$$$$Encoder.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   218
	sun/awt/motif/X11KSC5601.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   219
	sun/awt/motif/X11KSC5601\$$$$Decoder.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   220
	sun/awt/motif/X11KSC5601\$$$$Encoder.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   221
	sun/jvmstat \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   222
	sun/net/spi/nameservice/dns \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   223
	sun/nio/cs/ext \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   224
	sun/rmi/rmic \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   225
	sun/security/ec/ECDHKeyAgreement.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   226
	sun/security/ec/ECDSASignature.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   227
	sun/security/ec/ECDSASignature\$$$$Raw.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   228
	sun/security/ec/ECDSASignature\$$$$SHA1.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   229
	sun/security/ec/ECDSASignature\$$$$SHA224.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   230
	sun/security/ec/ECDSASignature\$$$$SHA256.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   231
	sun/security/ec/ECDSASignature\$$$$SHA384.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   232
	sun/security/ec/ECDSASignature\$$$$SHA512.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   233
	sun/security/ec/ECKeyFactory.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   234
	sun/security/ec/ECKeyPairGenerator.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   235
	sun/security/ec/SunEC\$$$$1.class \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   236
	sun/security/ec/SunEC.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   237
	sun/security/ec/SunECEntries.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   238
	sun/security/internal \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   239
	sun/security/mscapi \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   240
	sun/security/pkcs11 \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   241
	sun/security/provider/Sun.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   242
	sun/security/rsa/SunRsaSign.class \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   243
	sun/security/ssl \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   244
	sun/security/tools/jarsigner \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   245
	sun/swing/BeanInfoUtils.class \
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   246
	sun/text/resources/cldr \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   247
	sun/tools/asm \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   248
	sun/tools/attach \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   249
	sun/tools/java \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   250
	sun/tools/javac \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   251
	sun/tools/jcmd \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   252
	sun/tools/jconsole \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   253
	sun/tools/jinfo \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   254
	sun/tools/jmap \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   255
	sun/tools/jps \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   256
	sun/tools/jstack \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   257
	sun/tools/jstat \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   258
	sun/tools/jstatd \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   259
	sun/tools/native2ascii \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   260
	sun/tools/serialver \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   261
	sun/tools/tree \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   262
	sun/tools/util \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   263
	sun/util/cldr/CLDRLocaleDataMetaInfo.class \
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   264
	sun/util/resources/cldr \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   265
	$(LOCALEDATA_INCLUDES) \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   266
	com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   267
	oracle/jrockit/jfr
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   268
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   269
ifeq ($(OPENJDK_TARGET_OS), macosx)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   270
        RT_JAR_EXCLUDES += com/sun/nio/sctp \
14425
0005b8b4ec0b 8003161: small fixes to re-enable new build system
ohrstrom
parents: 14345
diff changeset
   271
                           sun/nio/ch/sctp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   272
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   273
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   274
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
   275
ALL_FILES_IN_CLASSES := $(call not-containing,_the.,$(filter-out %javac_state,\
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
   276
                        $(call CacheFind,$(JDK_OUTPUTDIR)/classes)))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   277
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   278
RT_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar_manifest
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   279
RESOURCE_JAR_MANIFEST_FILE := $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar_manifest
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   280
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   281
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   282
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   283
	$(RM) $@ $@.tmp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   284
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   285
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   286
	       $(MAINMANIFEST) >> $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   287
	$(ECHO) >> $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   288
	$(CAT) $(BEANMANIFEST) >> $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   289
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   290
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   291
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   292
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   293
	$(RM) $@ $@.tmp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   294
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   295
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   296
	       $(MAINMANIFEST) >> $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   297
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   298
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   299
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude: $(MAKEFILE) $(PROFILE_MAKEFILES)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   300
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   301
	$(RM) $@ $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   302
	$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@.tmp)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   303
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   304
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   305
$(IMAGES_OUTPUTDIR)/lib/classlist : $(JDK_TOPDIR)/make/tools/sharing/classlist.$(OPENJDK_TARGET_OS) \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   306
  $(MAKEFILE)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   307
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   308
	$(RM) $@ $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   309
	$(TOOL_ADDJSUM) $< $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   310
	$(MV) $@.tmp $@
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   311
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   312
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents: $(BUILD_TOOLS) $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   313
					 $(ALL_FILES_IN_CLASSES) $(IMAGES_OUTPUTDIR)/lib/classlist
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   314
	$(MKDIR) -p $(@D)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   315
	$(RM) $@ $@.tmp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   316
	($(CD) $(JDK_OUTPUTDIR)/classes && \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   317
	    $(TOOL_JARREORDER) \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   318
		-o  $@.tmp $(IMAGES_OUTPUTDIR)/lib/classlist $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.exclude . )
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   319
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   320
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   321
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   322
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   323
	$(RM) $@ $@.tmp
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   324
	$(GREP) -e '\.class$$' $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   325
ifneq ($(PROFILE),)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   326
#       # Add back classes from excluded packages (fixing the $ substitution in the process)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   327
	for type in  $(subst \$$,\, $(RT_JAR_INCLUDE_TYPES)) ; do \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   328
	  $(ECHO) $$type >> $@.tmp ; \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   329
	done
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   330
endif
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   331
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   332
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   333
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   334
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   335
	$(RM) $@ $@.tmp
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   336
	$(GREP) -v -e '\.class$$' \
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   337
	    -e '/_the\.*' -e '^_the\.*' -e '\\_the\.*' -e 'javac_state' \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   338
	    $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.jars.contents > $@.tmp
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   339
ifneq ($(PROFILE),)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   340
#       # Strip out all META-INF/services/ entries
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   341
	$(GREP) -v -e 'META-INF/services/' $@.tmp > $@.tmp2
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   342
#       # Add back the required services
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   343
#       # FIXME: On Solaris if PROFILE_INCLUDE_METAINF_SERVICES is not defined
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   344
#       # we get a syntax error from sh. That doesn't happen on linux
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   345
	for service in $(PROFILE_INCLUDE_METAINF_SERVICES) ; do \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   346
	  $(ECHO) $$service >> $@.tmp2; \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   347
	done
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   348
	$(MV) $@.tmp2 $@.tmp
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   349
endif
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   350
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   351
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   352
# This is a hack but I don't know how to make this fit into the existing scheme
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   353
$(PROFILE_VERSION_CLASS_TARGETS) : $(PROFILE_VERSION_JAVA_TARGETS)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   354
	@$(JAVAC) -d $(@D)/../../ $(@D)/$(VERSION_JAVA_FILE)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   355
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   356
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   357
# Support for removing the addPropertyChangeListener and removePropertyChangeListener
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   358
# methods from classes that only go into the profile builds. 
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   359
BEANLESS_CLASSES = $(IMAGES_OUTPUTDIR)/beanless
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   360
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   361
# When there are $ characters in filenames we have some very subtle interactions between
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   362
# make expansion and shell expansion. In this particular case $< will contain a single $ while
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   363
# $@ will contain \$. So we have to pass $< in single-quotes to avoid shell expansion
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   364
$(BEANLESS_CLASSES)/%: $(JDK_OUTPUTDIR)/classes/%
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   365
	$(MKDIR) -p $(@D)
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   366
	$(TOOL_REMOVEMETHODS) '$<' $@ addPropertyChangeListener removePropertyChangeListener
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   367
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   368
CLASSES_TO_DEBEAN = \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   369
    java/util/logging/LogManager.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   370
    java/util/jar/Pack200\$$Packer.class \
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   371
    java/util/jar/Pack200\$$Unpacker.class \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   372
    com/sun/java/util/jar/pack/PackerImpl.class \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   373
    com/sun/java/util/jar/pack/UnpackerImpl.class 
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   374
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   375
ifneq ($(PROFILE),)
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   376
    BEANLESS_CLASSES_TARGETS := $(addprefix $(BEANLESS_CLASSES)/, $(CLASSES_TO_DEBEAN))
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   377
endif
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   378
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   379
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   380
RT_JAR_CREATE_OPTIONS := c0fm
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   381
RT_JAR_UPDATE_OPTIONS := u0f
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   382
ifeq ($(COMPRESS_JARS), true)
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   383
    RT_JAR_CREATE_OPTIONS := cfm
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   384
    RT_JAR_UPDATE_OPTIONS := uf
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   385
endif
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   386
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   387
# This defines a target-specific variables to make the shell logic easier to see.
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   388
# We need to find the Version.class file for the profile currently being built
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   389
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   390
  CLASS_FILE = $(if $(PROFILE),$(strip $(foreach class,$(PROFILE_VERSION_CLASS_TARGETS),$(if $(findstring $(PROFILE),$(class)),$(class)))), NO_SUCH_FILE)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   391
# This is the real target
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   392
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/rt.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE) $(PROFILE_VERSION_CLASS_TARGETS) $(BEANLESS_CLASSES_TARGETS)
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   393
	$(ECHO) Creating rt.jar $(PROFILE) Compressed=$(COMPRESS_JARS)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   394
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   395
	$(RM) $@ $@.tmp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   396
	$(CD) $(JDK_OUTPUTDIR)/classes && \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   397
	    $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RT_JAR_MANIFEST_FILE) \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   398
	        @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.rt.jar.contents && \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   399
	    if [ -f $(CLASS_FILE) ]; then \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   400
	      $(ECHO)  Updating rt.jar $(PROFILE) && \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   401
	      $(CD) $(patsubst %$(VERSION_CLASS_PATH),%,$(CLASS_FILE)) && \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   402
                $(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(VERSION_CLASS_PATH); \
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   403
	      $(CD) $(BEANLESS_CLASSES) && \
16478
52ea0de470fd 8009429: Miscellaneous profiles cleanup
dholmes
parents: 16035
diff changeset
   404
		$(JAR) $(RT_JAR_UPDATE_OPTIONS) $@.tmp $(CLASSES_TO_DEBEAN); \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   405
            fi
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   406
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   407
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   408
$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/resources.jar: $(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   409
				    $(RESOURCE_JAR_MANIFEST_FILE)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   410
	$(ECHO) Creating resources.jar
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   411
	$(MKDIR) -p $(@D)
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   412
	$(RM) $@ $@.tmp
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   413
	$(CD) $(JDK_OUTPUTDIR)/classes && \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   414
	    $(JAR) $(RT_JAR_CREATE_OPTIONS) $@.tmp $(RESOURCE_JAR_MANIFEST_FILE) \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   415
	        @$(IMAGES_OUTPUTDIR)/lib$(PROFILE)/_the.resources.jar.contents
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   416
	$(MV) $@.tmp $@
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   417
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   418
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   419
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   420
ifneq ($(OPENJDK_TARGET_OS), windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   421
    CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   422
                          sun/awt/motif/X11GB2312\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   423
                          sun/awt/motif/X11GB2312.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   424
                          sun/awt/motif/X11KSC5601\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   425
                          sun/awt/motif/X11KSC5601\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   426
                          sun/awt/motif/X11GB2312\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   427
                          sun/awt/motif/X11GBK\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   428
                          sun/awt/motif/X11KSC5601.class
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   429
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   430
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   431
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   432
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   433
		SUFFIXES:=.class .dat,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   434
		INCLUDES:=sun/nio/cs/ext,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   435
		EXTRA_FILES := sun/awt/HKSCS.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   436
			       $(CHARSETS_EXTRA_FILES) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   437
                               META-INF/services/java.nio.charset.spi.CharsetProvider, \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   438
		JAR:=$(IMAGES_OUTPUTDIR)/lib/charsets.jar, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   439
		SKIP_METAINF := true, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   440
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   441
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   442
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   443
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   444
ifndef OPENJDK
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   445
ifeq ($(ENABLE_JFR), true)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   446
    $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   447
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   448
		INCLUDES:=com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   449
			  oracle/jrockit/jfr,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   450
		JAR:=$(IMAGES_OUTPUTDIR)/lib/jfr.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   451
		SKIP_METAINF:=true,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   452
		MANIFEST:=$(MAINMANIFEST), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   453
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   454
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   455
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   456
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   457
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   458
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   459
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   460
$(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   461
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   462
		INCLUDES:=sun/security/provider/Sun.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   463
			  sun/security/rsa/SunRsaSign.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   464
			  sun/security/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   465
			  com/sun/net/ssl/internal/ssl,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   466
		JAR:=$(IMAGES_OUTPUTDIR)/lib/jsse.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   467
		SKIP_METAINF:=true,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   468
		MANIFEST:=$(MAINMANIFEST), \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   469
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   470
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   471
##########################################################################################
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   472
# Create manifest for security jars
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   473
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   474
#
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   475
# Include these extra attributes for now, should probably take out.
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   476
#
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   477
JCE_MANIFEST := $(IMAGES_OUTPUTDIR)/lib/_the.security.manifest.mf
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   478
$(JCE_MANIFEST): $(MAINMANIFEST)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   479
	$(MKDIR) -p $(@D)
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   480
	$(RM) $@ $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   481
	$(SED) -e "s#@@RELEASE@@#$(JDK_VERSION)#"       \
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   482
               -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   483
               $(MAINMANIFEST) >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   484
	$(ECHO) "Extension-Name: javax.crypto" >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   485
	$(ECHO) "Implementation-Vendor-Id: com.sun" >> $@.tmp
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   486
	$(MV) $@.tmp $@
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   487
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   488
##########################################################################################
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   489
# For all security jars, always build the jar, but for closed, install the prebuilt signed
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   490
# version instead of the newly built jar. Unsigned jars are treated as intermediate targets
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   491
# and explicitly added to the JARS list. For open, signing is not needed. See SignJars.gmk
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   492
# for more information.
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   493
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   494
SUNPKCS11_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunpkcs11.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   495
SUNPKCS11_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunpkcs11.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   496
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   497
$(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   498
	SRCS:=$(JDK_OUTPUTDIR)/classes, \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   499
	SUFFIXES:=.class,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   500
	INCLUDES:=sun/security/pkcs11,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   501
	JAR:=$(SUNPKCS11_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   502
        MANIFEST:=$(JCE_MANIFEST), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   503
	SKIP_METAINF := true))
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   504
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   505
$(SUNPKCS11_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   506
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   507
ifndef OPENJDK
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   508
    SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   509
    $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   510
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunPKCS11 provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   511
	$(install-file)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   512
else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   513
    $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_UNSIGNED)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   514
	$(install-file)
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   515
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   516
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   517
JARS += $(SUNPKCS11_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   518
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   519
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   520
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   521
SUNEC_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunec.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   522
SUNEC_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunec.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   523
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   524
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   525
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   526
		SUFFIXES:=.class,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   527
		INCLUDES:=sun/security/ec,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   528
		JAR:=$(SUNEC_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   529
                MANIFEST:=$(JCE_MANIFEST), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   530
		SKIP_METAINF := true))
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   531
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   532
$(SUNEC_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   533
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   534
ifndef OPENJDK
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   535
    SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   536
    $(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   537
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunEC provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   538
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   539
else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   540
    $(SUNEC_JAR_DST) : $(SUNEC_JAR_UNSIGNED)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   541
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   542
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   543
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   544
JARS += $(SUNEC_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   545
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   546
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   547
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   548
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   549
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   550
		SUFFIXES:=BeanInfo.class .gif,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   551
		INCLUDES:=javax/swing sun/swing,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   552
		EXCLUDES:=javax/swing/plaf,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   553
		EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   554
		JAR:=$(IMAGES_OUTPUTDIR)/lib/dt.jar,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   555
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   556
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   557
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   558
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   559
SUNJCE_PROVIDER_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunjce_provider.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   560
SUNJCE_PROVIDER_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunjce_provider.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   561
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   562
$(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   563
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   564
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   565
		INCLUDES:= com/sun/crypto/provider,\
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   566
		JAR:=$(SUNJCE_PROVIDER_JAR_UNSIGNED), \
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   567
                MANIFEST:=$(JCE_MANIFEST), \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   568
		SKIP_METAINF := true))
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   569
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   570
$(SUNJCE_PROVIDER_JAR_UNSIGNED): $(JCE_MANIFEST)
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   571
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   572
ifndef OPENJDK
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   573
    SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   574
    $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   575
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunJCE provider..."
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   576
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   577
else
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   578
    $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_UNSIGNED)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   579
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   580
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   581
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   582
JARS += $(SUNJCE_PROVIDER_JAR_UNSIGNED)
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   583
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   584
##########################################################################################
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   585
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   586
JCE_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/jce.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   587
JCE_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/jce.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   588
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   589
$(eval $(call SetupArchive,BUILD_JCE_JAR,,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   590
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   591
		SUFFIXES:=.class,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   592
		INCLUDES:= javax/crypto sun/security/internal,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   593
		JAR:=$(JCE_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   594
                MANIFEST:=$(JCE_MANIFEST), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   595
		SKIP_METAINF := true))
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   596
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   597
$(JCE_JAR_UNSIGNED): $(JCE_MANIFEST)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   598
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   599
ifndef OPENJDK
14527
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   600
    JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
b2b7e2931859 8003482: build-infra: Use correct manifest in security jars
erikj
parents: 14425
diff changeset
   601
    $(JCE_JAR_DST) : $(JCE_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   602
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt jce.jar..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   603
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   604
else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   605
    $(JCE_JAR_DST) : $(JCE_JAR_UNSIGNED)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   606
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   607
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   608
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   609
JARS +=  $(JCE_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   610
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   611
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   612
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   613
US_EXPORT_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/US_export_policy.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   614
US_EXPORT_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/US_export_policy.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   615
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   616
#
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   617
# TODO fix so that SetupArchive does not write files into SRCS
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   618
#   then we don't need this extra copying
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   619
#
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   620
# NOTE:  We currently do not place restrictions on our limited export
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   621
# policy.  This was not a typo.
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   622
#
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   623
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   624
US_EXPORT_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/US_export_policy_jar.tmp
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   625
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   626
$(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   627
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   628
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   629
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   630
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   631
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   632
		SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   633
		SUFFIXES:= .policy,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   634
		JAR:=$(US_EXPORT_POLICY_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   635
		EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   636
		SKIP_METAINF := true))
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   637
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   638
ifndef OPENJDK
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   639
    $(US_EXPORT_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/US_export_policy.jar
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   640
	$(ECHO) $(LOG_INFO) Copying $(@F)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   641
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   642
else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   643
    $(US_EXPORT_POLICY_JAR_DST): $(US_EXPORT_POLICY_JAR_UNSIGNED)
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   644
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   645
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   646
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   647
JARS += $(US_EXPORT_POLICY_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   648
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   649
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   650
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   651
LOCAL_POLICY_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/security/local_policy.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   652
LOCAL_POLICY_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/local_policy.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   653
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   654
#
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   655
# TODO fix so that SetupArchive does not write files into SRCS
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   656
#   then we don't need this extra copying
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   657
#
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   658
LOCAL_POLICY_JAR_TMP := $(IMAGES_OUTPUTDIR)/local_policy_jar.tmp
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   659
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   660
ifeq ($(UNLIMITED_CRYPTO), true)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   661
    LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   662
    LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/default_local.policy
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   663
    LOCAL_POLICY_JAR_ATTR := Crypto-Strength: unlimited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   664
else
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   665
    LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   666
    LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   667
                             $(LOCAL_POLICY_JAR_TMP)/default_local.policy
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   668
    LOCAL_POLICY_JAR_ATTR := Crypto-Strength: limited
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   669
endif
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   670
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   671
$(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   672
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   673
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   674
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   675
		SRCS:=$(LOCAL_POLICY_JAR_TMP),\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   676
		SUFFIXES:= .policy,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   677
		JAR:=$(LOCAL_POLICY_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   678
		EXTRA_MANIFEST_ATTR := $(LOCAL_POLICY_JAR_ATTR), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   679
		SKIP_METAINF := true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   680
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   681
ifndef OPENJDK
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   682
    $(LOCAL_POLICY_JAR_DST): $(JDK_TOPDIR)/make/closed/tools/crypto/jce/local_policy.jar
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   683
	$(ECHO) $(LOG_INFO) Copying $(@F)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   684
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   685
else
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   686
    $(LOCAL_POLICY_JAR_DST): $(LOCAL_POLICY_JAR_UNSIGNED)
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   687
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   688
endif
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   689
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   690
JARS += $(LOCAL_POLICY_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   691
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   692
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   693
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   694
ifeq ($(OPENJDK_TARGET_OS),windows)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   695
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   696
SUNMSCAPI_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   697
SUNMSCAPI_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/sunmscapi.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   698
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   699
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   700
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   701
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   702
		INCLUDES:= sun/security/mscapi,\
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   703
		JAR:=$(SUNMSCAPI_JAR_UNSIGNED), \
15137
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   704
		MANIFEST:=$(JCE_MANIFEST), \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   705
		SKIP_METAINF:=true))
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   706
15137
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   707
$(SUNMSCAPI_JAR_UNSIGNED): $(JCE_MANIFEST)
1ad653469ebc 8006296: build-infra: Unsigned sunmscapi.jar is missing manifest.
erikj
parents: 15133
diff changeset
   708
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   709
ifndef OPENJDK
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   710
    SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   711
    $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   712
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt SunMSCAPI provider..."
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   713
	$(install-file)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   714
else
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   715
    $(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_UNSIGNED)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   716
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   717
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   718
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   719
JARS += $(SUNMSCAPI_JAR_UNSIGNED)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   720
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   721
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   722
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   723
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   724
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   725
ifeq ($(OPENJDK_TARGET_OS),solaris)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   726
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   727
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   728
UCRYPTO_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   729
UCRYPTO_JAR_UNSIGNED := $(IMAGES_OUTPUTDIR)/unsigned/ucrypto.jar
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   730
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   731
15128
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   732
$(eval $(call SetupArchive,BUILD_UCRYPTO_JAR,,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   733
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   734
		SUFFIXES:=.class,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   735
		INCLUDES:=com/oracle/security/ucrypto,\
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   736
		JAR:=$(UCRYPTO_JAR_UNSIGNED), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   737
		MANIFEST:=$(JCE_MANIFEST), \
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   738
		SKIP_METAINF:=true))
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   739
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   740
$(UCRYPTO_JAR_UNSIGNED): $(JCE_MANIFEST)
296bb1620e00 8005355: build-infra: Java security signing (need a top-level make target).
erikj
parents: 15126
diff changeset
   741
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   742
$(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   743
	@$(ECHO) $(LOG_INFO) "\n>>>Installing prebuilt OracleUcrypto provider..."
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   744
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   745
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   746
JARS += $(UCRYPTO_JAR_UNSIGNED) 
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   747
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   748
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   749
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   750
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   751
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   752
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   753
# Get the CLDRVERSION
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   754
include GensrcCLDR.gmk
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   755
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   756
CLDRDATA_JAR_DST := $(IMAGES_OUTPUTDIR)/lib/ext/cldrdata.jar
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   757
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   758
$(eval $(call SetupArchive,BUILD_CLDRDATA_JAR,,\
13583
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   759
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   760
		SUFFIXES:=.class,\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   761
		INCLUDES:=sun/text/resources/cldr \
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   762
			  sun/util/cldr \
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   763
			  sun/util/resources/cldr,\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   764
		EXCLUDES:=sun/util/cldr/CLDRLocaleProviderAdapter,\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   765
		JAR:=$(CLDRDATA_JAR_DST),\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   766
		EXTRA_MANIFEST_ATTR:=CLDR-Version: $(CLDRVERSION),\
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   767
		SKIP_METAINF:=true))
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   768
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   769
##########################################################################################
dc0017b1a452 6336885: RFE: Locale Data Deployment Enhancements
naoto
parents: 13353
diff changeset
   770
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   771
TOOLS_JAR_INCLUDES := \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   772
        com/sun/codemodel       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   773
	com/sun/istack/internal/tools       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   774
	com/sun/jarsigner	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   775
	com/sun/javadoc		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   776
	com/sun/jdi		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   777
	com/sun/source          \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   778
	com/sun/tools/attach	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   779
	com/sun/tools/classfile \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   780
	com/sun/tools/corba     \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   781
	com/sun/tools/doclets   \
14902
c03055cef158 8004832: Add new doclint package
jjg
parents: 14596
diff changeset
   782
	com/sun/tools/doclint   \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   783
	com/sun/tools/example/debug/expr \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   784
	com/sun/tools/example/debug/tty  \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   785
	com/sun/tools/extcheck  \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   786
	com/sun/tools/hat       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   787
        com/sun/tools/internal/jxc             \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   788
	com/sun/tools/internal/jxc/ap   \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   789
	com/sun/tools/internal/ws       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   790
	com/sun/tools/internal/ws/wscompile/plugin/at_generated \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   791
	com/sun/tools/internal/xjc       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   792
	com/sun/tools/javac     \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   793
	com/sun/tools/javadoc   \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   794
	com/sun/tools/javah     \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   795
	com/sun/tools/javap     \
14994
a544909d1d1c 8003562: Provide a CLI tool to analyze class dependencies
mchung
parents: 14902
diff changeset
   796
	com/sun/tools/jdeps	\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   797
	com/sun/tools/jdi	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   798
	com/sun/tools/script/shell	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   799
	com/sun/xml/internal/dtdparser \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   800
        com/sun/xml/internal/rngom       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   801
        com/sun/xml/internal/xsom       \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   802
        org/relaxng/datatype   \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   803
	sun/applet		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   804
	sun/jvmstat		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   805
	sun/rmi/rmic		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   806
	sun/security/tools/jarsigner \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   807
	sun/tools/asm		\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   808
	sun/tools/attach	\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   809
	sun/tools/jar		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   810
	sun/tools/java		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   811
	sun/tools/javac		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   812
	sun/tools/jcmd		\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   813
	sun/tools/jinfo         \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   814
	sun/tools/jmap		\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   815
	sun/tools/jps		\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   816
	sun/tools/jstack        \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   817
	sun/tools/jstat		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   818
	sun/tools/jstatd	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   819
	sun/tools/native2ascii	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   820
	sun/tools/serialver	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   821
	sun/tools/tree		\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   822
	sun/tools/util
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   823
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   824
# The sjavac tools is not ready for public consumption.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   825
TOOLS_JAR_EXCLUDES=com/sun/tools/sjavac
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   826
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   827
$(eval $(call SetupArchive,BUILD_TOOLS_JAR,,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   828
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   829
		SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   830
			  Tool aliasmap options,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   831
		INCLUDES:=$(TOOLS_JAR_INCLUDES),\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   832
		EXCLUDES:=$(TOOLS_JAR_EXCLUDES),\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   833
		EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   834
			     META-INF/services/com.sun.jdi.connect.spi.TransportService \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   835
			     META-INF/services/com.sun.tools.attach.spi.AttachProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   836
			     META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   837
			     META-INF/services/com.sun.tools.internal.xjc.Plugin,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   838
		JAR:=$(IMAGES_OUTPUTDIR)/lib/tools.jar,\
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   839
		SKIP_METAINF:=true, \
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   840
                CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   841
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   842
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   843
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   844
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   845
include javadoc/CORE_PKGS.gmk
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   846
include javadoc/NON_CORE_PKGS.gmk
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   847
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   848
# The compiler should not issue a "Proprietary" warning when compiling
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   849
# classes in the com.sun.java.swing.plaf packages, since we've always
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   850
# allowed, and even advocated, extending them (see bug 6476749).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   851
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   852
# This approach is NOT to be used as a general purpose way to avoid such
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   853
# compiler warnings for non-core packages. The correct way is to document
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   854
# the packages in NON_CORE_PKGS.gmk, and include them in the NON_CORE_PKGS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   855
# definition.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   856
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   857
# Swing has taken this approach only as a temporary measure to avoid
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   858
# the compiler warnings until we can properly document these packages.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   859
# This is covered under 6491853.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   860
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   861
                        com.sun.java.swing.plaf.motif    \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   862
                        com.sun.java.swing.plaf.gtk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   863
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   864
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   865
# Include the exported private packages in ct.sym.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   866
# This is an interim solution until the ct.sym is replaced
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   867
# with a new module system (being discussed for JDK 8).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   868
#
16507
75bde2ca0061 8007703: Remove com.sun.servicetag API
mchung
parents: 16487
diff changeset
   869
EXPORTED_PRIVATE_PKGS = com.oracle.net \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   870
                        com.oracle.nio
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   871
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   872
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(IMAGES_OUTPUTDIR)/lib/rt.jar
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   873
	$(RM) -r $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   874
	$(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
15402
ce612878e7aa 8006872: Stop creating four jars with identical content in the new build system.
ohrstrom
parents: 15335
diff changeset
   875
	$(JAVA) $(NEW_JAVAC) \
14790
9d42784b1823 8004803: build-infra: Cannot use icedtea as boot for closed build.
erikj
parents: 14596
diff changeset
   876
	    -bootclasspath $(JDK_OUTPUTDIR)/classes \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   877
	    -XDprocess.packages -proc:only \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   878
	    -processor com.sun.tools.javac.sym.CreateSymbols \
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   879
	    -Acom.sun.tools.javac.sym.Jar=$(IMAGES_OUTPUTDIR)/lib/rt.jar \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   880
	    -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
15681
8ca785029fe2 8004265: Add build support for Compact Profiles
dholmes
parents: 15140
diff changeset
   881
	    -Acom.sun.tools.javac.sym.Profiles=profile-rtjar-includes.txt \
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   882
	    $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   883
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   884
15126
bceb690ccf35 8005540: build-infra: Improve incremental build speed on windows by caching find results
erikj
parents: 14790
diff changeset
   885
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/symbols))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   886
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   887
		SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   888
		INCLUDES:=META-INF/sym,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   889
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ct.sym, \
13164
72c5d01a857d 7181504: Update of latest build-infra Makefiles
erikj
parents: 12892
diff changeset
   890
		CHECK_COMPRESS_JAR:=true))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   891
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   893
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   894
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   895
SRC_ZIP_INCLUDES = \
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   896
	com/sun/corba			\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   897
	com/sun/image/codec/jpeg	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   898
	com/sun/imageio                 \
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   899
	com/sun/java_cup		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   900
	com/sun/javadoc			\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   901
	com/sun/java/swing		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   902
	com/sun/jlex	        	\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   903
	com/sun/jmx			\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   904
	com/sun/naming			\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   905
	com/sun/org/apache		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   906
	com/sun/security/auth		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   907
	com/sun/security/jgss		\
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   908
	com/sun/source			\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   909
	java/applet			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   910
	java/awt			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   911
	java/beans			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   912
	java/io				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   913
	java/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   914
	java/math			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   915
	java/net			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   916
	java/nio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   917
	java/rmi			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   918
	java/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   919
	java/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   920
	java/text			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   921
	java/util			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   922
	javax/accessibility		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   923
	javax/annotation		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   924
	javax/imageio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   925
	javax/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   926
	javax/management		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   927
	javax/naming			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   928
	javax/print			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   929
	javax/rmi			\
15130
14a47a69bc62 8005694: build-infra: Cleanup of misc changes in build-infra
erikj
parents: 15128
diff changeset
   930
	javax/script			\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   931
	javax/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   932
	javax/sound			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   933
	javax/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   934
	javax/swing			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   935
	javax/tools			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   936
	javax/xml			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   937
	org/ietf			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   938
	org/omg				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   939
	org/w3c/dom			\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   940
	org/xml/sax			\
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   941
	sunw
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   942
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   943
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   944
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   945
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   946
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   947
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   948
  SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   949
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   950
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   951
# Need to copy launcher src files into desired directory structure
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   952
# before zipping the sources.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   953
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   954
                      $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/java_md*)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   955
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   956
		    $(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   957
			$(LAUNCHER_SRC_FILES)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   958
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   959
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   960
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   961
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
   962
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/%
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
   963
	$(install-file)
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   964
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   965
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   966
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   967
# This dir needs to exist before macro is evaluated to avoid warning from find.
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   968
$(eval $(call MakeDir,$(IMAGES_OUTPUTDIR)/src))
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   969
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   970
		SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   971
		INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
14231
a0c23c1c010f 8000992: Update new build-infra makefiles
ohair
parents: 13702
diff changeset
   972
		EXCLUDES:=javax/swing/beaninfo,\
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   973
		SUFFIXES:=.java .c .h,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   974
		ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   975
		EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   976
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   977
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   978
15324
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   979
ifndef OPENJDK
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   980
ifeq ($(OPENJDK_TARGET_OS), windows)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   981
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   982
    $(eval $(call SetupArchive,BUILD_JACCESS_JAR,,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   983
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   984
		INCLUDES:=com/sun/java/accessibility/util,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   985
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   986
		SKIP_METAINF:=true))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   987
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   988
    JARS += $(IMAGES_OUTPUTDIR)/lib/ext/jaccess.jar
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   989
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   990
    ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   991
        $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_32_JAR,,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   992
		SRCS:=$(JDK_OUTPUTDIR)/classes_ab/32bit $(JDK_OUTPUTDIR)/classes,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   993
		INCLUDES:=com/sun/java/accessibility,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   994
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   995
		SKIP_METAINF:=true))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   996
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   997
        $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_LEGACY_JAR,,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   998
		SRCS:=$(JDK_OUTPUTDIR)/classes_ab/legacy $(JDK_OUTPUTDIR)/classes,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
   999
		INCLUDES:=com/sun/java/accessibility,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1000
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1001
		SKIP_METAINF:=true))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1002
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1003
        JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-32.jar \
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1004
		$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge.jar
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1005
    else
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1006
        $(eval $(call SetupArchive,BUILD_ACCESSBRIDGE_64_JAR,,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1007
		SRCS:=$(JDK_OUTPUTDIR)/classes_ab/64bit $(JDK_OUTPUTDIR)/classes,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1008
		INCLUDES:=com/sun/java/accessibility,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1009
		EXCLUDES:=com/sun/java/accessibility/util/java,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1010
		JAR:=$(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar,\
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1011
		SKIP_METAINF:=true))
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1012
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1013
        JARS += $(IMAGES_OUTPUTDIR)/lib/ext/access-bridge-64.jar
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1014
    endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1015
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1016
endif
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1017
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1018
##########################################################################################
74584166bb07 8000839: Integrate the Java Access Bridge with Java Runtime
raginip
parents: 14996
diff changeset
  1019
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1020
#
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1021
# This is an empty jar (only contains manifest) and fits poorly into framework...
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1022
#   create simple rule instead
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1023
#
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1024
$(IMAGES_OUTPUTDIR)/lib/management-agent.jar : $(JDK_TOPDIR)/src/share/classes/sun/management/manifest
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1025
	$(JAR) cfm $@ $<
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1026
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1027
##########################################################################################
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1028
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1029
$(IMAGES_OUTPUTDIR)/lib/ext/zipfs.jar : $(JDK_OUTPUTDIR)/demo/nio/zipfs/zipfs.jar
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1030
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1031
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1032
##########################################################################################
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1033
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1034
ifeq ($(OPENJDK_TARGET_OS),macosx)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1035
    $(eval $(call SetupArchive,BUILD_JOBJC_JAR,,\
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1036
		SRCS:=$(JDK_OUTPUTDIR)/jobjc_classes,\
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1037
		JAR:=$(IMAGES_OUTPUTDIR)/lib/JObjC.jar, \
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1038
		JARINDEX:=true))
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1039
endif
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1040
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1041
##########################################################################################
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1042
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1043
ifndef OPENJDK
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1044
    $(eval $(call SetupArchive,BUILD_ALT_RT_JAR,,\
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1045
		SRCS:=$(JDK_OUTPUTDIR)/altclasses_classes,\
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1046
		JAR:=$(IMAGES_OUTPUTDIR)/lib/alt-rt.jar))
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1047
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1048
endif
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1049
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1050
##########################################################################################
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1051
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1052
# This file is imported from hotspot in Import.gmk. Copying it into images/lib so that
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1053
# all jars can be found in one place when creating images in Images.gmk. It needs to be
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1054
# done here so that clean targets can be simple and accurate.
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1055
$(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar: $(JDK_OUTPUTDIR)/lib/sa-jdi.jar
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1056
	$(install-file)
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1057
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1058
##########################################################################################
15131
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1059
#
15132
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1060
# sec-bin.zip is used by builds where the corresponding sources are not available
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1061
#
15131
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1062
$(eval $(call SetupZipArchive,BUILD_SEC_BIN_ZIP,\
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1063
		SRC:=$(JDK_OUTPUTDIR),\
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1064
		INCLUDES:=classes/javax/net \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1065
			  classes/javax/security/cert \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1066
			  classes/com/sun/net/ssl \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1067
			  classes/com/sun/security/cert \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1068
			  classes/sun/net/www/protocol/https \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1069
			  classes/sun/security/pkcs12 \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1070
			  classes/sun/security/ssl \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1071
			  classes/sun/security/krb5 \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1072
			  classes/sun/security/krb5/internal \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1073
			  classes/sun/security/krb5/internal/ccache \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1074
			  classes/sun/security/krb5/internal/crypto \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1075
			  classes/sun/security/krb5/internal/ktab \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1076
			  classes/sun/security/krb5/internal/rcache \
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1077
			  classes/sun/security/krb5/internal/util,\
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1078
		INCLUDE_FILES:=classes/sun/security/jgss/spi/GSSContextSpi.class,\
15132
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1079
		EXCLUDES:=classes/sun/security/krb5/internal/tools,\
15131
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1080
		ZIP:=$(IMAGES_OUTPUTDIR)/sec-bin.zip))
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1081
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1082
JARS += $(IMAGES_OUTPUTDIR)/sec-bin.zip
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1083
07014f73ad3b 8005654: build-infra: Create sec-bin.zip
erikj
parents: 15130
diff changeset
  1084
##########################################################################################
15132
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1085
#
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1086
# Windows specific binary security packages.
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1087
#
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1088
ifeq ($(OPENJDK_TARGET_OS),windows)
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1089
    # sec-windows-bin.zip is used by builds where the corresponding sources are not available
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1090
    $(eval $(call SetupZipArchive,BUILD_SEC_WINDOWS_BIN_ZIP,\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1091
		SRC:=$(JDK_OUTPUTDIR),\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1092
		INCLUDES:=classes/sun/security/krb5/internal/tools,\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1093
		ZIP:=$(IMAGES_OUTPUTDIR)/sec-windows-bin.zip))
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1094
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1095
    JARS += $(IMAGES_OUTPUTDIR)/sec-windows-bin.zip
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1096
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1097
    # JGSS files contain the native Kerberos library
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1098
    ifeq ($(OPENJDK_TARGET_CPU),x86_64)
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1099
        JGSS_ZIP_NAME=jgss-windows-x64-bin.zip
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1100
    else
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1101
        JGSS_ZIP_NAME=jgss-windows-i586-bin.zip
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1102
    endif
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1103
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1104
    $(eval $(call SetupZipArchive,BUILD_JGSS_BIN_ZIP,\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1105
		SRC:=$(JDK_OUTPUTDIR),\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1106
		INCLUDE_FILES:=bin/w2k_lsa_auth.dll \
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1107
			       bin/w2k_lsa_auth.map \
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1108
			       bin/w2k_lsa_auth.pdb,\
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1109
		ZIP:=$(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)))
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1110
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1111
    JARS += $(IMAGES_OUTPUTDIR)/$(JGSS_ZIP_NAME)
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1112
endif
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1113
81c49c63a316 8005723: build-infra: in new infra build, sec-windows-bin-zip and jgss-windows-*-bin.zip are missing
erikj
parents: 15131
diff changeset
  1114
##########################################################################################
14596
a1f29d55b5ee 8004281: build-infra: Move all jar creation to images target and put jars in images/lib
erikj
parents: 14527
diff changeset
  1115
16029
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1116
# Import nashorn.jar from nashorn dist dir.
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1117
$(IMAGES_OUTPUTDIR)/lib/ext/nashorn.jar: $(NASHORN_DIST)/nashorn.jar
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1118
	$(install-file)
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1119
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1120
##########################################################################################
4e88242da117 8008914: Add nashorn to the tl build
jjg
parents: 15688
diff changeset
  1121
13702
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
  1122
-include $(CUSTOM_MAKE_DIR)/CreateJars.gmk
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
  1123
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
  1124
##########################################################################################
efd6a05935b2 7197849: Update new build-infra makefiles
ohair
parents: 13583
diff changeset
  1125
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
  1126
all: $(JARS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
  1127
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
  1128
.PHONY: default all