jdk/make/common/internal/BinaryPlugs.gmk
author kvn
Wed, 05 Mar 2008 11:33:31 -0800
changeset 210 6da234892f4a
parent 2 90ce3da70b43
child 539 7952521a4ad3
permissions -rw-r--r--
6671250: In Parse::do_if() old Cmp node 'c' should be replaced with new one after BoolNode transformation Summary: In Parse::do_if() 'c' (CmpNode) node may be changed during BoolNode transformation so 'c' may became dead but the node is referenced later in the code. Reviewed-by: never
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
# Copyright 2007 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
# have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
########################################################################
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
# Definitions for openjdk plugs (used by both import and export)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
# Names of native shared libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
PLUG_JSOUND_LIBRARY=$(LIB_PREFIX)jsoundhs.$(LIBRARY_SUFFIX)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
PLUG_LIBRARY_NAMES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
    $(PLUG_JSOUND_LIBRARY)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
# Sub-directory where native shared libraries are located (e.g. jre/bin or...)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
PLUG_LOCATION_SUBDIR=$(ARCH_VM_SUBDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# Explicit classfile lists
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
# WARNING: These classlists will not work with pattern rules, only used in 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
#          shell commands.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
#          The \$$ patterns will fail in pattern rules, which want $$, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
#          but the $$ fails in shell commands. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
#          The shell commands are more important.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
#          Also, the $1 pattern in these names causes problems with the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
#          GNU make define feature, so you can't use these in define's.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
PLUG_JMF_CLASS_NAMES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
com/sun/jmx/snmp/SnmpDataTypeEnums.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
com/sun/jmx/snmp/SnmpDefinitions.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
com/sun/jmx/snmp/SnmpOid.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
com/sun/jmx/snmp/SnmpOidDatabase.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
com/sun/jmx/snmp/SnmpOidDatabaseSupport.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
com/sun/jmx/snmp/SnmpOidRecord.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
com/sun/jmx/snmp/SnmpOidTable.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
com/sun/jmx/snmp/SnmpOidTableSupport.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
com/sun/jmx/snmp/SnmpParameters.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
com/sun/jmx/snmp/SnmpPduPacket.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
com/sun/jmx/snmp/SnmpPeer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
com/sun/jmx/snmp/SnmpTimeticks.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
com/sun/jmx/snmp/SnmpVarBind.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
com/sun/jmx/snmp/SnmpVarBindList.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
com/sun/jmx/snmp/Timestamp.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
com/sun/jmx/snmp/daemon/SendQ.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
com/sun/jmx/snmp/daemon/SnmpInformRequest.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
com/sun/jmx/snmp/daemon/SnmpQManager.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
com/sun/jmx/snmp/daemon/SnmpRequestCounter.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
com/sun/jmx/snmp/daemon/SnmpResponseHandler.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
com/sun/jmx/snmp/daemon/SnmpSendServer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
com/sun/jmx/snmp/daemon/SnmpSession.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
com/sun/jmx/snmp/daemon/SnmpSocket.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
com/sun/jmx/snmp/daemon/SnmpTimerServer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
com/sun/jmx/snmp/daemon/WaitQ.class
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
PLUG_SOUND_CLASS_NAMES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
com/sun/media/sound/AbstractPlayer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
com/sun/media/sound/CircularBuffer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
com/sun/media/sound/HeadspaceInstrument.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
com/sun/media/sound/HeadspaceMixer\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
com/sun/media/sound/HeadspaceMixer\$$MidiLine.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
com/sun/media/sound/HeadspaceMixer\$$MidiLineInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
com/sun/media/sound/HeadspaceMixer\$$MixerInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
com/sun/media/sound/HeadspaceMixer\$$MixerReverbControl\$$MixerReverbType.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
com/sun/media/sound/HeadspaceMixer\$$MixerReverbControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
com/sun/media/sound/HeadspaceMixer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
com/sun/media/sound/HeadspaceMixerProvider.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
com/sun/media/sound/HeadspaceSample.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
com/sun/media/sound/HeadspaceSoundbank.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
com/sun/media/sound/HsbParser.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
com/sun/media/sound/MixerClip\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
com/sun/media/sound/MixerClip\$$MixerClipApplyReverbControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
com/sun/media/sound/MixerClip\$$MixerClipGainControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
com/sun/media/sound/MixerClip\$$MixerClipMuteControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
com/sun/media/sound/MixerClip\$$MixerClipPanControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
com/sun/media/sound/MixerClip\$$MixerClipSampleRateControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
com/sun/media/sound/MixerClip.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
com/sun/media/sound/MixerMidiChannel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
com/sun/media/sound/MixerSequencer\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
com/sun/media/sound/MixerSequencer\$$ControllerVectorElement.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
com/sun/media/sound/MixerSequencer\$$MixerSequencerInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
com/sun/media/sound/MixerSequencer\$$RecordingTrack.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
com/sun/media/sound/MixerSequencer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
com/sun/media/sound/MixerSequencerProvider.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
com/sun/media/sound/MixerSourceLine\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
com/sun/media/sound/MixerSourceLine\$$MixerSourceLineApplyReverbControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
com/sun/media/sound/MixerSourceLine\$$MixerSourceLineGainControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
com/sun/media/sound/MixerSourceLine\$$MixerSourceLineMuteControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
com/sun/media/sound/MixerSourceLine\$$MixerSourceLinePanControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
com/sun/media/sound/MixerSourceLine\$$MixerSourceLineSampleRateControl.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
com/sun/media/sound/MixerSourceLine.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
com/sun/media/sound/MixerSynth\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
com/sun/media/sound/MixerSynth\$$MixerSynthInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
com/sun/media/sound/MixerSynth\$$SynthReceiver.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
com/sun/media/sound/MixerSynth.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
com/sun/media/sound/MixerSynthProvider.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
com/sun/media/sound/MixerThread.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
com/sun/media/sound/RmfFileReader.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
com/sun/media/sound/SimpleInputDevice\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
com/sun/media/sound/SimpleInputDevice\$$InputDeviceDataLine.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
com/sun/media/sound/SimpleInputDevice\$$InputDevicePort.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
com/sun/media/sound/SimpleInputDevice\$$InputDevicePortInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
com/sun/media/sound/SimpleInputDevice.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
com/sun/media/sound/SimpleInputDeviceProvider\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
com/sun/media/sound/SimpleInputDeviceProvider\$$InputDeviceInfo.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
com/sun/media/sound/SimpleInputDeviceProvider.class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
PLUG_AWT_CLASS_NAMES = \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
java/awt/color/CMMException.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
java/awt/color/ColorSpace.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
java/awt/color/ICC_ColorSpace.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
java/awt/color/ICC_Profile\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
java/awt/color/ICC_Profile\$$2.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
java/awt/color/ICC_Profile\$$3.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
java/awt/color/ICC_Profile.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
java/awt/color/ICC_ProfileGray.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
java/awt/color/ICC_ProfileRGB.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
java/awt/image/BandedSampleModel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
java/awt/image/ColorConvertOp.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
java/awt/image/ComponentSampleModel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
java/awt/image/DataBuffer\$$1.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
java/awt/image/DataBuffer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
java/awt/image/DataBufferByte.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
java/awt/image/DataBufferInt.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
java/awt/image/DataBufferShort.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
java/awt/image/DataBufferUShort.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
java/awt/image/MultiPixelPackedSampleModel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
java/awt/image/Raster.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
java/awt/image/RenderedImage.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
java/awt/image/SampleModel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
java/awt/image/SinglePixelPackedSampleModel.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
java/awt/image/WritableRaster.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
java/awt/image/WritableRenderedImage.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
java/awt/image/renderable/ContextualRenderedImageFactory.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
java/awt/image/renderable/ParameterBlock.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
java/awt/image/renderable/RenderContext.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
java/awt/image/renderable/RenderableImage.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
java/awt/image/renderable/RenderableImageOp.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
java/awt/image/renderable/RenderableImageProducer.class \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
java/awt/image/renderable/RenderedImageFactory.class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
# Class list temp files (used by both import and export of plugs)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
PLUG_TEMPDIR=$(ABS_TEMPDIR)/plugs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
PLUG_CLASS_AREAS = jmf sound awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
PLUG_CLISTS = $(PLUG_CLASS_AREAS:%=$(PLUG_TEMPDIR)/%.clist)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
# Create jargs file command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
define plug-create-jargs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
$(SED) -e "s@^@-C $(CLASSDESTDIR) @" $< > $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
endef # plug-create-clist-jargs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
# Create clist (class name list) and jargs file (input to jar)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
#   Need these files to avoid long command lines which fail on some systems.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
$(PLUG_TEMPDIR)/jmf.clist:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
	@for i in $(PLUG_JMF_CLASS_NAMES) ; do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
	  $(ECHO) "$$i" >> $@; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
$(PLUG_TEMPDIR)/sound.clist:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
	@for i in $(PLUG_SOUND_CLASS_NAMES) ; do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
	  $(ECHO) "$$i" >> $@ ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
$(PLUG_TEMPDIR)/awt.clist:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
	@for i in $(PLUG_AWT_CLASS_NAMES) ; do \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
	  $(ECHO) "$$i" >> $@ ; \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
	done
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
$(PLUG_TEMPDIR)/all.clist: $(PLUG_CLISTS)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
	$(CAT) $(PLUG_CLISTS) > $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
$(PLUG_TEMPDIR)/jmf.jargs: $(PLUG_TEMPDIR)/jmf.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
	$(plug-create-jargs)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
$(PLUG_TEMPDIR)/sound.jargs: $(PLUG_TEMPDIR)/sound.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
	$(plug-create-jargs)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
$(PLUG_TEMPDIR)/awt.jargs: $(PLUG_TEMPDIR)/awt.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
	$(plug-create-jargs)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
$(PLUG_TEMPDIR)/all.jargs: $(PLUG_TEMPDIR)/all.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
	$(plug-create-jargs)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
# Specific to OPENJDK import of binary plugs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
ifdef OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
# Import 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
PLUG_IMPORT_DIR=$(BINARY_PLUGS_PATH)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
PLUG_IMPORT_JARFILE=$(BINARY_PLUGS_JARFILE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
# Import file command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
define import-binary-plug-file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
@$(ECHO) "PLUG IMPORT: $(@F)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
$(install-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
endef # import-binary-plug-file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
# Import classes command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
define import-binary-plug-classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
@$(MKDIR) -p $(CLASSDESTDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
@$(CAT) $1 | $(SED) -e 's/^/PLUG IMPORT: /'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
($(CD) $(CLASSDESTDIR) && $(BOOT_JAR_CMD) xf $(PLUG_IMPORT_JARFILE) @$1)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
endef # import-binary-plug-classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
# Import specific area classes (the classes are always created)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
import-binary-plug-jmf-classes: $(PLUG_IMPORT_JARFILE) $(PLUG_TEMPDIR)/jmf.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
	$(call import-binary-plug-classes,$(PLUG_TEMPDIR)/jmf.clist)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
import-binary-plug-sound-classes: $(PLUG_IMPORT_JARFILE) $(PLUG_TEMPDIR)/sound.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
	$(call import-binary-plug-classes,$(PLUG_TEMPDIR)/sound.clist)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
import-binary-plug-awt-classes: $(PLUG_IMPORT_JARFILE) $(PLUG_TEMPDIR)/awt.clist
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
	$(call import-binary-plug-classes,$(PLUG_TEMPDIR)/awt.clist)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
# Import all classes from the jar file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
import-binary-plug-jar: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
	     import-binary-plug-jmf-classes \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
	     import-binary-plug-sound-classes \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
	     import-binary-plug-awt-classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
# Import native libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
$(LIB_LOCATION)/$(PLUG_JSOUND_LIBRARY): \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    $(PLUG_IMPORT_DIR)/$(PLUG_LOCATION_SUBDIR)/$(PLUG_JSOUND_LIBRARY)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
	$(import-binary-plug-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
# Rules only used by lower level makefiles
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
import-binary-plug-jsound-library: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
    $(LIB_LOCATION)/$(PLUG_JSOUND_LIBRARY)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
# Binary plug start/complete messages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
import-binary-plugs-started:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
	@$(ECHO) "BinaryPlugs import started: `date`"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
	@$(ECHO) "BINARY_PLUGS_PATH=$(BINARY_PLUGS_PATH)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
import-binary-plugs-completed:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
	@$(ECHO) "BinaryPlugs import completed: `date`"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
# Import lib files (only if they don't exist already)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
import-binary-plugs-libs: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
    $(PLUG_LIBRARY_NAMES:%=$(LIB_LOCATION)/%)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
# Import everything
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
import-binary-plugs: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
    import-binary-plugs-started \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
    import-binary-plugs-libs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
    import-binary-plug-jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
    import-binary-plugs-completed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
# All these targets are phony (no filenames)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
.PHONY: import-binary-plugs-started  \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
	import-binary-plugs-completed \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
	import-binary-plugs-libs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
	import-binary-plugs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
	import-binary-plug-jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
        import-binary-plug-jmf-classes \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
        import-binary-plug-sound-classes \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
	import-binary-plug-awt-classes \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
        import-binary-plug-jsound-library
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
else # !OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
# Specific to exporting binary plugs for OPENJDK (e.g. OPENJDK is NOT defined)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
# Export names (See make/common/Defs.gmk for BINARY_PLUGS_JARNAME definition)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
PLUG_EXPORT_DIRNAME=openjdk-binary-plugs-image
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
PLUG_EXPORT_DIR=$(OUTPUTDIR)/$(PLUG_EXPORT_DIRNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
PLUG_EXPORT_JARFILE=$(PLUG_EXPORT_DIR)/jre/lib/$(BINARY_PLUGS_JARNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
90ce3da70b43 Initial load
duke
parents:
diff changeset
   304
# Export file command
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
define export-binary-plug-file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
@$(ECHO) "PLUG EXPORT: $(@F)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
$(install-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
endef # export-binary-plug-file
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
# OpenJDK Binary Plug License
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
$(PLUG_EXPORT_DIR)/LICENSE: $(CLOSED_SHARE_SRC)/doc/openjdk/binary-plugs/LICENSE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
	$(export-binary-plug-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
export-binary-plugs-license: $(PLUG_EXPORT_DIR)/LICENSE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
# Create jar file of plug classes (always created)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
$(PLUG_EXPORT_JARFILE): $(PLUG_TEMPDIR)/all.clist $(PLUG_TEMPDIR)/all.jargs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
	@$(prep-target)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
	@$(ECHO) "PLUG EXPORT: $(@F)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
	@$(CAT) $(PLUG_TEMPDIR)/all.clist | $(SED) -e 's/^/PLUG EXPORT: /'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
	$(BOOT_JAR_CMD) cf $@ @$(PLUG_TEMPDIR)/all.jargs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
export-binary-plugs-jar: $(PLUG_EXPORT_JARFILE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
# Export native libraries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
$(PLUG_EXPORT_DIR)/$(PLUG_LOCATION_SUBDIR)/$(PLUG_JSOUND_LIBRARY): \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
    $(LIB_LOCATION)/$(PLUG_JSOUND_LIBRARY)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
	$(export-binary-plug-file)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
# Export binary plug start/complete messages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
export-binary-plugs-started:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
	@$(ECHO) "BinaryPlugs export started: `date`"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
	@$(ECHO) "PLUG_EXPORT_DIR=$(PLUG_EXPORT_DIR)"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
	$(RM) -r $(PLUG_EXPORT_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
	@$(MKDIR) -p $(PLUG_EXPORT_DIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
	@$(MKDIR) -p $(PLUG_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
export-binary-plugs-completed:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
	@$(RM) -r $(PLUG_TEMPDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
	@$(ECHO) "BinaryPlugs export completed: `date`"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
# Export lib files (only if they don't exist already)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
export-binary-plugs-libs: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
    $(PLUG_LIBRARY_NAMES:%=$(PLUG_EXPORT_DIR)/$(PLUG_LOCATION_SUBDIR)/%)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
# Export everything
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
export-binary-plugs: \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
    export-binary-plugs-started \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
    export-binary-plugs-libs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
    export-binary-plugs-license \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
    export-binary-plugs-jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
    export-binary-plugs-completed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
# All these targets are phony (no filenames)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.PHONY: export-binary-plugs-started \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
        export-binary-plugs-license \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
        export-binary-plugs-jar \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
        export-binary-plugs-libs \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
        export-binary-plugs-completed \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
        export-binary-plugs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
# Rules that test the export and import of plugs (only when you can export)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
TEST_OUTPUTDIR=$(ABS_OUTPUTDIR)/../$(PLATFORM)-$(ARCH)-testing-plugs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
TEST_PLUG_COPY=$(TEST_OUTPUTDIR)/$(PLUG_EXPORT_DIRNAME)-testcopy
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
# Run export-binary-plugs first, then use this rule to test an import
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
test-binary-plugs: $(TEST_PLUG_COPY)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
	$(RM) -r $(TEST_OUTPUTDIR)/$(PLUG_EXPORT_DIRNAME)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
	$(MKDIR) -p $(TEST_OUTPUTDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
	@$(ECHO) "Testing import of plugs"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
	($(CD) $(JDK_TOPDIR)/make && \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
	    $(MAKE) OPENJDK=true \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
		ALT_OUTPUTDIR=$(TEST_OUTPUTDIR) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
		ALT_JDK_IMPORT_PATH=$(JDK_IMPORT_PATH) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
		ALT_BINARY_PLUGS_PATH=$(TEST_PLUG_COPY) \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
		import-binary-plugs )
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
	$(RM) -r $(TEST_OUTPUTDIR)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
	@$(ECHO) "Testing of plugs was successful"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
$(TEST_PLUG_COPY):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
	@$(ECHO) "Creating test plug copy"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
	$(RM) -r $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
	$(MKDIR) -p $(@D)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
	$(CP) -r -p $(PLUG_EXPORT_DIR) $@
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
.PHONY: test-binary-plugs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
endif # !OPENJDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396