1 | # $Id: Makefile.kmk 16676 2009-02-11 16:16:56Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox web service.
|
---|
4 | #
|
---|
5 | # Warning! This is a seriously complicated makefile!
|
---|
6 | #
|
---|
7 |
|
---|
8 | #
|
---|
9 | # Copyright (C) 2006-2007 Sun Microsystems, Inc.
|
---|
10 | #
|
---|
11 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | # available from http://www.virtualbox.org. This file is free software;
|
---|
13 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | # General Public License (GPL) as published by the Free Software
|
---|
15 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | #
|
---|
19 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
20 | # Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
21 | # additional information or have any questions.
|
---|
22 | #
|
---|
23 |
|
---|
24 | # Define VBOX_GSOAP_INSTALLED to something if you have gSOAP's
|
---|
25 | # "wsdl2h" and "soapcpp2" executables on your PATH somewhere.
|
---|
26 |
|
---|
27 | #
|
---|
28 | # Here's a temporary outline how all this works.
|
---|
29 |
|
---|
30 | # 1) We use xsltproc and websrv-wsdl.xsl to generate a WSDL file from
|
---|
31 | # our XML IDL file (../idl/VirtualBox.xidl). This WSDL describes the
|
---|
32 | # web service to third-party clients; for example, one can feed it to
|
---|
33 | # perl and thus easily write a short script that connects to the web
|
---|
34 | # service properly.
|
---|
35 | # This WSDL file ends up in $(VBOXWEB_OUT_DIR)/vboxweb.wsdl.
|
---|
36 | #
|
---|
37 | # 2) We use xsltproc and websrv-gsoapH.xsl to generate a gSoap header
|
---|
38 | # file: $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h.
|
---|
39 | # This file looks like a C header file, but really isn't meant
|
---|
40 | # to be included by a C compiler. Instead, it just happens to be the
|
---|
41 | # format that gSOAP uses to specify SOAP interfaces instead of WSDL
|
---|
42 | # (apparently because gSOAP was written before the advent of WSDL).
|
---|
43 | #
|
---|
44 | # Note that gSOAP comes with its own WSDL-to-gsoap.h converter, but
|
---|
45 | # the readme mentions some funny license restrictions, so instead we
|
---|
46 | # have our own converter in XSLT.
|
---|
47 | #
|
---|
48 | # 3) We then feed that header file to gsoap's soapcpp2, which generates
|
---|
49 | # a ton of files in $(VBOXWEB_OUT_DIR), most importantly:
|
---|
50 | #
|
---|
51 | # SOAP_CLIENT_H = $(VBOXWEB_OUT_DIR)/soapStub.h (header file for webservice clients)
|
---|
52 | # SOAP_SERVER_H = $(VBOXWEB_OUT_DIR)/soapH.h (header file for webservice servers)
|
---|
53 | #
|
---|
54 | # These are "real" header files that one can use to program a) a webservice client
|
---|
55 | # and b) a webservice server. Of course to build b) one will have to write method
|
---|
56 | # implementations with useful code that does something. This is where more
|
---|
57 | # code generation via XSLT comes in:
|
---|
58 | #
|
---|
59 | # 4) We use xsltproc to generate tons of c++ code directly from the XIDL that
|
---|
60 | # maps each soap method to our COM methods. This large c++ file is
|
---|
61 | # $(VBOXWEB_OUT_DIR)/methodmaps.cpp. The actual webservice executable (vboxwebsrv,
|
---|
62 | # which acts as an http server) is composed of this file, plus hard-coded
|
---|
63 | # method implementations in vboxweb.cpp, plus gSOAP library code for the HTTP
|
---|
64 | # server.
|
---|
65 | #
|
---|
66 |
|
---|
67 | SUB_DEPTH = ../../../..
|
---|
68 | include $(KBUILD_PATH)/subheader.kmk
|
---|
69 |
|
---|
70 | #
|
---|
71 | # Find the gSOAP tools.
|
---|
72 | #
|
---|
73 | ifeq ($(VBOX_GSOAP_INSTALLED),)
|
---|
74 | VBOX_GSOAP_INSTALLED = 1
|
---|
75 | VBOX_PATH_GSOAP := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS_BLD)/gsoap/*)))
|
---|
76 | ifeq ($(VBOX_PATH_GSOAP),)
|
---|
77 | ifeq ($(KBUILD_HOST_ARCH),amd64)
|
---|
78 | VBOX_PATH_GSOAP := $(lastword $(sort $(wildcard $(PATH_DEVTOOLS)/$(KBUILD_HOST).x86/gsoap/*)))
|
---|
79 | endif
|
---|
80 | endif
|
---|
81 | ifeq ($(VBOX_PATH_GSOAP),)
|
---|
82 | $(warning VBOX_PATH_GSOAP not found...)
|
---|
83 | VBOX_GSOAP_INSTALLED=
|
---|
84 | else
|
---|
85 | VBOX_PATH_GSOAP_BIN = $(VBOX_PATH_GSOAP)/bin
|
---|
86 | endif
|
---|
87 | else
|
---|
88 | VBOX_PATH_GSOAP := $(VBOX_PATH_GSOAP)
|
---|
89 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP)
|
---|
90 | endif
|
---|
91 | VBOX_SOAPCPP2 = $(VBOX_PATH_GSOAP_BIN)/soapcpp2$(HOSTSUFF_EXE)
|
---|
92 | VBOX_WSDL2H = $(VBOX_PATH_GSOAP_BIN)/wsdl2h$(HOSTSUFF_EXE)
|
---|
93 |
|
---|
94 |
|
---|
95 | #
|
---|
96 | # Globals
|
---|
97 | #
|
---|
98 | VBOXWEB_OUT_DIR := $(PATH_TARGET)/webservice
|
---|
99 | BLDDIRS += $(VBOXWEB_OUT_DIR)
|
---|
100 |
|
---|
101 | # The webservice location
|
---|
102 | VBOX_PATH_WEBSERVICE := $(PATH_SUB_CURRENT)
|
---|
103 |
|
---|
104 | # If this is set, all webservice files are considered out-of-date every time
|
---|
105 | # this make file is touched. Otherwise, set this to empty.
|
---|
106 | RECOMPILE_ON_MAKEFILE_CURRENT := $(MAKEFILE_CURRENT)
|
---|
107 |
|
---|
108 | PATH_TARGET_SOAPDEMOXML := $(VBOXWEB_OUT_DIR)/demo_soapxml
|
---|
109 | PATH_TARGET_SOAPDEMOHEADERS := $(VBOXWEB_OUT_DIR)/demo_headers
|
---|
110 | PATH_TARGET_SOAPDEMONSMAPS := $(VBOXWEB_OUT_DIR)/demo_namespacemaps
|
---|
111 | PATH_TARGET_WEBTEST := $(VBOXWEB_OUT_DIR)/webtest
|
---|
112 |
|
---|
113 | VBOXWEB_IDL_SRC_ORIG := $(VBOX_XIDL_FILE)
|
---|
114 | VBOXWEB_IDL_SRC := $(VBOXWEB_OUT_DIR)/VirtualBox.xidl
|
---|
115 |
|
---|
116 | VBOXWEB_TYPEMAP := $(VBOXWEB_OUT_DIR)/typemap.dat
|
---|
117 |
|
---|
118 | VBOXWEB_GSOAPH_FROM_XSLT := $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h
|
---|
119 | ifdef VBOX_GSOAP_INSTALLED
|
---|
120 | VBOXWEB_GSOAPH_FROM_GSOAP := $(VBOXWEB_OUT_DIR)/gsoapH_from_gsoap.h
|
---|
121 | else
|
---|
122 | VBOXWEB_GSOAPH_FROM_GSOAP :=
|
---|
123 | endif
|
---|
124 | VBOXWEB_SOAP_CLIENT_H := $(VBOXWEB_OUT_DIR)/soapStub.h
|
---|
125 | VBOXWEB_SOAP_SERVER_H := $(VBOXWEB_OUT_DIR)/soapH.h
|
---|
126 |
|
---|
127 |
|
---|
128 | ifdef VBOX_GSOAP_VERBOSE
|
---|
129 | VBOXWEB_XSLTPROC_VERBOSE = --stringparam G_argDebug '1'
|
---|
130 | VBOXWEB_WSDL_VERBOSE = -v
|
---|
131 | else
|
---|
132 | VBOXWEB_SOAPCPP2_SKIP_FILES = -x
|
---|
133 | endif
|
---|
134 |
|
---|
135 |
|
---|
136 | ## @todo VBOXWEB_GSOAPH_FROM_XSLT should probably be a indirect dep of something.
|
---|
137 | VBOXWEB_OTHERS += \
|
---|
138 | $(VBOXWEB_GSOAPH_FROM_XSLT)
|
---|
139 |
|
---|
140 |
|
---|
141 |
|
---|
142 | ifdef VBOX_GSOAP_INSTALLED
|
---|
143 | ifndef VBOX_ONLY_SDK
|
---|
144 | #
|
---|
145 | # vboxsoap - Library used by both the programs (save build time).
|
---|
146 | #
|
---|
147 | LIBRARIES += vboxsoap
|
---|
148 | vboxsoap_TEMPLATE = VBOXR3EXE
|
---|
149 | vboxsoap_CXXFLAGS.win = -EHsc
|
---|
150 | ifdef VBOX_USE_VCC80
|
---|
151 | vboxsoap_CXXFLAGS.win += -bigobj
|
---|
152 | endif
|
---|
153 | vboxsoap_INCS := \
|
---|
154 | gsoap \
|
---|
155 | $(VBOXWEB_OUT_DIR) \
|
---|
156 | $(PATH_SUB_CURRENT)
|
---|
157 | ifdef VBOX_WITHOUT_SPLIT_SOAPC
|
---|
158 | vboxsoap_SOURCES = \
|
---|
159 | $(VBOXWEB_OUT_DIR)/soapC.cpp
|
---|
160 | else
|
---|
161 | vboxsoap_SOURCES = \
|
---|
162 | $(VBOXWEB_OUT_DIR)/soapC-1.cpp \
|
---|
163 | $(VBOXWEB_OUT_DIR)/soapC-2.cpp \
|
---|
164 | $(VBOXWEB_OUT_DIR)/soapC-3.cpp \
|
---|
165 | $(VBOXWEB_OUT_DIR)/soapC-4.cpp \
|
---|
166 | $(VBOXWEB_OUT_DIR)/soapC-5.cpp \
|
---|
167 | $(VBOXWEB_OUT_DIR)/soapC-6.cpp \
|
---|
168 | $(VBOXWEB_OUT_DIR)/soapC-7.cpp \
|
---|
169 | $(VBOXWEB_OUT_DIR)/soapC-8.cpp \
|
---|
170 | $(VBOXWEB_OUT_DIR)/soapC-9.cpp \
|
---|
171 | $(VBOXWEB_OUT_DIR)/soapC-10.cpp \
|
---|
172 | $(VBOXWEB_OUT_DIR)/soapC-11.cpp \
|
---|
173 | $(VBOXWEB_OUT_DIR)/soapC-12.cpp \
|
---|
174 | $(VBOXWEB_OUT_DIR)/soapC-13.cpp \
|
---|
175 | $(VBOXWEB_OUT_DIR)/soapC-14.cpp \
|
---|
176 | $(VBOXWEB_OUT_DIR)/soapC-15.cpp \
|
---|
177 | $(VBOXWEB_OUT_DIR)/soapC-16.cpp \
|
---|
178 | $(VBOXWEB_OUT_DIR)/soapC-17.cpp \
|
---|
179 | $(VBOXWEB_OUT_DIR)/soapC-18.cpp \
|
---|
180 | $(VBOXWEB_OUT_DIR)/soapC-19.cpp \
|
---|
181 | $(VBOXWEB_OUT_DIR)/soapC-20.cpp
|
---|
182 | endif
|
---|
183 | vboxsoap_CLEAN := $(vboxsoap_SOURCES) # lazy bird
|
---|
184 | vboxsoap_SOURCES += \
|
---|
185 | gsoap/stdsoap2.cpp
|
---|
186 |
|
---|
187 | vboxsoap_ORDERDEPS = \
|
---|
188 | $(VBOXWEB_IDL_SRC) \
|
---|
189 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
190 |
|
---|
191 | ifdef VBOX_SOAP_PRECOMPILED_HEADER
|
---|
192 | # This'll save a few seconds, but the compiler invocation currently makes it impracticable. This will
|
---|
193 | # be addressed in a future kBuild version, by adding PCH support or/and by adding some helpers to
|
---|
194 | # gather the required data (DEFS,INCS,CXXTOOL,CXXFLAGS).
|
---|
195 | vboxsoap_INTERMEDIATES += $(VBOXWEB_OUT_DIR)/soapH.h.gch
|
---|
196 | vboxsoap_CXXFLAGS += -Winvalid-pch -H
|
---|
197 | vboxsoap_CLEAN += $(VBOXWEB_OUT_DIR)/soapH.h.gch
|
---|
198 |
|
---|
199 | $(VBOXWEB_OUT_DIR)/soapH.h.gch: $(VBOXWEB_OUT_DIR)/soapH.h
|
---|
200 | g++ -x c++-header -g -g -Wall -pedantic -Wno-long-long -Wno-trigraphs -Wno-variadic-macros -pipe -O0 -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -m32 -I/Volumes/ScratchHFS/bird/vbox/svn/trunk/src/VBox/Main/webservice/gsoap -I/Volumes/ScratchHFS/bird/vbox/svn/trunk/out/darwin.x86/debug/obj/src/VBox/Main -I/Volumes/ScratchHFS/bird/vbox/svn/trunk/src/VBox/Main/webservice -I/Volumes/ScratchHFS/bird/vbox/svn/trunk/include -I/Volumes/ScratchHFS/bird/vbox/svn/trunk/out/darwin.x86/debug -DVBOX -DVBOX_WITH_DEBUGGER -DVBOX_WITH_DEBUGGER_GUI -DDEBUG -DDEBUG_bird -DDEBUG_USERNAME=bird -DRT_OS_DARWIN -D__DARWIN__ -DRT_ARCH_X86 -D__X86__ -DVBOX_WITH_HYBRID_32BIT_KERNEL -DIN_RING3 -DHC_ARCH_BITS=32 -DGC_ARCH_BITS=32 -DMAC_OS_X_VERSION_MIN_REQUIRED=1040 -DMAC_OS_X_VERSION_MAX_ALLOWED=1040 \
|
---|
201 | $< -o $@
|
---|
202 | endif
|
---|
203 | endif # !VBOX_ONLY_SDK
|
---|
204 |
|
---|
205 |
|
---|
206 | ifndef VBOX_ONLY_SDK
|
---|
207 | #
|
---|
208 | # vboxwebsrv - webservice server process
|
---|
209 | #
|
---|
210 | PROGRAMS += vboxwebsrv
|
---|
211 | vboxwebsrv_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
212 | vboxwebsrv_DEFS += SOCKET_CLOSE_ON_EXEC
|
---|
213 | vboxwebsrv_INCS = \
|
---|
214 | gsoap \
|
---|
215 | $(VBOXWEB_OUT_DIR) \
|
---|
216 | .
|
---|
217 | vboxwebsrv_CXXFLAGS.win = -EHsc ## @todo need to fix this template one day
|
---|
218 | ifdef VBOX_USE_VCC80
|
---|
219 | vboxwebsrv_CXXFLAGS.win += -bigobj
|
---|
220 | endif
|
---|
221 | vboxwebsrv_LIBS += \
|
---|
222 | $(PATH_LIB)/vboxsoap$(VBOX_SUFF_LIB)
|
---|
223 | vboxwebsrv_LIBS.solaris += socket nsl
|
---|
224 | vboxwebsrv_SOURCES = \
|
---|
225 | vboxweb.cpp \
|
---|
226 | $(VBOXWEB_OUT_DIR)/methodmaps.cpp \
|
---|
227 | $(VBOXWEB_OUT_DIR)/soapServer.cpp
|
---|
228 | vboxwebsrv_CLEAN = \
|
---|
229 | $(VBOXWEB_OUT_DIR)/methodmaps.cpp \
|
---|
230 | $(VBOXWEB_OUT_DIR)/soapServer.cpp
|
---|
231 |
|
---|
232 | vboxwebsrv_ORDERDEPS = $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
233 | endif # !VBOX_ONLY_SDK
|
---|
234 |
|
---|
235 |
|
---|
236 | ifndef VBOX_ONLY_SDK
|
---|
237 | #
|
---|
238 | # webtest - webservice sample client in C++
|
---|
239 | #
|
---|
240 | PROGRAMS += webtest
|
---|
241 | webtest_TEMPLATE = VBOXR3EXE
|
---|
242 | webtest_CXXFLAGS.win = -EHsc
|
---|
243 | ifdef VBOX_USE_VCC80
|
---|
244 | webtest_CXXFLAGS.win += -bigobj
|
---|
245 | endif
|
---|
246 | webtest_INCS := \
|
---|
247 | gsoap \
|
---|
248 | $(VBOXWEB_OUT_DIR) \
|
---|
249 | .
|
---|
250 | webtest_LIBS += \
|
---|
251 | $(PATH_LIB)/vboxsoap$(VBOX_SUFF_LIB)
|
---|
252 | webtest_LIBS.solaris += nsl
|
---|
253 | webtest_SOURCES = \
|
---|
254 | webtest.cpp \
|
---|
255 | $(VBOXWEB_OUT_DIR)/soapClient.cpp
|
---|
256 | webtest_CLEAN = \
|
---|
257 | $(VBOXWEB_OUT_DIR)/soapClient.cpp
|
---|
258 |
|
---|
259 | webtest_ORDERDEPS = $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
260 | endif # !VBOX_ONLY_SDK
|
---|
261 |
|
---|
262 |
|
---|
263 | #
|
---|
264 | # Additional mess to cleanup (applies to both webtest and vboxwebsrv).
|
---|
265 | #
|
---|
266 | ## @todo figure out whether the SDK really needs this or not...
|
---|
267 | OTHER_CLEAN += \
|
---|
268 | $(wildcard $(VBOXWEB_OUT_DIR)/soap*.h) \
|
---|
269 | $(wildcard $(VBOXWEB_OUT_DIR)/soap*.cpp) \
|
---|
270 | $(wildcard $(VBOXWEB_OUT_DIR)/*.nsmap) \
|
---|
271 | $(VBOXWEB_GSOAPH_FROM_XSLT) \
|
---|
272 | $(VBOXWEB_GSOAPH_FROM_GSOAP) \
|
---|
273 | $(VBOXWEB_SOAP_CLIENT_H) \
|
---|
274 | $(VBOXWEB_SOAP_SERVER_H) \
|
---|
275 | $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts \
|
---|
276 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts \
|
---|
277 | $(wildcard $(PATH_TARGET_SOAPDEMOXML)/*) \
|
---|
278 | $(PATH_TARGET_SOAPDEMOXML)/dummy_file \
|
---|
279 | $(wildcard $(PATH_TARGET_SOAPDEMOHEADERS)/*) \
|
---|
280 | $(PATH_TARGET_SOAPDEMOHEADERS)/dummy_file \
|
---|
281 | $(wildcard $(PATH_TARGET_SOAPDEMONSMAPS)/*) \
|
---|
282 | $(PATH_TARGET_SOAPDEMONSMAPS)/dummy_file
|
---|
283 |
|
---|
284 | endif # VBOX_GSOAP_INSTALLED
|
---|
285 |
|
---|
286 |
|
---|
287 | ifdef VBOX_ONLY_SDK
|
---|
288 | #
|
---|
289 | # Global relevant to the SDK.
|
---|
290 | #
|
---|
291 | VBOXWEB_GLUE_PYTHON = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_wrappers.py
|
---|
292 | VBOXWEB_WS_PYTHON = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_service.py
|
---|
293 | VBOXWEB_SAMPLES_AXIS_DIR = $(VBOX_PATH_SDK)/bindings/webservice/java/axis/samples
|
---|
294 | VBOXWEB_AXISSAMPLE = $(VBOXWEB_SAMPLES_AXIS_DIR)/clienttest.java
|
---|
295 | VBOXWEB_SAMPLES_JAXWS_DIR = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/samples
|
---|
296 | VBOXWEB_JAXWSSAMPLE = $(VBOXWEB_SAMPLES_JAXWS_DIR)/clienttest.java
|
---|
297 | VBOXWEB_METRICSAMPLE = $(VBOXWEB_SAMPLES_JAXWS_DIR)/metrictest.java
|
---|
298 | VBOXWEB_SAMPLES_PERL_DIR = $(VBOX_PATH_SDK)/bindings/webservice/perl/samples
|
---|
299 | VBOXWEB_PERLSAMPLE = $(VBOXWEB_SAMPLES_PERL_DIR)/clienttest.pl
|
---|
300 | VBOXWEB_SAMPLES_PYTHONWS_DIR = $(VBOX_PATH_SDK)/bindings/webservice/python/samples
|
---|
301 | VBOXWEB_PYTHONWSSAMPLE = $(VBOXWEB_SAMPLES_PYTHONWS_DIR)/vboxshell.py
|
---|
302 | VBOXWEB_SHELLCOMMON = $(VBOXWEB_SAMPLES_PYTHONWS_DIR)/shellcommon.py
|
---|
303 |
|
---|
304 | VBOXWEB_GLUE_JAVA_TMP = $(VBOXWEB_OUT_DIR)/glue-jaxws.java.tmp
|
---|
305 | VBOXWEB_PATH_SDK_GLUE_JAVA = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/src
|
---|
306 | VBOXWEB_JAVALIB = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/lib
|
---|
307 | VBOXWEB_JAVA15_JAR = $(VBOXWEB_JAVALIB)/vboxws_java15.jar
|
---|
308 | VBOXWEB_JAVA16_JAR = $(VBOXWEB_JAVALIB)/vboxws_java16.jar
|
---|
309 |
|
---|
310 |
|
---|
311 | VBOX_JAXWS_LIBDIR = $(VBOX_PATH_WEBSERVICE)/jaxlibs
|
---|
312 | # well, not really good
|
---|
313 | VBOX_JAVA15 = $(firstword $(wildcard \
|
---|
314 | /usr/lib/jvm/java-1.5.0-sun/bin/java \
|
---|
315 | /usr/jdk/jdk1.5*/bin/java \
|
---|
316 | /opt/sun-jdk-1.5*/bin/java))
|
---|
317 | ifndef VBOX_JAVA15
|
---|
318 | $(error Failed to autodetect VBOX_JAVA15, please set it manually)
|
---|
319 | endif
|
---|
320 | VBOX_JAVA16 = java
|
---|
321 | VBOX_JAVAC15 = javac -target 1.5
|
---|
322 | VBOX_JAVAC16 = javac -target 1.6
|
---|
323 | VBOX_WSIMPORT15 = $(VBOX_JAVA15) -jar $(VBOX_JAXWS_LIBDIR)/jaxws-tools.jar
|
---|
324 | VBOX_WSIMPORT16 = $(firstword $(wildcard \
|
---|
325 | /usr/jdk/jdk1.6*/bin/wsimport \
|
---|
326 | /usr/bin/wsimport \
|
---|
327 | /opt/sun-jdk-1.6*/bin/wsimport))
|
---|
328 | ifndef VBOX_WSIMPORT16
|
---|
329 | $(error Failed to autodetect VBOX_WSIMPORT16, please set it manually)
|
---|
330 | endif
|
---|
331 | VBOX_JAR = jar
|
---|
332 |
|
---|
333 | VBOXWEB_OTHERS += \
|
---|
334 | $(VBOXWEB_GLUE_JAVA_TMP) \
|
---|
335 | $(VBOXWEB_GLUE_PYTHON)\
|
---|
336 | $(VBOXWEB_WS_PYTHON) \
|
---|
337 | $(VBOXWEB_PYTHONWSSAMPLE)\
|
---|
338 | $(VBOXWEB_SHELLCOMMON)\
|
---|
339 | $(VBOXWEB_AXISSAMPLE) \
|
---|
340 | $(VBOXWEB_JAXWSSAMPLE)\
|
---|
341 | $(VBOXWEB_METRICSAMPLE)\
|
---|
342 | $(VBOXWEB_PERLSAMPLE) \
|
---|
343 | $(VBOXWEB_PATH_SDK_GLUE_JAVA)/Makefile \
|
---|
344 | $(VBOXWEB_SAMPLES_PYTHONWS_DIR)/Makefile\
|
---|
345 | $(VBOXWEB_SAMPLES_JAXWS_DIR)/Makefile \
|
---|
346 | $(VBOXWEB_JAVA15_JAR) \
|
---|
347 | $(VBOXWEB_JAVA16_JAR)
|
---|
348 |
|
---|
349 | #
|
---|
350 | # filesplitter - build helper, splits up the java classes.
|
---|
351 | #
|
---|
352 | BLDPROGS += filesplitter
|
---|
353 | filesplitter_TEMPLATE = VBOXBLDPROG
|
---|
354 | filesplitter_SOURCES = filesplitter.c
|
---|
355 |
|
---|
356 | endif # VBOX_ONLY_SDK
|
---|
357 |
|
---|
358 | VBOXWEB_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl
|
---|
359 | VBOXWEBSERVICE_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl
|
---|
360 |
|
---|
361 | ## @todo VBOXWEB_WSDL and VBOXWEBSERVICE_WSDL should be an install target.
|
---|
362 | VBOXWEB_OTHERS += \
|
---|
363 | $(VBOXWEB_WSDL) \
|
---|
364 | $(VBOXWEBSERVICE_WSDL)
|
---|
365 |
|
---|
366 | #
|
---|
367 | # Update the OTHERS and OTHER_CLEAN lists with VBOXWEB_OTHERS and some more stuff.
|
---|
368 | #
|
---|
369 | # We can't just built up OTHERS and append it to OTHER_CLEAN because we're sharing
|
---|
370 | # OTHERS with all the other VBox makefiles (VBOX_SINGLE_MAKEFILE), thus VBOXWEB_OTHERS.
|
---|
371 | #
|
---|
372 | OTHERS += $(VBOXWEB_OTHERS)
|
---|
373 | OTHER_CLEAN += \
|
---|
374 | $(VBOXWEB_OTHERS) \
|
---|
375 | $(VBOXWEB_TYPEMAP) \
|
---|
376 | $(VBOXWEB_IDL_SRC)
|
---|
377 |
|
---|
378 |
|
---|
379 |
|
---|
380 | # generate platform-specific XIDL file from original XIDL file
|
---|
381 | $(VBOXWEB_IDL_SRC): $(VBOXWEB_IDL_SRC_ORIG) $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl | $$(dir $$@)
|
---|
382 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using platform-xidl.xsl)
|
---|
383 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl $<
|
---|
384 |
|
---|
385 | # generate WSDL from main XIDL file
|
---|
386 | $(VBOXWEB_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@)
|
---|
387 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
388 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl.xsl)
|
---|
389 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $<
|
---|
390 |
|
---|
391 | $(VBOXWEBSERVICE_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl-service.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@)
|
---|
392 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
393 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl-service.xsl)
|
---|
394 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl-service.xsl $<
|
---|
395 |
|
---|
396 | ifdef VBOX_ONLY_SDK
|
---|
397 |
|
---|
398 | $(VBOXWEB_GLUE_PYTHON): $(VBOXWEB_IDL_SRC) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-python.xsl
|
---|
399 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-python.xsl)
|
---|
400 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
401 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-python.xsl $<
|
---|
402 | $(QUIET)$(CP) -f $(VBOX_PATH_WEBSERVICE)/samples/python/Makefile.glue $(@D)/Makefile
|
---|
403 |
|
---|
404 | $(VBOXWEB_WS_PYTHON): $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
|
---|
405 | $(call MSG_GENERATE,,$@, WS Python bindings)
|
---|
406 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
407 | $(QUIET)$(REDIRECT) -C $(@D) -- wsdl2py -b --file $(VBOXWEBSERVICE_WSDL)
|
---|
408 | $(QUIET)$(APPEND) $@ ''
|
---|
409 |
|
---|
410 | endif # VBOX_ONLY_SDK
|
---|
411 |
|
---|
412 | # generate typemap.dat (used by wsdl2h) from main XIDL file
|
---|
413 | $(VBOXWEB_TYPEMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
414 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-typemap.xsl)
|
---|
415 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $<
|
---|
416 |
|
---|
417 | # generate gsoap pseudo-C header file from that WSDL; once via XSLT...
|
---|
418 | # $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
419 | # $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-gsoapH.xsl)
|
---|
420 | # $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-gsoapH.xsl $<
|
---|
421 | $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
422 | $(call MSG_GENERATE,,$@,$(VBOXWEB_WSDL) using websrv-wsdl2gsoapH.xsl)
|
---|
423 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $<
|
---|
424 |
|
---|
425 | NSMAP = $(VBOXWEB_OUT_DIR)/vboxwebsrv.nsmap
|
---|
426 |
|
---|
427 | $(NSMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
428 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-nsmap.xsl)
|
---|
429 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $<
|
---|
430 |
|
---|
431 |
|
---|
432 |
|
---|
433 | ifdef VBOX_GSOAP_INSTALLED
|
---|
434 | # ... and once with the gSOAP tool (just for comparison, we don't use it for licensing reasons)
|
---|
435 | $(VBOXWEB_GSOAPH_FROM_GSOAP): $(VBOXWEB_WSDL) $(VBOXWEB_TYPEMAP) | $$(dir $$@)
|
---|
436 | $(call MSG_GENERATE,,$@,)
|
---|
437 | $(VBOX_WSDL2H) $(VBOXWEB_WSDL_VERBOSE) -t$(VBOXWEB_TYPEMAP) -nvbox -o $@ $<
|
---|
438 |
|
---|
439 | GSOAPH_RELEVANT = $(VBOXWEB_GSOAPH_FROM_XSLT)
|
---|
440 |
|
---|
441 | # wsdl2h -v: verbose
|
---|
442 | # wsdl2h -e: don't qualify enum names
|
---|
443 | # wsdl2h -n<prefix>: namespace header prefix
|
---|
444 |
|
---|
445 | ## @todo change this to state explicitly what will be generated?
|
---|
446 |
|
---|
447 | # generate server and client code from gsoap pseudo-C header file
|
---|
448 | $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts \
|
---|
449 | + $(VBOXWEB_OUT_DIR)/soapH.h \
|
---|
450 | + $(VBOXWEB_OUT_DIR)/soapStub.h \
|
---|
451 | + $(VBOXWEB_OUT_DIR)/soapC.cpp \
|
---|
452 | + $(VBOXWEB_OUT_DIR)/soapClient.cpp \
|
---|
453 | + $(VBOXWEB_OUT_DIR)/soapServer.cpp \
|
---|
454 | : $(VBOXWEB_GSOAPH_FROM_GSOAP) $(VBOXWEB_GSOAPH_FROM_XSLT) $(NSMAP) $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
455 | $(call MSG_GENERATE,,lots of files,$(GSOAPH_RELEVANT))
|
---|
456 | $(RM) -f $@
|
---|
457 | $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -L -w -I$(VBOX_PATH_WEBSERVICE)/gsoap $(GSOAPH_RELEVANT)
|
---|
458 | $(APPEND) $@ done
|
---|
459 |
|
---|
460 | # copy the generated headers and stuff. This has to be a seperate rule if we
|
---|
461 | # want to use wildcard (all commands are expaned when the rule is evaluated).
|
---|
462 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts: $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts | $$(dir $$@)
|
---|
463 | $(RM) -f $@
|
---|
464 | $(MKDIR) -p $(PATH_TARGET_SOAPDEMOXML) $(PATH_TARGET_SOAPDEMOHEADERS) $(PATH_TARGET_SOAPDEMONSMAPS)
|
---|
465 | ifdef VBOX_GSOAP_VERBOSE
|
---|
466 | $(MV) -f $(wildcard $(VBOXWEB_OUT_DIR)/*.req.xml $(VBOXWEB_OUT_DIR)/*.res.xml) $(PATH_TARGET_SOAPDEMOXML)
|
---|
467 | endif
|
---|
468 | $(MV) -f $(wildcard $(VBOXWEB_OUT_DIR)/soapvbox*.h) $(PATH_TARGET_SOAPDEMOHEADERS)
|
---|
469 | $(MV) -f $(VBOXWEB_OUT_DIR)/vboxBinding.nsmap $(PATH_TARGET_SOAPDEMONSMAPS)
|
---|
470 | $(APPEND) $@ done
|
---|
471 |
|
---|
472 | $(PATH_TARGET_SOAPDEMONSMAPS) \
|
---|
473 | $(PATH_TARGET_SOAPDEMOHEADERS)/soapvboxBindingProxy.h \
|
---|
474 | $(PATH_TARGET_SOAPDEMOHEADERS)/soapvboxBindingObject.h: $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
475 |
|
---|
476 | # soapcpp2 -2: generate SOAP 1.2 calls
|
---|
477 | # soapcpp2 -S: server-side code only
|
---|
478 | # soapcpp2 -L: don't generate soapClientLib/soapServerLib
|
---|
479 | # soapcpp2 -w: don't generate WSDL and schema files
|
---|
480 | # soapcpp2 -x: don't generate sample XML files
|
---|
481 |
|
---|
482 | ifndef VBOX_WITHOUT_SPLIT_SOAPC
|
---|
483 | #
|
---|
484 | # Split up the soapC.cpp monster into manageable bits that can be
|
---|
485 | # built in parallel and without exhausting all available memory.
|
---|
486 | #
|
---|
487 | $(VBOXWEB_OUT_DIR)/soapC-1.cpp \
|
---|
488 | + $(VBOXWEB_OUT_DIR)/soapC-2.cpp \
|
---|
489 | + $(VBOXWEB_OUT_DIR)/soapC-3.cpp \
|
---|
490 | + $(VBOXWEB_OUT_DIR)/soapC-4.cpp \
|
---|
491 | + $(VBOXWEB_OUT_DIR)/soapC-5.cpp \
|
---|
492 | + $(VBOXWEB_OUT_DIR)/soapC-6.cpp \
|
---|
493 | + $(VBOXWEB_OUT_DIR)/soapC-7.cpp \
|
---|
494 | + $(VBOXWEB_OUT_DIR)/soapC-8.cpp \
|
---|
495 | + $(VBOXWEB_OUT_DIR)/soapC-9.cpp \
|
---|
496 | + $(VBOXWEB_OUT_DIR)/soapC-10.cpp \
|
---|
497 | + $(VBOXWEB_OUT_DIR)/soapC-11.cpp \
|
---|
498 | + $(VBOXWEB_OUT_DIR)/soapC-12.cpp \
|
---|
499 | + $(VBOXWEB_OUT_DIR)/soapC-13.cpp \
|
---|
500 | + $(VBOXWEB_OUT_DIR)/soapC-14.cpp \
|
---|
501 | + $(VBOXWEB_OUT_DIR)/soapC-15.cpp \
|
---|
502 | + $(VBOXWEB_OUT_DIR)/soapC-16.cpp \
|
---|
503 | + $(VBOXWEB_OUT_DIR)/soapC-17.cpp \
|
---|
504 | + $(VBOXWEB_OUT_DIR)/soapC-18.cpp \
|
---|
505 | + $(VBOXWEB_OUT_DIR)/soapC-19.cpp \
|
---|
506 | + $(VBOXWEB_OUT_DIR)/soapC-20.cpp \
|
---|
507 | : $(VBOXWEB_OUT_DIR)/soapC.cpp $(VBOX_PATH_WEBSERVICE)/split-soapC.sed | $$(dir $$@)
|
---|
508 | $(RM) -f $(wildcard $(VBOXWEB_OUT_DIR)/soapC-?.cpp $(VBOXWEB_OUT_DIR)/soapC-??.cpp)
|
---|
509 | $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- \
|
---|
510 | $(SED) -f $(VBOX_PATH_WEBSERVICE)/split-soapC.sed soapC.cpp
|
---|
511 | endif # !VBOX_WITHOUT_SPLIT_SOAPC
|
---|
512 |
|
---|
513 | endif # VBOX_GSOAP_INSTALLED
|
---|
514 |
|
---|
515 |
|
---|
516 |
|
---|
517 | # generate method maps in server: map wsdl operations to com/xpcom method calls
|
---|
518 | $(VBOXWEB_OUT_DIR)/methodmaps.cpp: $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
519 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-cpp.xsl)
|
---|
520 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $<
|
---|
521 |
|
---|
522 |
|
---|
523 | ifdef VBOX_ONLY_SDK
|
---|
524 |
|
---|
525 | ## @todo Use an install target for these simple copy operations?
|
---|
526 | $(VBOXWEB_AXISSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/java/axis/clienttest.java
|
---|
527 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_AXIS_DIR)
|
---|
528 | $(QUIET)$(CP) -f $< $@
|
---|
529 |
|
---|
530 | $(VBOXWEB_JAXWSSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/clienttest.java
|
---|
531 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_JAXWS_DIR)
|
---|
532 | $(QUIET)$(CP) -f $< $@
|
---|
533 |
|
---|
534 | $(VBOXWEB_METRICSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/metrictest.java
|
---|
535 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_JAXWS_DIR)
|
---|
536 | $(QUIET)$(CP) -f $< $@
|
---|
537 |
|
---|
538 | $(VBOXWEB_PERLSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/perl/clienttest.pl
|
---|
539 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_PERL_DIR)
|
---|
540 | $(QUIET)$(CP) -f $< $@
|
---|
541 |
|
---|
542 | $(VBOXWEB_PYTHONWSSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/python/vboxshell.py
|
---|
543 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_PYTHONWS_DIR)
|
---|
544 | $(QUIET)$(CP) -f $< $@
|
---|
545 |
|
---|
546 | # somewhat hackish rule
|
---|
547 | $(VBOXWEB_SHELLCOMMON): $(PATH_ROOT)/src/libs/xpcom18a4/python/sample/shellcommon.py $(VBOXWEB_PYTHONWSSAMPLE)
|
---|
548 | $(QUIET)$(CP) -f $< $@
|
---|
549 |
|
---|
550 | # generate jax-ws wrapper for java client code
|
---|
551 | $(VBOXWEB_GLUE_JAVA_TMP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/glue-jaxws.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $$(TARGET_filesplitter) $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
552 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
553 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using glue-jaxws.xsl)
|
---|
554 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/glue-jaxws.xsl $<
|
---|
555 | $(call MSG_GENERATE,,java client glue files in $(VBOXWEB_PATH_SDK_GLUE_JAVA))
|
---|
556 | $(RM) -R -f $(VBOXWEB_PATH_SDK_GLUE_JAVA)
|
---|
557 | $(QUIET)$(MKDIR) -p $(VBOXWEB_PATH_SDK_GLUE_JAVA)
|
---|
558 | $(QUIET)$(TARGET_filesplitter) $@ $(VBOXWEB_PATH_SDK_GLUE_JAVA)
|
---|
559 |
|
---|
560 | # likely those 4 rules can be changed to INSTALLS
|
---|
561 | $(VBOXWEB_PATH_SDK_GLUE_JAVA)/Makefile: $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/Makefile.glue $(VBOXWEB_GLUE_JAVA_TMP)
|
---|
562 | $(QUIET)$(CP) $< $@
|
---|
563 |
|
---|
564 | $(VBOXWEB_SAMPLES_PYTHONWS_DIR)/Makefile: $(VBOX_PATH_WEBSERVICE)/samples/python/Makefile $(VBOXWEB_PERLSAMPLE)
|
---|
565 | $(QUIET)$(CP) $< $@
|
---|
566 |
|
---|
567 | $(VBOXWEB_SAMPLES_JAXWS_DIR)/Makefile: $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/Makefile $(VBOXWEB_JAXWSSAMPLE)
|
---|
568 | $(QUIET)$(CP) $< $@
|
---|
569 |
|
---|
570 | ## @todo r=bird: What is this for? It's not referenced by anyone.
|
---|
571 | $(VBOXWEB_JAVALIB)/Makefile: $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/Makefile.glue $(VBOXWEB_JAVA16_JAR)
|
---|
572 | $(QUIET)$(CP) $< $@
|
---|
573 |
|
---|
574 | $(VBOXWEB_JAVA15_JAR): $(VBOXWEB_GLUE_JAVA_TMP) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
|
---|
575 | $(QUIET)$(RM) -Rf $(VBOXWEB_JAVALIB)/gen15
|
---|
576 | $(QUIET)$(MKDIR) -p $(VBOXWEB_JAVALIB)/gen15
|
---|
577 | $(call MSG_GENERATE,,$@,JAX-WS for Java 1.5 bindings using $(VBOXWEBSERVICE_WSDL))
|
---|
578 | $(QUIET)$(VBOX_WSIMPORT15) -d $(VBOXWEB_JAVALIB)/gen15 $(VBOXWEBSERVICE_WSDL)
|
---|
579 | $(call MSG_L1,Compiling bridge code)
|
---|
580 | $(QUIET)$(VBOX_JAVAC15) -cp \
|
---|
581 | $(VBOXWEB_JAVALIB)/gen15:$(VBOX_JAXWS_LIBDIR)/jaxws-api.jar:$(VBOX_JAXWS_LIBDIR)/lib/jaxb-api.jar:$(VBOX_JAXWS_LIBDIR)/jsr181-api.jar \
|
---|
582 | $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java -d $(VBOXWEB_JAVALIB)/gen15
|
---|
583 | $(QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15/
|
---|
584 | $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen15/
|
---|
585 | $(QUIET)$(RM) -f $(VBOXWEB_JAVALIB)/gen15/*.java
|
---|
586 | $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen15
|
---|
587 | $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen15 .
|
---|
588 |
|
---|
589 | $(VBOXWEB_JAVA16_JAR): $(VBOXWEB_GLUE_JAVA_TMP) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
|
---|
590 | $(QUIET)$(RM) -Rf $(VBOXWEB_JAVALIB)/gen16
|
---|
591 | $(MKDIR) -p $(VBOXWEB_JAVALIB)/gen16
|
---|
592 | $(call MSG_GENERATE,,$@,JAX-WS for Java 1.6 bindings using $(VBOXWEBSERVICE_WSDL))
|
---|
593 | $(QUIET)$(VBOX_WSIMPORT16) -d $(VBOXWEB_JAVALIB)/gen16 $(VBOXWEBSERVICE_WSDL)
|
---|
594 | $(call MSG_L1,Compiling bridge code)
|
---|
595 | $(QUIET)$(VBOX_JAVAC16) -cp $(VBOXWEB_JAVALIB)/gen16 \
|
---|
596 | $(VBOXWEB_PATH_SDK_GLUE_JAVA)/*.java -d $(VBOXWEB_JAVALIB)/gen16
|
---|
597 | $(QUIET)$(CP) -f $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16/
|
---|
598 | $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEB_JAVALIB)/gen16/
|
---|
599 | $(QUIET)$(RM) -f $(VBOXWEB_JAVALIB)/gen16/*.java
|
---|
600 | $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOXWEB_JAVALIB)/gen16
|
---|
601 | $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOXWEB_JAVALIB)/gen16 .
|
---|
602 |
|
---|
603 | endif # VBOX_ONLY_SDK
|
---|
604 |
|
---|
605 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
606 |
|
---|