jdk/makefiles/CreateJars.gmk
author lana
Tue, 03 Jul 2012 18:24:22 -0700
changeset 13160 248a16e49f55
parent 12892 3ef14bab6254
child 13164 72c5d01a857d
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12892
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     1
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
     2
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
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
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    33
include Tools.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    34
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    35
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    36
MAINMANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    37
BEANMANIFEST := $(JDK_TOPDIR)/make/javax/swing/beaninfo/manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    38
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    39
JARS:=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    40
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    41
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    42
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    43
JCONSOLE_JAR_DEPS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    44
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/sun/tools/jconsole/ -name "_the.package") \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    45
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/com/sun/tools/jconsole/ -name "_the.package")
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    46
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    47
$(eval $(call SetupArchive,BUILD_JCONSOLE_JAR,$(JCONSOLE_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    48
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    49
		SUFFIXES:=.class .gif .png,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    50
		INCLUDES:=sun/tools/jconsole com/sun/tools/jconsole,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    51
		JARMAIN:=sun.tools.jconsole.JConsole,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    52
		JAR:=$(JDK_OUTPUTDIR)/lib/jconsole.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    53
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    54
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    55
JARS+=$(JDK_OUTPUTDIR)/lib/jconsole.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    56
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    57
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    58
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    59
DNS_JAR_DEPS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    60
  $(shell $(FIND) $(JDK_OUTPUTDIR)/classes/sun/net/spi/nameservice/dns/ -name "_the.package") \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    61
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    62
$(eval $(call SetupArchive,BUILD_DNS_JAR,$(DNS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    63
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    64
		INCLUDES:=sun/net/spi/nameservice/dns,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    65
		EXTRA_FILES:=META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    66
		JAR:=$(JDK_OUTPUTDIR)/lib/ext/dnsns.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    67
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    68
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    69
JARS+=$(JDK_OUTPUTDIR)/lib/ext/dnsns.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    70
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    71
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    72
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    73
LOCALEDATA_INCLUDE_PATTERNS := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    74
	sun/text/resources/*_ar* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    75
	sun/text/resources/*_hi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    76
	sun/text/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    77
	sun/text/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    78
	sun/text/resources/*_ja* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    79
	sun/text/resources/*_ko* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    80
	sun/text/resources/*_th.* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    81
	sun/text/resources/*_th_* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    82
	sun/text/resources/*_vi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    83
	sun/text/resources/*_zh* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    84
	sun/text/resources/*Data_th \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    85
	sun/text/resources/thai_dict \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    86
	sun/util/resources/*_ar* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    87
	sun/util/resources/*_hi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    88
	sun/util/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    89
	sun/util/resources/*_iw* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    90
	sun/util/resources/*_ja* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    91
	sun/util/resources/*_ko* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    92
	sun/util/resources/*_th_* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    93
	sun/util/resources/*_th.* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    94
	sun/util/resources/*_vi* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    95
	sun/util/resources/*_zh*
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    96
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    97
LOCALEDATA_INCLUDES := $(patsubst $(JDK_OUTPUTDIR)/classes/%,%,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    98
	$(foreach i,$(LOCALEDATA_INCLUDE_PATTERNS), $(wildcard $(JDK_OUTPUTDIR)/classes/$i)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
    99
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   100
$(eval $(call SetupArchive,BUILD_LOCALEDATA_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   101
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   102
		SUFFIXES:=.class _dict _th,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   103
		INCLUDES:=$(LOCALEDATA_INCLUDES),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   104
		JAR:=$(JDK_OUTPUTDIR)/lib/ext/localedata.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   105
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   106
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   107
JARS+=$(JDK_OUTPUTDIR)/lib/ext/localedata.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   108
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   109
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   110
# rt.jar and resources.jar are being built in the same way as in the old build. They require
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   111
# the files to be in a certain order and converting that is not easy and will not be needed
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   112
# in jigsaw anyway.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   113
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   114
# Exclude list for rt.jar and resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   115
RT_JAR_EXCLUDES := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   116
	com/sun/javadoc \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   117
	com/sun/jdi \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   118
	com/sun/jarsigner \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   119
	com/sun/source \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   120
	com/sun/istack/internal/tools \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   121
	META-INF/services/com.sun.jdi.connect.Connector \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   122
	META-INF/services/com.sun.jdi.connect.spi.TransportService \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   123
	META-INF/services/com.sun.tools.xjc.Plugin \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   124
	com/sun/tools \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   125
	sun/jvmstat \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   126
	sun/nio/cs/ext \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   127
	sun/awt/HKSCS.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   128
	sun/awt/motif/X11GB2312\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   129
	sun/awt/motif/X11GB2312\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   130
	sun/awt/motif/X11GB2312.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   131
	sun/awt/motif/X11GBK\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   132
	sun/awt/motif/X11GBK.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   133
	sun/awt/motif/X11KSC5601\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   134
	sun/awt/motif/X11KSC5601\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   135
	sun/awt/motif/X11KSC5601.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   136
	META-INF/services/java.nio.charset.spi.CharsetProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   137
	sun/rmi/rmic \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   138
	sun/tools/asm \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   139
	sun/tools/java \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   140
	sun/tools/javac \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   141
	com/sun/tools/classfile \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   142
	com/sun/tools/javap \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   143
	sun/tools/jcmd \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   144
	sun/tools/jconsole \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   145
	sun/tools/jps \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   146
	sun/tools/jstat \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   147
	sun/tools/jstatd \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   148
	sun/tools/native2ascii \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   149
	sun/tools/serialver \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   150
	sun/tools/tree \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   151
	sun/tools/util \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   152
	sun/security/tools/JarBASE64Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   153
	sun/security/tools/JarSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   154
	sun/security/tools/JarSignerParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   155
	sun/security/tools/JarSignerResources.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   156
	sun/security/tools/JarSignerResources_ja.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   157
	sun/security/tools/JarSignerResources_zh_CN.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   158
	sun/security/tools/SignatureFile\$$$$Block.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   159
	sun/security/tools/SignatureFile.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   160
	sun/security/tools/TimestampedSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   161
	sun/security/provider/Sun.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   162
	sun/security/rsa/SunRsaSign.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   163
	sun/security/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   164
	sun/security/ec/ECDHKeyAgreement.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   165
	sun/security/ec/ECDSASignature\$$$$Raw.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   166
	sun/security/ec/ECDSASignature\$$$$SHA1.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   167
	sun/security/ec/ECDSASignature\$$$$SHA224.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   168
	sun/security/ec/ECDSASignature\$$$$SHA256.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   169
	sun/security/ec/ECDSASignature\$$$$SHA384.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   170
	sun/security/ec/ECDSASignature\$$$$SHA512.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   171
	sun/security/ec/ECDSASignature.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   172
	sun/security/ec/ECKeyPairGenerator.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   173
	sun/security/ec/SunEC\$$$$1.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   174
	sun/security/ec/SunEC.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   175
	sun/security/ec/SunECEntries.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   176
	sun/security/pkcs11 \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   177
	com/sun/net/ssl/internal/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   178
	javax/crypto \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   179
	sun/security/internal \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   180
	com/sun/crypto/provider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   181
	META-INF/services/com.sun.tools.attach.spi.AttachProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   182
	com/sun/tools/attach \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   183
	org/relaxng/datatype \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   184
	com/sun/codemodel \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   185
	com/sun/xml/internal/dtdparser \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   186
	com/sun/xml/internal/rngom \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   187
	com/sun/xml/internal/xsom \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   188
	com/sun/tools/script/shell \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   189
	sun/tools/attach \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   190
	sun/tools/jstack \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   191
	sun/tools/jinfo \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   192
	sun/tools/jmap \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   193
	sun/net/spi/nameservice/dns \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   194
	META-INF/services/sun.net.spi.nameservice.NameServiceDescriptor \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   195
	javax/swing/beaninfo \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   196
	javax/swing/AbstractButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   197
	javax/swing/BoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   198
	javax/swing/JAppletBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   199
	javax/swing/JButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   200
	javax/swing/JCheckBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   201
	javax/swing/JCheckBoxMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   202
	javax/swing/JColorChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   203
	javax/swing/JComboBoxBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   204
	javax/swing/JComponentBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   205
	javax/swing/JDesktopPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   206
	javax/swing/JDialogBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   207
	javax/swing/JEditorPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   208
	javax/swing/JFileChooserBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   209
	javax/swing/JFormattedTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   210
	javax/swing/JFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   211
	javax/swing/JInternalFrameBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   212
	javax/swing/JLabelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   213
	javax/swing/JLayeredPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   214
	javax/swing/JListBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   215
	javax/swing/JMenuBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   216
	javax/swing/JMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   217
	javax/swing/JMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   218
	javax/swing/JOptionPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   219
	javax/swing/JPanelBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   220
	javax/swing/JPasswordFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   221
	javax/swing/JPopupMenuBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   222
	javax/swing/JProgressBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   223
	javax/swing/JRadioButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   224
	javax/swing/JRadioButtonMenuItemBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   225
	javax/swing/JScrollBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   226
	javax/swing/JScrollPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   227
	javax/swing/JSeparatorBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   228
	javax/swing/JSliderBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   229
	javax/swing/JSpinnerBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   230
	javax/swing/JSplitPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   231
	javax/swing/JTabbedPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   232
	javax/swing/JTableBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   233
	javax/swing/JTextAreaBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   234
	javax/swing/JTextFieldBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   235
	javax/swing/JTextPaneBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   236
	javax/swing/JToggleButtonBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   237
	javax/swing/JToolBarBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   238
	javax/swing/JTreeBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   239
	javax/swing/JWindowBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   240
	javax/swing/SwingBeanInfoBase.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   241
	javax/swing/text/JTextComponentBeanInfo.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   242
	sun/swing/BeanInfoUtils.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   243
	$(LOCALEDATA_INCLUDES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   244
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   245
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   246
ifndef JAVASE_EMBEDDED
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   247
RT_JAR_EXCLUDES += \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   248
	com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   249
	oracle/jrockit/jfr
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   250
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   251
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   252
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   253
# Find all files in the classes dir to use as dependencies. This could be more fine granular.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   254
ALL_FILES_IN_CLASSES := $(shell $(FIND) $(JDK_OUTPUTDIR)/classes -type f \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   255
			| $(GREP) -v -e '/_the\.*' -e '^_the\.*')
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   256
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   257
RT_JAR_MANIFEST_FILE := $(JDK_OUTPUTDIR)/lib/_the.rt.jar_manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   258
RESOURCE_JAR_MANIFEST_FILE := $(JDK_OUTPUTDIR)/lib/_the.resources.jar_manifest
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   259
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   260
$(RT_JAR_MANIFEST_FILE): $(MAINMANIFEST) $(BEANMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   261
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   262
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   263
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   264
	       $(MAINMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   265
	$(ECHO) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   266
	$(CAT) $(BEANMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   267
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   268
$(RESOURCE_JAR_MANIFEST_FILE): $(MAINMANIFEST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   269
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   270
	$(SED) -e "s#@@RELEASE@@#$(RELEASE)#" 		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   271
	       -e "s#@@COMPANY_NAME@@#$(COMPANY_NAME)#" \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   272
	       $(MAINMANIFEST) >> $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   273
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   274
$(JDK_OUTPUTDIR)/lib/_the.jars.exclude:
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   275
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   276
	$(call ListPathsSafely,RT_JAR_EXCLUDES,\n, >> $@)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   277
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   278
$(JDK_OUTPUTDIR)/lib/_the.jars.contents: $(BUILD_TOOLS) $(JDK_OUTPUTDIR)/lib/_the.jars.exclude \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   279
					 $(ALL_FILES_IN_CLASSES)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   280
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   281
	$(RM) $@.temp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   282
	($(CD) $(JDK_OUTPUTDIR)/classes && \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   283
	    $(TOOL_JARREORDER) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   284
		-o  $@.temp $(JDK_OUTPUTDIR)/lib/classlist $(JDK_OUTPUTDIR)/lib/_the.jars.exclude . )
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   285
	$(MV) $@.temp $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   286
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   287
$(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents: $(JDK_OUTPUTDIR)/lib/_the.jars.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   288
	$(GREP) -e '\.class$$' $(JDK_OUTPUTDIR)/lib/_the.jars.contents > $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   289
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   290
$(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents: $(JDK_OUTPUTDIR)/lib/_the.jars.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   291
	$(GREP) -v -e '\.class$$' -e '/_the\.*' -e '^_the\.*' $(JDK_OUTPUTDIR)/lib/_the.jars.contents > $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   292
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   293
$(JDK_OUTPUTDIR)/lib/rt.jar: $(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents $(RT_JAR_MANIFEST_FILE)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   294
	$(ECHO) Creating rt.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   295
	$(CD) $(JDK_OUTPUTDIR)/classes && \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   296
	    $(JAR) cfm $@ $(RT_JAR_MANIFEST_FILE) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   297
	        @$(JDK_OUTPUTDIR)/lib/_the.rt.jar.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   298
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   299
$(JDK_OUTPUTDIR)/lib/resources.jar: $(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   300
				    $(RESOURCE_JAR_MANIFEST_FILE)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   301
	$(ECHO) Creating resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   302
	$(CD) $(JDK_OUTPUTDIR)/classes && \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   303
	    $(JAR) cfm $@ $(RESOURCE_JAR_MANIFEST_FILE) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   304
	        @$(JDK_OUTPUTDIR)/lib/_the.resources.jar.contents
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   305
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   306
JARS+=$(JDK_OUTPUTDIR)/lib/rt.jar $(JDK_OUTPUTDIR)/lib/resources.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   307
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   308
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   309
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   310
CHARSETS_JAR_DEPS :=
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   311
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   312
ifneq ($(HOST_OS), windows)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   313
    CHARSETS_EXTRA_FILES:=sun/awt/motif/X11GBK.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   314
                          sun/awt/motif/X11GB2312\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   315
                          sun/awt/motif/X11GB2312.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   316
                          sun/awt/motif/X11KSC5601\$$$$Decoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   317
                          sun/awt/motif/X11KSC5601\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   318
                          sun/awt/motif/X11GB2312\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   319
                          sun/awt/motif/X11GBK\$$$$Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   320
                          sun/awt/motif/X11KSC5601.class
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   321
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   322
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   323
$(eval $(call SetupArchive,BUILD_CHARSETS_JAR,$(CHARSETS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   324
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   325
		SUFFIXES:=.class .dat,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   326
		INCLUDES:=sun/nio/cs/ext,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   327
		EXTRA_FILES := sun/awt/HKSCS.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   328
			       $(CHARSETS_EXTRA_FILES) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   329
                               META-INF/services/java.nio.charset.spi.CharsetProvider, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   330
		JAR:=$(JDK_OUTPUTDIR)/lib/charsets.jar, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   331
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   332
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   333
JARS+=$(JDK_OUTPUTDIR)/lib/charsets.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   334
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   335
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   336
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   337
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   338
    $(eval $(call SetupArchive,BUILD_JFR_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   339
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   340
		INCLUDES:=com/oracle/jrockit/jfr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   341
			  oracle/jrockit/jfr,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   342
		JAR:=$(JDK_OUTPUTDIR)/lib/jfr.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   343
		SKIP_METAINF:=true,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   344
		MANIFEST:=$(MAINMANIFEST)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   345
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   346
    JARS+=$(JDK_OUTPUTDIR)/lib/jfr.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   347
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   348
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   349
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   350
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   351
$(eval $(call SetupArchive,BUILD_JSSE_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   352
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   353
		INCLUDES:=sun/security/provider/Sun.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   354
			  sun/security/rsa/SunRsaSign.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   355
			  sun/security/ssl \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   356
			  com/sun/net/ssl/internal/ssl,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   357
		JAR:=$(JDK_OUTPUTDIR)/lib/jsse.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   358
		SKIP_METAINF:=true,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   359
		MANIFEST:=$(MAINMANIFEST)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   360
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   361
JARS+=$(JDK_OUTPUTDIR)/lib/jsse.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   362
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   363
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   364
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   365
ifneq ($(PLATFORM)-$(ARCH_DATA_MODEL),windows-64)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   366
    SUNPKCS11_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunpkcs11.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   367
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   368
    ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   369
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   370
        SUNPKCS11_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/pkcs11/sunpkcs11.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   371
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   372
        $(SUNPKCS11_JAR_DST) : $(SUNPKCS11_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   373
		@$(ECHO) "\n>>>Installing prebuilt SunPKCS11 provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   374
		$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   375
		$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   376
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   377
    else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   378
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   379
         $(eval $(call SetupArchive,BUILD_SUNPKCS11_JAR,$(SUNPKCS11_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   380
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   381
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   382
		INCLUDES:=sun/security/pkcs11,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   383
		JAR:=$(SUNPKCS11_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   384
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   385
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   386
    endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   387
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   388
    JARS += $(SUNPKCS11_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   389
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   390
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   391
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   392
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   393
SUNEC_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunec.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   394
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   395
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   396
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   397
SUNEC_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ec/sunec.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   398
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   399
$(SUNEC_JAR_DST) : $(SUNEC_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   400
	@$(ECHO) "\n>>>Installing prebuilt SunEC provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   401
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   402
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   403
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   404
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   405
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   406
$(eval $(call SetupArchive,BUILD_SUNEC_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   407
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   408
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   409
		INCLUDES:=sun/security/ec,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   410
		EXCLUDE_FILES := sun/security/ec/ECKeyFactory.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   411
			sun/security/ec/ECParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   412
			sun/security/ec/ECPrivateKeyImpl.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   413
			sun/security/ec/ECPublicKeyImpl.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   414
			sun/security/ec/NamedCurve.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   415
			sun/security/ec/ECKeyFactory*,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   416
		JAR:=$(SUNEC_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   417
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   418
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   419
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   420
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   421
JARS += $(SUNEC_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   422
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   423
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   424
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   425
$(eval $(call SetupArchive,BUILD_SWINGBEANS_JAR,,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   426
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   427
		SUFFIXES:=BeanInfo.class .gif,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   428
		INCLUDES:=javax/swing sun/swing,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   429
		EXCLUDES:=javax/swing/plaf,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   430
		EXTRA_FILES:=javax/swing/SwingBeanInfoBase.class sun/swing/BeanInfoUtils.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   431
		JAR:=$(JDK_OUTPUTDIR)/lib/dt.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   432
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   433
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   434
JARS+=$(JDK_OUTPUTDIR)/lib/dt.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   435
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   436
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   437
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   438
SUNJCE_PROVIDER_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunjce_provider.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   439
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   440
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   441
    SUNJCE_PROVIDER_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/sunjce_provider.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   442
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   443
    $(SUNJCE_PROVIDER_JAR_DST) : $(SUNJCE_PROVIDER_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   444
	@$(ECHO) "\n>>>Installing prebuilt SunJCE provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   445
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   446
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   447
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   448
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   449
    $(eval $(call SetupArchive,BUILD_SUNJCE_PROVIDER_JAR,$(SUNJCE_PROVIDER_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   450
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   451
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   452
		INCLUDES:= com/sun/crypto/provider,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   453
		JAR:=$(SUNJCE_PROVIDER_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   454
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   455
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   456
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   457
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   458
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   459
JARS += $(SUNJCE_PROVIDER_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   460
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   461
JCE_JAR_DST := $(JDK_OUTPUTDIR)/lib/jce.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   462
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   463
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   464
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   465
JCE_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/jce/jce.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   466
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   467
$(JCE_JAR_DST) : $(JCE_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   468
	@$(ECHO) "\n>>>Installing prebuilt jce.jar..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   469
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   470
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   471
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   472
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   473
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   474
$(eval $(call SetupArchive,BUILD_JCE_JAR,$(JCE_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   475
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   476
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   477
		INCLUDES:= javax/crypto sun/security/internal,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   478
		JAR:=$(JCE_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   479
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   480
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   481
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   482
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   483
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   484
JARS += $(JCE_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   485
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   486
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   487
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   488
ifdef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   489
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   490
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   491
# TODO fix so that SetupArchive does not write files into SRCS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   492
#   then we don't need this extra copying
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   493
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   494
US_EXPORT_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/US_export_policy.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   495
US_EXPORT_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/unlimited
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   496
US_EXPORT_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/US_export_policy_jar.tmp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   497
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   498
$(US_EXPORT_POLICY_JAR_TMP)/% : $(US_EXPORT_POLICY_JAR_SRC_DIR)/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   499
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   500
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   501
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   502
US_EXPORT_POLICY_JAR_DEPS := $(US_EXPORT_POLICY_JAR_TMP)/default_US_export.policy
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   503
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   504
$(eval $(call SetupArchive,BUILD_US_EXPORT_POLICY_JAR,$(US_EXPORT_POLICY_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   505
		SRCS:=$(US_EXPORT_POLICY_JAR_TMP), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   506
		SUFFIXES:= .policy,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   507
		JAR:=$(US_EXPORT_POLICY_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   508
		EXTRA_MANIFEST_ATTR := Crypto-Strength: unlimited, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   509
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   510
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   511
JARS += $(US_EXPORT_POLICY_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   512
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   513
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   514
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   515
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   516
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   517
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   518
ifdef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   519
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   520
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   521
# TODO fix so that SetupArchive does not write files into SRCS
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   522
#   then we don't need this extra copying
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   523
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   524
LOCAL_POLICY_JAR_DST := $(JDK_OUTPUTDIR)/lib/security/local_policy.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   525
LOCAL_POLICY_JAR_SRC_DIR := $(JDK_TOPDIR)/make/javax/crypto/policy/limited
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   526
LOCAL_POLICY_JAR_TMP := $(JDK_OUTPUTDIR)/local_policy_jar.tmp
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   527
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   528
LOCAL_POLICY_JAR_DEPS := $(LOCAL_POLICY_JAR_TMP)/exempt_local.policy $(LOCAL_POLICY_JAR_TMP)/default_local.policy
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   529
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   530
$(LOCAL_POLICY_JAR_TMP)/% : $(LOCAL_POLICY_JAR_SRC_DIR)/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   531
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   532
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   533
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   534
$(eval $(call SetupArchive,BUILD_LOCAL_POLICY_JAR,$(LOCAL_POLICY_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   535
		SRCS:=$(LOCAL_POLICY_JAR_TMP),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   536
		SUFFIXES:= .policy,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   537
		JAR:=$(LOCAL_POLICY_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   538
		EXTRA_MANIFEST_ATTR := Crypto-Strength: limited, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   539
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   540
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   541
JARS += $(LOCAL_POLICY_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   542
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   543
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   544
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
ifeq ($(PLATFORM),windows)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   548
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   549
SUNMSCAPI_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/sunmscapi.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   550
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   551
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   552
SUNMSCAPI_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/mscapi/sunmscapi.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   553
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   554
$(SUNMSCAPI_JAR_DST) : $(SUNMSCAPI_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   555
	@$(ECHO) "\n>>>Installing prebuilt SunMSCAPI provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   556
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   557
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   558
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   559
else
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   560
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   561
$(eval $(call SetupArchive,BUILD_SUNMSCAPI_JAR,$(SUNMSCAPI_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   562
		SRCS:=$(JDK_OUTPUTDIR)/classes, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   563
		SUFFIXES:=.class,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   564
		INCLUDES:= sun/security/mscapi,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   565
		JAR:=$(SUNMSCAPI_JAR_DST), \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   566
		MANIFEST := $(JDK_TOPDIR)/make/tools/manifest.mf, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   567
		EXTRA_MANIFEST_ATTR := Extension-Name: javax.crypto\nImplementation-Vendor-Id: com.sun, \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   568
		SKIP_METAINF := true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   569
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   570
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   571
JARS += $(SUNMSCAPI_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   572
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   573
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   574
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   575
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   576
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   577
ifeq ($(PLATFORM),solaris)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   578
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   579
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   580
UCRYPTO_JAR_DST := $(JDK_OUTPUTDIR)/lib/ext/ucrypto.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   581
UCRYPTO_JAR_SRC := $(JDK_TOPDIR)/make/closed/tools/crypto/ucrypto/ucrypto.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   582
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   583
$(UCRYPTO_JAR_DST) : $(UCRYPTO_JAR_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   584
	@$(ECHO) "\n>>>Installing prebuilt OracleUcrypto provider..."
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   585
	$(RM) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   586
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   587
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   588
JARS += $(UCRYPTO_JAR_DST)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   589
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   590
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   591
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   592
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   593
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   594
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   595
TOOLS_JAR_INCLUDES := \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   596
	sun/tools/asm		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   597
	sun/tools/jar		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   598
	sun/tools/java		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   599
	sun/tools/javac		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   600
	sun/tools/jcmd		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   601
	sun/tools/jps		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   602
	sun/tools/jstat		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   603
	sun/tools/jstatd	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   604
	sun/tools/native2ascii	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   605
	sun/tools/serialver	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   606
	sun/tools/tree		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   607
	sun/tools/util		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   608
	sun/security/tools/JarBASE64Encoder.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   609
	sun/security/tools/JarSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   610
	sun/security/tools/JarSignerParameters.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   611
	sun/security/tools/JarSignerResources.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   612
	sun/security/tools/JarSignerResources_ja.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   613
	sun/security/tools/JarSignerResources_zh_CN.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   614
	sun/security/tools/SignatureFile* \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   615
	sun/security/tools/TimestampedSigner.class \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   616
	sun/rmi/rmic		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   617
	sun/applet		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   618
	sun/jvmstat		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   619
	com/sun/javadoc		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   620
	com/sun/jdi		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   621
	com/sun/jarsigner	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   622
	com/sun/source          \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   623
	com/sun/tools/classfile \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   624
	com/sun/tools/doclets   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   625
	com/sun/tools/example/debug/expr \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   626
	com/sun/tools/example/debug/tty  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   627
	com/sun/tools/extcheck  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   628
	com/sun/tools/hat       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   629
	com/sun/tools/javac     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   630
	com/sun/tools/javadoc   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   631
	com/sun/tools/javah     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   632
	com/sun/tools/javap     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   633
	com/sun/tools/corba     \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   634
	com/sun/tools/internal/xjc       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   635
	com/sun/tools/internal/ws       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   636
	com/sun/istack/internal/tools       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   637
	com/sun/tools/internal/jxc/ap   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   638
	com/sun/tools/internal/ws/wscompile/plugin/at_generated \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   639
        com/sun/codemodel       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   640
        com/sun/tools/internal/jxc             \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   641
        com/sun/xml/internal/rngom       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   642
        com/sun/xml/internal/xsom       \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   643
        org/relaxng/datatype   \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   644
	com/sun/xml/internal/dtdparser \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   645
	com/sun/tools/jdi	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   646
	com/sun/tools/script/shell	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   647
	com/sun/tools/attach	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   648
	sun/tools/attach	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   649
	sun/tools/jstack        \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   650
	sun/tools/jinfo         \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   651
	sun/tools/jmap
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   652
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   653
$(eval $(call SetupArchive,BUILD_TOOLS_JAR,$(TOOLS_JAR_DEPS),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   654
		SRCS:=$(JDK_OUTPUTDIR)/classes,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   655
		SUFFIXES:=.class .prp .gif .properties .xml .css .xsd .js .html .txt .java \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   656
			  Tool aliasmap options,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   657
		INCLUDES:=$(TOOLS_JAR_INCLUDES),\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   658
		EXTRA_FILES:=META-INF/services/com.sun.jdi.connect.Connector \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   659
			     META-INF/services/com.sun.jdi.connect.spi.TransportService \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   660
			     META-INF/services/com.sun.tools.attach.spi.AttachProvider \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   661
			     META-INF/services/com.sun.tools.internal.ws.wscompile.Plugin \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   662
			     META-INF/services/com.sun.tools.internal.xjc.Plugin,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   663
		JAR:=$(JDK_OUTPUTDIR)/lib/tools.jar,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   664
		SKIP_METAINF:=true))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   665
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   666
JARS+=$(JDK_OUTPUTDIR)/lib/tools.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   667
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   668
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   669
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   670
include $(JDK_TOPDIR)/makefiles/docs/CORE_PKGS.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   671
include $(JDK_TOPDIR)/makefiles/docs/NON_CORE_PKGS.gmk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   672
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   673
# The compiler should not issue a "Proprietary" warning when compiling
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   674
# classes in the com.sun.java.swing.plaf packages, since we've always
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   675
# allowed, and even advocated, extending them (see bug 6476749).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   676
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   677
# 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
   678
# compiler warnings for non-core packages. The correct way is to document
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   679
# 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
   680
# definition.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   681
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   682
# Swing has taken this approach only as a temporary measure to avoid
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   683
# the compiler warnings until we can properly document these packages.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   684
# This is covered under 6491853.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   685
EXCLUDE_PROPWARN_PKGS = com.sun.java.swing.plaf.windows  \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   686
                        com.sun.java.swing.plaf.motif    \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   687
                        com.sun.java.swing.plaf.gtk
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   688
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   689
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   690
# Include the exported private packages in ct.sym.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   691
# This is an interim solution until the ct.sym is replaced
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   692
# with a new module system (being discussed for JDK 8).
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   693
#
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   694
EXPORTED_PRIVATE_PKGS = com.sun.servicetag \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   695
                        com.oracle.net \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   696
                        com.oracle.nio
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   697
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   698
$(IMAGES_OUTPUTDIR)/symbols/_the.symbols: $(JDK_OUTPUTDIR)/lib/rt.jar
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   699
	$(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols/META-INF/sym
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   700
	$(JAVA) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   701
		-Xbootclasspath/a:$(JDK_OUTPUTDIR)/classes \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   702
		$(JAVAC_JARS) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   703
	    -XDprocess.packages -proc:only \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   704
	    -processor com.sun.tools.javac.sym.CreateSymbols \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   705
	    -Acom.sun.tools.javac.sym.Jar=$(JDK_OUTPUTDIR)/lib/rt.jar \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   706
	    -Acom.sun.tools.javac.sym.Dest=$(IMAGES_OUTPUTDIR)/symbols/META-INF/sym/rt.jar \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   707
	    $(CORE_PKGS) $(NON_CORE_PKGS) $(EXCLUDE_PROPWARN_PKGS) $(EXPORTED_PRIVATE_PKGS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   708
	$(TOUCH) $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   709
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   710
MAKE_SURE_DIR_EXISTS_DUMMY := $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/symbols)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   711
$(eval $(call SetupArchive,BUILD_CT_SYM,$(IMAGES_OUTPUTDIR)/symbols/_the.symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   712
		SRCS:=$(IMAGES_OUTPUTDIR)/symbols,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   713
		INCLUDES:=META-INF/sym,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   714
		JAR:=$(JDK_OUTPUTDIR)/lib/ct.sym))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   715
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   716
JARS+=$(JDK_OUTPUTDIR)/lib/ct.sym
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   717
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   718
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   719
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   720
SRC_ZIP_INCLUDES = \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   721
	java/applet			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   722
	java/awt			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   723
	java/beans			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   724
	java/io				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   725
	java/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   726
	java/math			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   727
	java/net			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   728
	java/nio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   729
	java/rmi			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   730
	java/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   731
	java/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   732
	java/text			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   733
	java/util			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   734
	com/sun/corba			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   735
	com/sun/image/codec/jpeg	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   736
	com/sun/imageio                 \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   737
	com/sun/java/swing		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   738
	com/sun/javadoc			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   739
	com/sun/jmx			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   740
	com/sun/source			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   741
	com/sun/naming			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   742
	com/sun/security/auth		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   743
	com/sun/security/jgss		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   744
	javax/accessibility		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   745
	javax/annotation		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   746
	javax/script			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   747
	javax/imageio			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   748
	javax/lang			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   749
	javax/management		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   750
	javax/naming			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   751
	javax/print			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   752
	javax/rmi			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   753
	javax/security			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   754
	javax/sound			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   755
	javax/sql			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   756
	javax/swing			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   757
	javax/tools			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   758
	javax/xml			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   759
	com/sun/org/apache		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   760
	com/sun/java_cup		\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   761
	com/sun/jlex	        	\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   762
	org/ietf			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   763
	org/omg				\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   764
	org/w3c/dom			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   765
	org/xml/sax			\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   766
	sunw
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   767
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   768
SRC_ZIP_SRCS = $(JDK_TOPDIR)/src/share/classes $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/classes
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   769
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gensrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   770
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/impsrc
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   771
SRC_ZIP_SRCS += $(JDK_OUTPUTDIR)/gendocsrc_rmic
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   772
ifndef OPENJDK
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   773
  SRC_ZIP_SRCS += $(JDK_TOPDIR)/src/closed/share/classes
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   774
endif
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   775
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   776
# Need to copy launcher src files into desired directory structure
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   777
# before zipping the sources.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   778
LAUNCHER_SRC_FILES := $(wildcard $(JDK_TOPDIR)/src/share/bin/*) \
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   779
                      $(wildcard $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/bin/java_md*)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   780
LAUNCHER_ZIP_SRC := $(patsubst $(JDK_TOPDIR)/src/share/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   781
		    $(patsubst $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/bin/%,$(IMAGES_OUTPUTDIR)/src/launcher/%,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   782
			$(LAUNCHER_SRC_FILES)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   783
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   784
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/share/bin/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   785
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   786
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   787
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   788
$(IMAGES_OUTPUTDIR)/src/launcher/%: $(JDK_TOPDIR)/src/$(LEGACY_HOST_OS_API)/bin/%
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   789
	$(MKDIR) -p $(@D)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   790
	$(CP) $< $@
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   791
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   792
$(IMAGES_OUTPUTDIR)/src.zip: $(LAUNCHER_ZIP_SRC)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   793
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   794
# This dir needs to exsist before macro is evaluated to avoid warning from find.
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   795
MAKE_SURE_DIR_EXISTS_DUMMY := $(shell $(MKDIR) -p $(IMAGES_OUTPUTDIR)/src)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   796
$(eval $(call SetupZipArchive,BUILD_SRC_ZIP,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   797
		SRC:=$(SRC_ZIP_SRCS) $(IMAGES_OUTPUTDIR)/src,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   798
		INCLUDES:=$(SRC_ZIP_INCLUDES) launcher,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   799
		SUFFIXES:=.java .c .h,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   800
		ZIP:=$(IMAGES_OUTPUTDIR)/src.zip,\
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   801
		EXTRA_DEPS:=$(LAUNCHER_ZIP_SRC)))
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   802
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   803
JARS+=$(IMAGES_OUTPUTDIR)/src.zip
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   804
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   805
##########################################################################################
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   806
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   807
all: $(JARS)
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   808
3ef14bab6254 7170079: Adjustments to build-infra makefiles
erikj
parents:
diff changeset
   809
.PHONY: default all