author | ptbrunet |
Tue, 16 Sep 2014 14:58:27 -0500 | |
changeset 26748 | fba66a2e8961 |
parent 26231 | c815db24a6a0 |
permissions | -rw-r--r-- |
14242 | 1 |
# |
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
2 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
14242 | 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 |
||
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
33 |
include CommonCorba.gmk |
14242 | 34 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
35 |
################################################################################ |
14242 | 36 |
|
25862 | 37 |
$(eval $(call SetupJavaCompilation,BUILD_TOOLS_CORBA, \ |
20554 | 38 |
SETUP := GENERATE_OLDBYTECODE, \ |
23067 | 39 |
SRC := $(CORBA_TOPDIR)/make/src/classes, \ |
40 |
BIN := $(CORBA_OUTPUTDIR)/tools_classes)) |
|
14242 | 41 |
|
23067 | 42 |
TOOL_LOGUTIL_CMD := $(JAVA) -cp $(CORBA_OUTPUTDIR)/tools_classes \ |
43 |
build.tools.logutil.MC |
|
44 |
||
20554 | 45 |
$(eval $(call SetupJavaCompilation,BUILD_IDLJ, \ |
46 |
SETUP := GENERATE_OLDBYTECODE, \ |
|
25862 | 47 |
SRC := $(CORBA_TOPDIR)/src/java.corba/share/classes, \ |
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
48 |
BIN := $(CORBA_OUTPUTDIR)/idlj_classes, \ |
20554 | 49 |
COPY := .prp, \ |
50 |
INCLUDES := com/sun/tools/corba/se/idl, \ |
|
51 |
EXCLUDE_FILES := ResourceBundleUtil.java)) |
|
14242 | 52 |
|
26231 | 53 |
# Force the language to english for predictable source code generation. |
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
54 |
TOOL_IDLJ_CMD := $(JAVA) -cp $(CORBA_OUTPUTDIR)/idlj_classes \ |
26231 | 55 |
-Duser.language=en com.sun.tools.corba.se.idl.toJavaPortable.Compile |
14242 | 56 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
57 |
################################################################################ |
14242 | 58 |
|
20554 | 59 |
# Generate LogWrapper classes |
25862 | 60 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/%SystemException.java: \ |
61 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/spi/logging/data/%.mc \ |
|
62 |
$(BUILD_TOOLS_CORBA) |
|
14242 | 63 |
$(MKDIR) -p $(@D) |
64 |
$(RM) -f $(@D)/_the_wrappers.d |
|
20554 | 65 |
$(ECHO) $(LOG_INFO) Generating class file from $*.mc |
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
66 |
$(TOOL_LOGUTIL_CMD) make-class $< $(@D) |
14242 | 67 |
|
20554 | 68 |
# Generate LogWrapper properties file by concatening resource files |
25862 | 69 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/LogStrings.properties: \ |
20554 | 70 |
$(CORBA_OUTPUTDIR)/logwrappers/ActivationSystemException.resource \ |
71 |
$(CORBA_OUTPUTDIR)/logwrappers/IORSystemException.resource \ |
|
72 |
$(CORBA_OUTPUTDIR)/logwrappers/InterceptorsSystemException.resource \ |
|
73 |
$(CORBA_OUTPUTDIR)/logwrappers/NamingSystemException.resource \ |
|
74 |
$(CORBA_OUTPUTDIR)/logwrappers/OMGSystemException.resource \ |
|
75 |
$(CORBA_OUTPUTDIR)/logwrappers/ORBUtilSystemException.resource \ |
|
76 |
$(CORBA_OUTPUTDIR)/logwrappers/POASystemException.resource \ |
|
77 |
$(CORBA_OUTPUTDIR)/logwrappers/UtilSystemException.resource |
|
14242 | 78 |
$(MKDIR) -p $(@D) |
79 |
$(ECHO) $(LOG_INFO) Concatenating 8 resource files into $(@F) |
|
80 |
$(CAT) $^ > $@ |
|
81 |
||
82 |
# The resources files are generated from lisp-like .mc files. |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
83 |
$(CORBA_OUTPUTDIR)/logwrappers/%SystemException.resource: \ |
25862 | 84 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/spi/logging/data/%.mc \ |
85 |
$(BUILD_TOOLS_CORBA) |
|
14242 | 86 |
$(MKDIR) -p $(@D) |
87 |
$(RM) -f $(@D)/_the_wrappers.d |
|
20554 | 88 |
$(ECHO) $(LOG_INFO) Generating resource file from $*.mc |
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
89 |
$(TOOL_LOGUTIL_CMD) make-resource $< $(@D) |
14242 | 90 |
|
91 |
||
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
92 |
LOGWRAPPER_TARGETS := \ |
25862 | 93 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/ActivationSystemException.java \ |
94 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/IORSystemException.java \ |
|
95 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/InterceptorsSystemException.java \ |
|
96 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/NamingSystemException.java \ |
|
97 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/OMGSystemException.java \ |
|
98 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/ORBUtilSystemException.java \ |
|
99 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/POASystemException.java \ |
|
100 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/UtilSystemException.java \ |
|
101 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/logging/LogStrings.properties |
|
14242 | 102 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
103 |
################################################################################ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
104 |
# Build the IDLs. |
14242 | 105 |
|
23067 | 106 |
IDL_DELETES := \ |
107 |
org/omg/DynamicAny/*POA* \ |
|
108 |
org/omg/DynamicAny/*Holder* \ |
|
109 |
org/omg/DynamicAny/DynValueBoxHelper.java \ |
|
110 |
org/omg/DynamicAny/DynValueCommonHelper.java \ |
|
111 |
org/omg/DynamicAny/_DynValueCommonStub.java \ |
|
112 |
org/omg/DynamicAny/_DynValueBoxStub.java \ |
|
113 |
org/omg/DynamicAny/DynAnyPackage/TypeMismatchHolder.java \ |
|
114 |
org/omg/DynamicAny/DynAnyPackage/InvalidValueHolder.java \ |
|
115 |
org/omg/DynamicAny/DynAnyFactoryPackage/InconsistentTypeCodeHolder.java \ |
|
116 |
org/omg/IOP/BI_DIR_IIOP.java \ |
|
117 |
org/omg/IOP/ChainBypassCheck.java \ |
|
118 |
org/omg/IOP/ChainBypassInfo.java \ |
|
119 |
org/omg/IOP/FORWARDED_IDENTITY.java \ |
|
120 |
org/omg/IOP/INVOCATION_POLICIES.java \ |
|
121 |
org/omg/IOP/LogicalThreadId.java \ |
|
122 |
org/omg/IOP/SendingContextRunTime.java \ |
|
123 |
org/omg/IOP/UnknownExceptionInfo.java \ |
|
124 |
org/omg/IOP/TaggedComponentSeqHolder.java \ |
|
125 |
org/omg/PortableServer/CurrentPackage/NoContextHolder.java \ |
|
126 |
org/omg/PortableServer/ForwardRequestHolder.java \ |
|
127 |
org/omg/PortableServer/IdAssignmentPolicyValueHelper.java \ |
|
128 |
org/omg/PortableServer/IdAssignmentPolicyValueHolder.java \ |
|
129 |
org/omg/PortableServer/IdUniquenessPolicyValueHelper.java \ |
|
130 |
org/omg/PortableServer/IdUniquenessPolicyValueHolder.java \ |
|
131 |
org/omg/PortableServer/ImplicitActivationPolicyValueHelper.java \ |
|
132 |
org/omg/PortableServer/ImplicitActivationPolicyValueHolder.java \ |
|
133 |
org/omg/PortableServer/LifespanPolicyValueHelper.java \ |
|
134 |
org/omg/PortableServer/LifespanPolicyValueHolder.java \ |
|
135 |
org/omg/PortableServer/ServantRetentionPolicyValueHelper.java \ |
|
136 |
org/omg/PortableServer/ServantRetentionPolicyValueHolder.java \ |
|
137 |
org/omg/PortableServer/ObjectIdHelper.java \ |
|
138 |
org/omg/PortableServer/ObjectIdHolder.java \ |
|
139 |
org/omg/PortableServer/POAListHelper.java \ |
|
140 |
org/omg/PortableServer/POAListHolder.java \ |
|
141 |
org/omg/PortableServer/POAManagerPackage/AdapterInactiveHolder.java \ |
|
142 |
org/omg/PortableServer/POAManagerPackage/StateHelper.java \ |
|
143 |
org/omg/PortableServer/POAManagerPackage/StateHolder.java \ |
|
144 |
org/omg/PortableServer/POAPackage/AdapterAlreadyExistsHolder.java \ |
|
145 |
org/omg/PortableServer/POAPackage/AdapterNonExistentHolder.java \ |
|
146 |
org/omg/PortableServer/POAPackage/InvalidPolicyHolder.java \ |
|
147 |
org/omg/PortableServer/POAPackage/NoServantHolder.java \ |
|
148 |
org/omg/PortableServer/POAPackage/ObjectAlreadyActiveHolder.java \ |
|
149 |
org/omg/PortableServer/POAPackage/ObjectNotActiveHolder.java \ |
|
150 |
org/omg/PortableServer/POAPackage/ServantAlreadyActiveHolder.java \ |
|
151 |
org/omg/PortableServer/POAPackage/ServantNotActiveHolder.java \ |
|
152 |
org/omg/PortableServer/POAPackage/WrongAdapterHolder.java \ |
|
153 |
org/omg/PortableServer/POAPackage/WrongPolicyHolder.java \ |
|
154 |
org/omg/PortableServer/RequestProcessingPolicyValueHelper.java \ |
|
155 |
org/omg/PortableServer/RequestProcessingPolicyValueHolder.java \ |
|
156 |
org/omg/PortableServer/ServantActivatorHolder.java \ |
|
157 |
org/omg/PortableServer/ServantLocatorHolder.java \ |
|
158 |
org/omg/PortableServer/ThreadPolicyValueHelper.java \ |
|
159 |
org/omg/PortableServer/ThreadPolicyValueHolder.java \ |
|
160 |
org/omg/PortableInterceptor/ClientRequestInfoHelper.java \ |
|
161 |
org/omg/PortableInterceptor/ClientRequestInterceptorHelper.java \ |
|
162 |
org/omg/PortableInterceptor/IORInfoHelper.java \ |
|
163 |
org/omg/PortableInterceptor/IORInterceptorHelper.java \ |
|
164 |
org/omg/PortableInterceptor/InterceptorHelper.java \ |
|
165 |
org/omg/PortableInterceptor/ORBInitInfoHelper.java \ |
|
166 |
org/omg/PortableInterceptor/ORBInitializerHelper.java \ |
|
167 |
org/omg/PortableInterceptor/PolicyFactoryHelper.java \ |
|
168 |
org/omg/PortableInterceptor/ReplyStatusHelper.java \ |
|
169 |
org/omg/PortableInterceptor/RequestInfoHelper.java \ |
|
170 |
org/omg/PortableInterceptor/ServerRequestInfoHelper.java \ |
|
171 |
org/omg/PortableInterceptor/ServerRequestInterceptorHelper.java \ |
|
172 |
org/omg/PortableInterceptor/SlotIdHelper.java \ |
|
173 |
org/omg/PortableInterceptor/ClientRequestInfoHolder.java \ |
|
174 |
org/omg/PortableInterceptor/ClientRequestInterceptorHolder.java \ |
|
175 |
org/omg/PortableInterceptor/CurrentHolder.java \ |
|
176 |
org/omg/PortableInterceptor/ForwardRequestHolder.java \ |
|
177 |
org/omg/PortableInterceptor/IORInfoHolder.java \ |
|
178 |
org/omg/PortableInterceptor/IORInterceptorHolder.java \ |
|
179 |
org/omg/PortableInterceptor/InterceptorHolder.java \ |
|
180 |
org/omg/PortableInterceptor/InvalidSlotHolder.java \ |
|
181 |
org/omg/PortableInterceptor/ORBInitInfoHolder.java \ |
|
182 |
org/omg/PortableInterceptor/ORBInitializerHolder.java \ |
|
183 |
org/omg/PortableInterceptor/PolicyFactoryHolder.java \ |
|
184 |
org/omg/PortableInterceptor/RequestInfoHolder.java \ |
|
185 |
org/omg/PortableInterceptor/ServerRequestInfoHolder.java \ |
|
186 |
org/omg/PortableInterceptor/ServerRequestInterceptorHolder.java \ |
|
187 |
org/omg/PortableInterceptor/TaggedComponentSeqHolder.java \ |
|
188 |
org/omg/PortableInterceptor/ORBInitInfoPackage/DuplicateNameHolder.java \ |
|
189 |
org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHolder.java \ |
|
190 |
org/omg/IOP/CodecPackage/FormatMismatchHolder.java \ |
|
191 |
org/omg/IOP/CodecPackage/InvalidTypeForEncodingHolder.java \ |
|
192 |
org/omg/IOP/CodecPackage/TypeMismatchHolder.java \ |
|
193 |
org/omg/IOP/CodecHelper.java \ |
|
194 |
org/omg/IOP/EncodingFormatHelper.java \ |
|
195 |
org/omg/IOP/EncodingHelper.java \ |
|
196 |
org/omg/IOP/CodecFactoryPackage/UnknownEncodingHolder.java \ |
|
197 |
org/omg/IOP/CodecFactoryHolder.java \ |
|
198 |
org/omg/IOP/CodecHolder.java \ |
|
199 |
org/omg/IOP/EncodingHolder.java \ |
|
200 |
org/omg/IOP/TaggedComponentSeqHelper.java \ |
|
201 |
org/omg/Dynamic/ContextListHelper.java \ |
|
202 |
org/omg/Dynamic/ExceptionListHelper.java \ |
|
203 |
org/omg/Dynamic/ParameterHolder.java \ |
|
204 |
org/omg/Dynamic/ParameterListHolder.java \ |
|
205 |
org/omg/Dynamic/ExceptionListHolder.java \ |
|
206 |
org/omg/Dynamic/ParameterHelper.java \ |
|
207 |
org/omg/Dynamic/ParameterListHelper.java \ |
|
208 |
org/omg/Dynamic/RequestContextHelper.java \ |
|
209 |
org/omg/CORBA/OctetSeqHelper.java \ |
|
210 |
org/omg/CORBA/OctetSeqHolder.java \ |
|
211 |
org/omg/CORBA/PolicyError.java \ |
|
212 |
org/omg/CORBA/RepositoryIdHelper.java \ |
|
213 |
# |
|
214 |
||
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
215 |
$(eval $(call SetupIdlCompilation,BUILD_IDLS, \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
216 |
IDLJ := $(TOOL_IDLJ_CMD), \ |
25862 | 217 |
SRC := $(CORBA_TOPDIR)/src/java.corba/share/classes, \ |
218 |
BIN := $(CORBA_OUTPUTDIR)/gensrc/java.corba, \ |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
219 |
EXCLUDES := com/sun/tools/corba/se/idl/% \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
220 |
org/omg/CORBA/% \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
221 |
com/sun/corba/se/GiopIDL/% \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
222 |
org/omg/PortableServer/corba.idl, \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
223 |
INCLUDES := %, \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
224 |
OLDIMPLBASES := com/sun/corba/se/PortableActivationIDL/activation.idl \ |
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
225 |
com/sun/corba/se/spi/activation/activation.idl, \ |
23067 | 226 |
DELETES := $(IDL_DELETES))) |
20919
d2ffe3f63ad8
6604021: RMIC is defaulting to BOOT jdk version, needs to be rmic.jar
erikj
parents:
15408
diff
changeset
|
227 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
228 |
$(BUILD_IDLS): $(BUILD_IDLJ) |
14242 | 229 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
230 |
################################################################################ |
23362
da5c80c40887
8036611: Cleanup of handling of properties and other java resources in the build
erikj
parents:
23067
diff
changeset
|
231 |
# zh_HK is just a copy of zh_TW |
14242 | 232 |
|
25862 | 233 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_HK.properties: \ |
234 |
$(CORBA_TOPDIR)/src/java.corba/share/classes/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_TW.properties |
|
23362
da5c80c40887
8036611: Cleanup of handling of properties and other java resources in the build
erikj
parents:
23067
diff
changeset
|
235 |
$(install-file) |
14242 | 236 |
|
22662
ddcb7ce5e63d
8026773: Failing compilation in Corba does not fail the build
erikj
parents:
21859
diff
changeset
|
237 |
################################################################################ |
14242 | 238 |
|
23362
da5c80c40887
8036611: Cleanup of handling of properties and other java resources in the build
erikj
parents:
23067
diff
changeset
|
239 |
all: $(BUILD_IDLS) $(LOGWRAPPER_TARGETS) \ |
25862 | 240 |
$(CORBA_OUTPUTDIR)/gensrc/java.corba/com/sun/corba/se/impl/orbutil/resources/sunorb_zh_HK.properties |
23362
da5c80c40887
8036611: Cleanup of handling of properties and other java resources in the build
erikj
parents:
23067
diff
changeset
|
241 |