27568
|
1 |
#
|
|
2 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
4 |
#
|
|
5 |
# This code is free software; you can redistribute it and/or modify it
|
|
6 |
# under the terms of the GNU General Public License version 2 only, as
|
|
7 |
# published by the Free Software Foundation. Oracle designates this
|
|
8 |
# particular file as subject to the "Classpath" exception as provided
|
|
9 |
# by Oracle in the LICENSE file that accompanied this code.
|
|
10 |
#
|
|
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that
|
|
15 |
# accompanied this code).
|
|
16 |
#
|
|
17 |
# You should have received a copy of the GNU General Public License version
|
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
20 |
#
|
|
21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
22 |
# or visit www.oracle.com if you need additional information or have any
|
|
23 |
# questions.
|
|
24 |
#
|
|
25 |
|
|
26 |
default: all
|
|
27 |
|
|
28 |
include $(SPEC)
|
|
29 |
include MakeBase.gmk
|
|
30 |
include JavaCompilation.gmk
|
|
31 |
include IdlCompilation.gmk
|
|
32 |
include SetupJavaCompilers.gmk
|
|
33 |
|
|
34 |
################################################################################
|
|
35 |
|
|
36 |
$(eval $(call SetupJavaCompilation,BUILD_TOOLS_CORBA, \
|
|
37 |
SETUP := GENERATE_OLDBYTECODE, \
|
|
38 |
SRC := $(CORBA_TOPDIR)/make/src/classes, \
|
|
39 |
BIN := $(BUILDTOOLS_OUTPUTDIR)/corba_tools_classes))
|
|
40 |
|
|
41 |
TOOL_LOGUTIL_CMD := $(JAVA) -cp $(BUILDTOOLS_OUTPUTDIR)/corba_tools_classes \
|
|
42 |
build.tools.logutil.MC
|
|
43 |
|
|
44 |
$(eval $(call SetupJavaCompilation,BUILD_IDLJ, \
|
|
45 |
SETUP := GENERATE_OLDBYTECODE, \
|
|
46 |
SRC := $(CORBA_TOPDIR)/src/java.corba/share/classes, \
|
|
47 |
BIN := $(BUILDTOOLS_OUTPUTDIR)/idlj_classes, \
|
|
48 |
COPY := .prp, \
|
|
49 |
INCLUDES := com/sun/tools/corba/se/idl, \
|
|
50 |
EXCLUDE_FILES := ResourceBundleUtil.java))
|
|
51 |
|
|
52 |
# Force the language to english for predictable source code generation.
|
|
53 |
TOOL_IDLJ_CMD := $(JAVA) -cp $(BUILDTOOLS_OUTPUTDIR)/idlj_classes \
|
|
54 |
-Duser.language=en com.sun.tools.corba.se.idl.toJavaPortable.Compile
|
|
55 |
|
|
56 |
################################################################################
|
|
57 |
|
|
58 |
EXCEPTION_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging
|
|
59 |
LOGWRAPPER_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/java.corba/_logwrappers
|
|
60 |
|
|
61 |
# Generate LogWrapper classes
|
|
62 |
$(EXCEPTION_DIR)/%SystemException.java: \
|
|
63 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/spi/logging/data/%.mc \
|
|
64 |
$(BUILD_TOOLS_CORBA)
|
|
65 |
$(MKDIR) -p $(@D)
|
|
66 |
$(RM) -f $(@D)/_the_wrappers.d
|
|
67 |
$(ECHO) $(LOG_INFO) Generating class file from $*.mc
|
|
68 |
$(TOOL_LOGUTIL_CMD) make-class $< $(@D)
|
|
69 |
|
|
70 |
# Generate LogWrapper properties file by concatening resource files
|
|
71 |
$(EXCEPTION_DIR)/LogStrings.properties: \
|
|
72 |
$(LOGWRAPPER_DIR)/ActivationSystemException.resource \
|
|
73 |
$(LOGWRAPPER_DIR)/IORSystemException.resource \
|
|
74 |
$(LOGWRAPPER_DIR)/InterceptorsSystemException.resource \
|
|
75 |
$(LOGWRAPPER_DIR)/NamingSystemException.resource \
|
|
76 |
$(LOGWRAPPER_DIR)/OMGSystemException.resource \
|
|
77 |
$(LOGWRAPPER_DIR)/ORBUtilSystemException.resource \
|
|
78 |
$(LOGWRAPPER_DIR)/POASystemException.resource \
|
|
79 |
$(LOGWRAPPER_DIR)/UtilSystemException.resource
|
|
80 |
$(MKDIR) -p $(@D)
|
|
81 |
$(ECHO) $(LOG_INFO) Concatenating 8 resource files into $(@F)
|
|
82 |
$(CAT) $^ > $@
|
|
83 |
|
|
84 |
# The resources files are generated from lisp-like .mc files.
|
|
85 |
$(LOGWRAPPER_DIR)/%SystemException.resource: \
|
|
86 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/spi/logging/data/%.mc \
|
|
87 |
$(BUILD_TOOLS_CORBA)
|
|
88 |
$(MKDIR) -p $(@D)
|
|
89 |
$(RM) -f $(@D)/_the_wrappers.d
|
|
90 |
$(ECHO) $(LOG_INFO) Generating resource file from $*.mc
|
|
91 |
$(TOOL_LOGUTIL_CMD) make-resource $< $(@D)
|
|
92 |
|
|
93 |
|
|
94 |
LOGWRAPPER_TARGETS := \
|
|
95 |
$(EXCEPTION_DIR)/ActivationSystemException.java \
|
|
96 |
$(EXCEPTION_DIR)/IORSystemException.java \
|
|
97 |
$(EXCEPTION_DIR)/InterceptorsSystemException.java \
|
|
98 |
$(EXCEPTION_DIR)/NamingSystemException.java \
|
|
99 |
$(EXCEPTION_DIR)/OMGSystemException.java \
|
|
100 |
$(EXCEPTION_DIR)/ORBUtilSystemException.java \
|
|
101 |
$(EXCEPTION_DIR)/POASystemException.java \
|
|
102 |
$(EXCEPTION_DIR)/UtilSystemException.java \
|
|
103 |
$(EXCEPTION_DIR)/LogStrings.properties
|
|
104 |
|
|
105 |
################################################################################
|
|
106 |
# Build the IDLs.
|
|
107 |
|
|
108 |
IDL_DELETES := \
|
|
109 |
org/omg/DynamicAny/*POA* \
|
|
110 |
org/omg/DynamicAny/*Holder* \
|
|
111 |
org/omg/DynamicAny/DynValueBoxHelper.java \
|
|
112 |
org/omg/DynamicAny/DynValueCommonHelper.java \
|
|
113 |
org/omg/DynamicAny/_DynValueCommonStub.java \
|
|
114 |
org/omg/DynamicAny/_DynValueBoxStub.java \
|
|
115 |
org/omg/DynamicAny/DynAnyPackage/TypeMismatchHolder.java \
|
|
116 |
org/omg/DynamicAny/DynAnyPackage/InvalidValueHolder.java \
|
|
117 |
org/omg/DynamicAny/DynAnyFactoryPackage/InconsistentTypeCodeHolder.java \
|
|
118 |
org/omg/IOP/BI_DIR_IIOP.java \
|
|
119 |
org/omg/IOP/ChainBypassCheck.java \
|
|
120 |
org/omg/IOP/ChainBypassInfo.java \
|
|
121 |
org/omg/IOP/FORWARDED_IDENTITY.java \
|
|
122 |
org/omg/IOP/INVOCATION_POLICIES.java \
|
|
123 |
org/omg/IOP/LogicalThreadId.java \
|
|
124 |
org/omg/IOP/SendingContextRunTime.java \
|
|
125 |
org/omg/IOP/UnknownExceptionInfo.java \
|
|
126 |
org/omg/IOP/TaggedComponentSeqHolder.java \
|
|
127 |
org/omg/PortableServer/CurrentPackage/NoContextHolder.java \
|
|
128 |
org/omg/PortableServer/ForwardRequestHolder.java \
|
|
129 |
org/omg/PortableServer/IdAssignmentPolicyValueHelper.java \
|
|
130 |
org/omg/PortableServer/IdAssignmentPolicyValueHolder.java \
|
|
131 |
org/omg/PortableServer/IdUniquenessPolicyValueHelper.java \
|
|
132 |
org/omg/PortableServer/IdUniquenessPolicyValueHolder.java \
|
|
133 |
org/omg/PortableServer/ImplicitActivationPolicyValueHelper.java \
|
|
134 |
org/omg/PortableServer/ImplicitActivationPolicyValueHolder.java \
|
|
135 |
org/omg/PortableServer/LifespanPolicyValueHelper.java \
|
|
136 |
org/omg/PortableServer/LifespanPolicyValueHolder.java \
|
|
137 |
org/omg/PortableServer/ServantRetentionPolicyValueHelper.java \
|
|
138 |
org/omg/PortableServer/ServantRetentionPolicyValueHolder.java \
|
|
139 |
org/omg/PortableServer/ObjectIdHelper.java \
|
|
140 |
org/omg/PortableServer/ObjectIdHolder.java \
|
|
141 |
org/omg/PortableServer/POAListHelper.java \
|
|
142 |
org/omg/PortableServer/POAListHolder.java \
|
|
143 |
org/omg/PortableServer/POAManagerPackage/AdapterInactiveHolder.java \
|
|
144 |
org/omg/PortableServer/POAManagerPackage/StateHelper.java \
|
|
145 |
org/omg/PortableServer/POAManagerPackage/StateHolder.java \
|
|
146 |
org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHolder.java \
|
|
147 |
org/omg/PortableServer/POAPackage/AdapterNonExistentHolder.java \
|
|
148 |
org/omg/PortableServer/POAPackage/InvalidPolicyHolder.java \
|
|
149 |
org/omg/PortableServer/POAPackage/NoServantHolder.java \
|
|
150 |
org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHolder.java \
|
|
151 |
org/omg/PortableServer/POAPackage/ObjectNotActiveHolder.java \
|
|
152 |
org/omg/PortableServer/POAPackage/ServantAlreadyActiveHolder.java \
|
|
153 |
org/omg/PortableServer/POAPackage/ServantNotActiveHolder.java \
|
|
154 |
org/omg/PortableServer/POAPackage/WrongAdapterHolder.java \
|
|
155 |
org/omg/PortableServer/POAPackage/WrongPolicyHolder.java \
|
|
156 |
org/omg/PortableServer/RequestProcessingPolicyValueHelper.java \
|
|
157 |
org/omg/PortableServer/RequestProcessingPolicyValueHolder.java \
|
|
158 |
org/omg/PortableServer/ServantActivatorHolder.java \
|
|
159 |
org/omg/PortableServer/ServantLocatorHolder.java \
|
|
160 |
org/omg/PortableServer/ThreadPolicyValueHelper.java \
|
|
161 |
org/omg/PortableServer/ThreadPolicyValueHolder.java \
|
|
162 |
org/omg/PortableInterceptor/ClientRequestInfoHelper.java \
|
|
163 |
org/omg/PortableInterceptor/ClientRequestInterceptorHelper.java \
|
|
164 |
org/omg/PortableInterceptor/IORInfoHelper.java \
|
|
165 |
org/omg/PortableInterceptor/IORInterceptorHelper.java \
|
|
166 |
org/omg/PortableInterceptor/InterceptorHelper.java \
|
|
167 |
org/omg/PortableInterceptor/ORBInitInfoHelper.java \
|
|
168 |
org/omg/PortableInterceptor/ORBInitializerHelper.java \
|
|
169 |
org/omg/PortableInterceptor/PolicyFactoryHelper.java \
|
|
170 |
org/omg/PortableInterceptor/ReplyStatusHelper.java \
|
|
171 |
org/omg/PortableInterceptor/RequestInfoHelper.java \
|
|
172 |
org/omg/PortableInterceptor/ServerRequestInfoHelper.java \
|
|
173 |
org/omg/PortableInterceptor/ServerRequestInterceptorHelper.java \
|
|
174 |
org/omg/PortableInterceptor/SlotIdHelper.java \
|
|
175 |
org/omg/PortableInterceptor/ClientRequestInfoHolder.java \
|
|
176 |
org/omg/PortableInterceptor/ClientRequestInterceptorHolder.java \
|
|
177 |
org/omg/PortableInterceptor/CurrentHolder.java \
|
|
178 |
org/omg/PortableInterceptor/ForwardRequestHolder.java \
|
|
179 |
org/omg/PortableInterceptor/IORInfoHolder.java \
|
|
180 |
org/omg/PortableInterceptor/IORInterceptorHolder.java \
|
|
181 |
org/omg/PortableInterceptor/InterceptorHolder.java \
|
|
182 |
org/omg/PortableInterceptor/InvalidSlotHolder.java \
|
|
183 |
org/omg/PortableInterceptor/ORBInitInfoHolder.java \
|
|
184 |
org/omg/PortableInterceptor/ORBInitializerHolder.java \
|
|
185 |
org/omg/PortableInterceptor/PolicyFactoryHolder.java \
|
|
186 |
org/omg/PortableInterceptor/RequestInfoHolder.java \
|
|
187 |
org/omg/PortableInterceptor/ServerRequestInfoHolder.java \
|
|
188 |
org/omg/PortableInterceptor/ServerRequestInterceptorHolder.java \
|
|
189 |
org/omg/PortableInterceptor/TaggedComponentSeqHolder.java \
|
|
190 |
org/omg/PortableInterceptor/ORBInitInfoPackage/DuplicateNameHolder.java \
|
|
191 |
org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHolder.java \
|
|
192 |
org/omg/IOP/CodecPackage/FormatMismatchHolder.java \
|
|
193 |
org/omg/IOP/CodecPackage/InvalidTypeForEncodingHolder.java \
|
|
194 |
org/omg/IOP/CodecPackage/TypeMismatchHolder.java \
|
|
195 |
org/omg/IOP/CodecHelper.java \
|
|
196 |
org/omg/IOP/EncodingFormatHelper.java \
|
|
197 |
org/omg/IOP/EncodingHelper.java \
|
|
198 |
org/omg/IOP/CodecFactoryPackage/UnknownEncodingHolder.java \
|
|
199 |
org/omg/IOP/CodecFactoryHolder.java \
|
|
200 |
org/omg/IOP/CodecHolder.java \
|
|
201 |
org/omg/IOP/EncodingHolder.java \
|
|
202 |
org/omg/IOP/TaggedComponentSeqHelper.java \
|
|
203 |
org/omg/Dynamic/ContextListHelper.java \
|
|
204 |
org/omg/Dynamic/ExceptionListHelper.java \
|
|
205 |
org/omg/Dynamic/ParameterHolder.java \
|
|
206 |
org/omg/Dynamic/ParameterListHolder.java \
|
|
207 |
org/omg/Dynamic/ExceptionListHolder.java \
|
|
208 |
org/omg/Dynamic/ParameterHelper.java \
|
|
209 |
org/omg/Dynamic/ParameterListHelper.java \
|
|
210 |
org/omg/Dynamic/RequestContextHelper.java \
|
|
211 |
org/omg/CORBA/OctetSeqHelper.java \
|
|
212 |
org/omg/CORBA/OctetSeqHolder.java \
|
|
213 |
org/omg/CORBA/PolicyError.java \
|
|
214 |
org/omg/CORBA/RepositoryIdHelper.java \
|
|
215 |
#
|
|
216 |
|
|
217 |
$(eval $(call SetupIdlCompilation,BUILD_IDLS, \
|
|
218 |
IDLJ := $(TOOL_IDLJ_CMD), \
|
|
219 |
SRC := $(CORBA_TOPDIR)/src/java.corba/share/classes, \
|
|
220 |
BIN := $(SUPPORT_OUTPUTDIR)/gensrc/java.corba, \
|
|
221 |
EXCLUDES := com/sun/tools/corba/se/idl/% \
|
|
222 |
org/omg/CORBA/% \
|
|
223 |
com/sun/corba/se/GiopIDL/% \
|
|
224 |
org/omg/PortableServer/corba.idl, \
|
|
225 |
INCLUDES := %, \
|
|
226 |
OLDIMPLBASES := com/sun/corba/se/PortableActivationIDL/activation.idl \
|
|
227 |
com/sun/corba/se/spi/activation/activation.idl, \
|
|
228 |
DELETES := $(IDL_DELETES)))
|
|
229 |
|
|
230 |
$(BUILD_IDLS): $(BUILD_IDLJ)
|
|
231 |
|
|
232 |
################################################################################
|
|
233 |
# zh_HK is just a copy of zh_TW
|
|
234 |
|
|
235 |
$(SUPPORT_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_HK.properties: \
|
|
236 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_TW.properties
|
|
237 |
$(install-file)
|
|
238 |
|
|
239 |
################################################################################
|
|
240 |
|
|
241 |
all: $(BUILD_IDLS) $(LOGWRAPPER_TARGETS) \
|
|
242 |
$(SUPPORT_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_HK.properties
|
|
243 |
|