1 | # $Id: Makefile.kmk 36884 2011-04-29 09:46:16Z 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-2010 Oracle Corporation
|
---|
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 |
|
---|
20 | # Define VBOX_GSOAP_INSTALLED to something if you have gSOAP's
|
---|
21 | # "wsdl2h" and "soapcpp2" executables on your PATH somewhere.
|
---|
22 |
|
---|
23 | #
|
---|
24 | # Here's an overview how all this works. It's complicated. Essentially,
|
---|
25 | # lots of files get generated automatically from our XML XIDL file that
|
---|
26 | # describes the VirtualBox API (../idl/VirtualBox.xidl); as a result,
|
---|
27 | # no manual coding is necessary when the API changes. All generated
|
---|
28 | # web service code gets adjusted automatically.
|
---|
29 | #
|
---|
30 | # In more detail:
|
---|
31 | #
|
---|
32 | # 1) We use xsltproc and websrv-wsdl.xsl to generate a WSDL file from
|
---|
33 | # our XML IDL file. WSDL (Web Service Description language) is an XML
|
---|
34 | # industry standard that publicly describes a web service.
|
---|
35 | # So, the WSDL generated here describes the VirtualBox web
|
---|
36 | # service to third-party clients; for example, one can feed it to
|
---|
37 | # Java or Perl or some other toolkit that understands WSDL and thus
|
---|
38 | # easily write a short script that connects to the web service properly.
|
---|
39 | # This WSDL file ends up in $(VBOXWEB_OUT_DIR)/vboxweb.wsdl.
|
---|
40 | #
|
---|
41 | # 2) We use xsltproc and websrv-wsdl2gsoapH.xsl to generate a so-called
|
---|
42 | # "gSoap header file": $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h from
|
---|
43 | # the WSDL previously generated.
|
---|
44 | # This file looks like a C header file, but really isn't meant
|
---|
45 | # to be included by a C compiler. Instead, it just happens to be the
|
---|
46 | # format that gSOAP uses to specify SOAP interfaces instead of WSDL.
|
---|
47 | # (The reason for this appears to be that gSOAP predates WSDL and
|
---|
48 | # thus needed some format to describe the syntax of a web service.)
|
---|
49 | #
|
---|
50 | # Note that gSOAP now also comes with its own WSDL-to-gsoap.h converter,
|
---|
51 | # but the readme mentions some funny license restrictions, so instead we
|
---|
52 | # have our own converter in XSLT.
|
---|
53 | #
|
---|
54 | # 3) We then feed that pseudo-header file to gSOAP's soapcpp2 compiler,
|
---|
55 | # which generates a ton of files in $(VBOXWEB_OUT_DIR), most importantly:
|
---|
56 | #
|
---|
57 | # SOAP_CLIENT_H = $(VBOXWEB_OUT_DIR)/soapStub.h (header file for webservice clients)
|
---|
58 | # SOAP_SERVER_H = $(VBOXWEB_OUT_DIR)/soapH.h (header file for webservice servers)
|
---|
59 | #
|
---|
60 | # These are "real" header files that one can use to program a) a webservice client
|
---|
61 | # and b) a webservice server. Of course to build b) one will have to write method
|
---|
62 | # implementations with useful code that does something. This is where more
|
---|
63 | # code generation via XSLT comes in:
|
---|
64 | #
|
---|
65 | # 4) We use xsltproc to generate tons of C++ code directly from the XIDL that
|
---|
66 | # maps each SOAP method to our COM methods. This large C++ file is
|
---|
67 | # $(VBOXWEB_OUT_DIR)/methodmaps.cpp. The actual webservice executable (vboxwebsrv,
|
---|
68 | # which acts as an HTTP server) is composed of this file, plus hard-coded
|
---|
69 | # method implementations in vboxweb.cpp, plus gSOAP library code for the HTTP
|
---|
70 | # server.
|
---|
71 | #
|
---|
72 |
|
---|
73 | SUB_DEPTH = ../../../..
|
---|
74 | include $(KBUILD_PATH)/subheader.kmk
|
---|
75 |
|
---|
76 | #
|
---|
77 | # Find the gSOAP toolkit.
|
---|
78 | #
|
---|
79 | # Note! We're not using the gSOAP toolkit correctly. The main issue is that
|
---|
80 | # compiling soapcpp2.cpp instead of using the library. So, in order
|
---|
81 | # to make this work with a locally installed gSOAP toolkit there are
|
---|
82 | # some hoops to jump thru to say the least... Shipping soapcpp2.cpp/h
|
---|
83 | # is out of the question without also including the two soap tools.
|
---|
84 | #
|
---|
85 | # Some observations on distros for OSE / configure:
|
---|
86 | # The proposed gentoo ebuild screws up several things in the install phase
|
---|
87 | # and thus fails to ship stdsoap2.cpp and relatives.
|
---|
88 | #
|
---|
89 | # debian (2.7.9l-0.2) stuffs stdsoap2.cpp and a handful of the import files
|
---|
90 | # into /usr/include/gsoap.
|
---|
91 | #
|
---|
92 | # fedora (2.7.12-fc10.x86_64) uses the default install layout and does not
|
---|
93 | # ship stdsoap2.cpp and friends.
|
---|
94 | #
|
---|
95 | ifeq ($(VBOX_GSOAP_INSTALLED),)
|
---|
96 | VBOX_GSOAP_INSTALLED = 1
|
---|
97 | VBOX_PATH_GSOAP := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS)/common/gsoap/*)))
|
---|
98 | ifeq ($(VBOX_PATH_GSOAP),)
|
---|
99 | VBOX_PATH_GSOAP := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST)/gsoap/*)))
|
---|
100 | endif
|
---|
101 | if "$(VBOX_PATH_GSOAP)" == "" && defined(KBUILD_DEVTOOLS_HST)
|
---|
102 | VBOX_PATH_GSOAP := $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_HST_ALT)/gsoap/*)))
|
---|
103 | endif
|
---|
104 | ifeq ($(VBOX_PATH_GSOAP),)
|
---|
105 | $(warning VBOX_PATH_GSOAP not found...)
|
---|
106 | VBOX_GSOAP_INSTALLED =
|
---|
107 | endif
|
---|
108 | else
|
---|
109 | VBOX_PATH_GSOAP := $(VBOX_PATH_GSOAP)
|
---|
110 | endif
|
---|
111 | VBOX_PATH_GSOAP_BIN := $(strip $(VBOX_PATH_GSOAP_BIN))
|
---|
112 | if "$(VBOX_PATH_GSOAP_BIN)" == ""
|
---|
113 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP)/bin
|
---|
114 | if "$(KBUILD_HOST)" == "darwin"
|
---|
115 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP_BIN)/macosx
|
---|
116 | else if "$(KBUILD_HOST)" == "win"
|
---|
117 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP_BIN)/win32
|
---|
118 | else if "$(KBUILD_HOST)" == "linux"
|
---|
119 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP_BIN)/linux386
|
---|
120 | else
|
---|
121 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP_BIN)/$(KBUILD_HOST).x86
|
---|
122 | endif
|
---|
123 | if !exists($(VBOX_PATH_GSOAP_BIN))
|
---|
124 | VBOX_PATH_GSOAP_BIN := $(VBOX_PATH_GSOAP)/bin
|
---|
125 | endif
|
---|
126 | endif
|
---|
127 | VBOX_SOAPCPP2 := $(VBOX_PATH_GSOAP_BIN)/soapcpp2$(HOSTSUFF_EXE)
|
---|
128 | VBOX_WSDL2H := $(VBOX_PATH_GSOAP_BIN)/wsdl2h$(HOSTSUFF_EXE)
|
---|
129 | VBOX_STUBMAKER = $(firstword $(which stubmaker stubmaker.pl) stubmaker_not_found)
|
---|
130 | VBOX_WSDL2PY = $(firstword $(which wsdl2py) wsdl2py_not_found)
|
---|
131 |
|
---|
132 | VBOX_PATH_GSOAP_IMPORT := $(strip $(if $(VBOX_PATH_GSOAP_IMPORT),$(VBOX_PATH_GSOAP_IMPORT),$(VBOX_PATH_GSOAP)/import))
|
---|
133 | VBOX_GSOAP_INCS := $(strip $(if $(VBOX_GSOAP_INCS),$(VBOX_GSOAP_INCS),$(VBOX_PATH_GSOAP) $(VBOX_PATH_GSOAP_IMPORT) ))
|
---|
134 | # note: $(if $(defined FOO)) does not work here!
|
---|
135 | VBOX_GSOAP_CXX_SOURCES := $(strip $(if-expr "$(origin VBOX_GSOAP_CXX_SOURCES)" != "undefined",$(VBOX_GSOAP_CXX_SOURCES),$(VBOX_PATH_GSOAP)/stdsoap2.cpp))
|
---|
136 | VBOX_GSOAP_CXX_LIBS := $(strip $(if-expr "$(origin VBOX_GSOAP_CXX_LIBS)" != "undefined",$(VBOX_GSOAP_CXX_LIBS),))
|
---|
137 |
|
---|
138 |
|
---|
139 | #
|
---|
140 | # Globals
|
---|
141 | #
|
---|
142 | VBOXWEB_OUT_DIR := $(PATH_TARGET)/webservice
|
---|
143 | BLDDIRS += $(VBOXWEB_OUT_DIR)
|
---|
144 |
|
---|
145 | # The webservice location
|
---|
146 | VBOX_PATH_WEBSERVICE := $(PATH_SUB_CURRENT)
|
---|
147 |
|
---|
148 | # If this is set, all webservice files are considered out-of-date every time
|
---|
149 | # this makefile is touched. Otherwise, set this to empty.
|
---|
150 | RECOMPILE_ON_MAKEFILE_CURRENT := $(MAKEFILE_CURRENT)
|
---|
151 |
|
---|
152 | PATH_TARGET_SOAPDEMOXML := $(VBOXWEB_OUT_DIR)/demo_soapxml
|
---|
153 | PATH_TARGET_SOAPDEMOHEADERS := $(VBOXWEB_OUT_DIR)/demo_headers
|
---|
154 | PATH_TARGET_SOAPDEMONSMAPS := $(VBOXWEB_OUT_DIR)/demo_namespacemaps
|
---|
155 | PATH_TARGET_WEBTEST := $(VBOXWEB_OUT_DIR)/webtest
|
---|
156 |
|
---|
157 | # platform-specific XIDL file generated from $(VBOXWEB_IDL_SRC):
|
---|
158 | VBOXWEB_IDL_SRC_ORIG := $(VBOX_XIDL_FILE)
|
---|
159 | # the original XIDL file:
|
---|
160 | VBOXWEB_IDL_SRC := $(VBOXWEB_OUT_DIR)/VirtualBox.xidl
|
---|
161 |
|
---|
162 | VBOXWEB_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxweb.wsdl
|
---|
163 | VBOXWEBSERVICE_WSDL = $(VBOX_PATH_SDK)/bindings/webservice/vboxwebService.wsdl
|
---|
164 |
|
---|
165 | VBOXWEB_TYPEMAP := $(VBOXWEB_OUT_DIR)/typemap.dat
|
---|
166 |
|
---|
167 | VBOXWEB_GSOAPH_FROM_XSLT := $(VBOXWEB_OUT_DIR)/gsoapH_from_xslt.h
|
---|
168 | ifdef VBOX_GSOAP_INSTALLED
|
---|
169 | VBOXWEB_GSOAPH_FROM_GSOAP := $(VBOXWEB_OUT_DIR)/gsoapH_from_gsoap.h
|
---|
170 | else
|
---|
171 | VBOXWEB_GSOAPH_FROM_GSOAP :=
|
---|
172 | endif
|
---|
173 | VBOXWEB_SOAP_CLIENT_H := $(VBOXWEB_OUT_DIR)/soapStub.h
|
---|
174 | VBOXWEB_SOAP_SERVER_H := $(VBOXWEB_OUT_DIR)/soapH.h
|
---|
175 |
|
---|
176 |
|
---|
177 | ifdef VBOX_GSOAP_VERBOSE
|
---|
178 | VBOXWEB_XSLTPROC_VERBOSE = --stringparam G_argDebug '1'
|
---|
179 | VBOXWEB_WSDL_VERBOSE = -v
|
---|
180 | else
|
---|
181 | VBOXWEB_SOAPCPP2_SKIP_FILES = -x
|
---|
182 | endif
|
---|
183 |
|
---|
184 |
|
---|
185 | ## @todo VBOXWEB_GSOAPH_FROM_XSLT should probably be a indirect dep of something.
|
---|
186 | VBOXWEB_OTHERS += \
|
---|
187 | $(VBOXWEB_GSOAPH_FROM_XSLT)
|
---|
188 |
|
---|
189 |
|
---|
190 |
|
---|
191 | ifdef VBOX_GSOAP_INSTALLED
|
---|
192 | ifndef VBOX_ONLY_SDK
|
---|
193 | #
|
---|
194 | # vboxsoap - Library used by both the programs (save build time).
|
---|
195 | #
|
---|
196 | LIBRARIES += vboxsoap
|
---|
197 | vboxsoap_TEMPLATE = VBOXR3EXE
|
---|
198 | ifdef VBOX_USE_VCC80
|
---|
199 | vboxsoap_CXXFLAGS.win += -bigobj
|
---|
200 | endif
|
---|
201 | ifn1of ($(KBUILD_TARGET), win)
|
---|
202 | vboxsoap_CXXFLAGS += -Wno-shadow
|
---|
203 | endif
|
---|
204 | vboxsoap_INCS := \
|
---|
205 | $(VBOX_GSOAP_INCS) \
|
---|
206 | $(VBOXWEB_OUT_DIR) \
|
---|
207 | $(PATH_SUB_CURRENT)
|
---|
208 | ifdef VBOX_WITHOUT_SPLIT_SOAPC
|
---|
209 | vboxsoap_SOURCES = \
|
---|
210 | $(VBOXWEB_OUT_DIR)/soapC.cpp
|
---|
211 | else
|
---|
212 | BLDPROGS += split-soapC
|
---|
213 | split-soapC_TEMPLATE = VBOXBLDPROG
|
---|
214 | split-soapC_SOURCES = split-soapC.cpp
|
---|
215 |
|
---|
216 | vboxsoap_SOURCES = \
|
---|
217 | $(VBOXWEB_OUT_DIR)/soapC-1.cpp \
|
---|
218 | $(VBOXWEB_OUT_DIR)/soapC-2.cpp \
|
---|
219 | $(VBOXWEB_OUT_DIR)/soapC-3.cpp \
|
---|
220 | $(VBOXWEB_OUT_DIR)/soapC-4.cpp \
|
---|
221 | $(VBOXWEB_OUT_DIR)/soapC-5.cpp \
|
---|
222 | $(VBOXWEB_OUT_DIR)/soapC-6.cpp \
|
---|
223 | $(VBOXWEB_OUT_DIR)/soapC-7.cpp \
|
---|
224 | $(VBOXWEB_OUT_DIR)/soapC-8.cpp \
|
---|
225 | $(VBOXWEB_OUT_DIR)/soapC-9.cpp \
|
---|
226 | $(VBOXWEB_OUT_DIR)/soapC-10.cpp \
|
---|
227 | $(VBOXWEB_OUT_DIR)/soapC-11.cpp \
|
---|
228 | $(VBOXWEB_OUT_DIR)/soapC-12.cpp \
|
---|
229 | $(VBOXWEB_OUT_DIR)/soapC-13.cpp \
|
---|
230 | $(VBOXWEB_OUT_DIR)/soapC-14.cpp \
|
---|
231 | $(VBOXWEB_OUT_DIR)/soapC-15.cpp \
|
---|
232 | $(VBOXWEB_OUT_DIR)/soapC-16.cpp \
|
---|
233 | $(VBOXWEB_OUT_DIR)/soapC-17.cpp \
|
---|
234 | $(VBOXWEB_OUT_DIR)/soapC-18.cpp \
|
---|
235 | $(VBOXWEB_OUT_DIR)/soapC-19.cpp \
|
---|
236 | $(VBOXWEB_OUT_DIR)/soapC-20.cpp
|
---|
237 | endif
|
---|
238 | vboxsoap_CLEAN := $(vboxsoap_SOURCES) # lazy bird
|
---|
239 | vboxsoap_SOURCES += \
|
---|
240 | $(VBOX_GSOAP_CXX_SOURCES)
|
---|
241 | vboxsoap_ORDERDEPS = \
|
---|
242 | $(VBOXWEB_IDL_SRC) \
|
---|
243 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
244 | ifn1of ($(KBUILD_TARGET), win)
|
---|
245 | $(VBOX_GSOAP_CXX_SOURCES)_CXXFLAGS = -Wno-format
|
---|
246 | endif
|
---|
247 | $(VBOXWEB_OUT_DIR)/soapC-3.cpp_CXXFLAGS.win.x86 = -Og- # VCC70 says "function too large".
|
---|
248 |
|
---|
249 | ifdef VBOX_SOAP_PRECOMPILED_HEADER
|
---|
250 | # This'll save a few seconds, but the compiler invocation currently makes it impracticable. This will
|
---|
251 | # be addressed in a future kBuild version, by adding PCH support or/and by adding some helpers to
|
---|
252 | # gather the required data (DEFS,INCS,CXXTOOL,CXXFLAGS).
|
---|
253 | vboxsoap_INTERMEDIATES += $(VBOXWEB_OUT_DIR)/soapH.h.gch
|
---|
254 | vboxsoap_CXXFLAGS += -Winvalid-pch -H
|
---|
255 | vboxsoap_CLEAN += $(VBOXWEB_OUT_DIR)/soapH.h.gch
|
---|
256 |
|
---|
257 | $(VBOXWEB_OUT_DIR)/soapH.h.gch: $(VBOXWEB_OUT_DIR)/soapH.h
|
---|
258 | 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 \
|
---|
259 | $< -o $@
|
---|
260 | endif
|
---|
261 | endif # !VBOX_ONLY_SDK
|
---|
262 |
|
---|
263 |
|
---|
264 | ifndef VBOX_ONLY_SDK
|
---|
265 | #
|
---|
266 | # vboxwebsrv - webservice server process
|
---|
267 | #
|
---|
268 | PROGRAMS += vboxwebsrv
|
---|
269 | vboxwebsrv_TEMPLATE = VBOXMAINCLIENTEXE
|
---|
270 | vboxwebsrv_DEFS += SOCKET_CLOSE_ON_EXEC
|
---|
271 | vboxwebsrv_INCS = \
|
---|
272 | $(VBOX_GSOAP_INCS) \
|
---|
273 | $(VBOXWEB_OUT_DIR) \
|
---|
274 | .
|
---|
275 | ifdef VBOX_USE_VCC80
|
---|
276 | vboxwebsrv_CXXFLAGS.win += -bigobj
|
---|
277 | endif
|
---|
278 | ifn1of ($(KBUILD_TARGET), win)
|
---|
279 | vboxwebsrv_CXXFLAGS += -Wno-shadow
|
---|
280 | endif
|
---|
281 | vboxwebsrv_LIBS += \
|
---|
282 | $(PATH_LIB)/vboxsoap$(VBOX_SUFF_LIB) \
|
---|
283 | $(VBOX_GSOAP_CXX_LIBS)
|
---|
284 | vboxwebsrv_LIBS.solaris += socket nsl
|
---|
285 | vboxwebsrv_SOURCES = \
|
---|
286 | vboxweb.cpp \
|
---|
287 | $(VBOXWEB_OUT_DIR)/methodmaps.cpp \
|
---|
288 | $(VBOXWEB_OUT_DIR)/soapServer.cpp
|
---|
289 | vboxwebsrv_CLEAN = \
|
---|
290 | $(VBOXWEB_OUT_DIR)/methodmaps.cpp \
|
---|
291 | $(VBOXWEB_OUT_DIR)/soapServer.cpp
|
---|
292 |
|
---|
293 | vboxweb.cpp_DEFS = \
|
---|
294 | VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
|
---|
295 | $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
|
---|
296 |
|
---|
297 | vboxwebsrv_ORDERDEPS = $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
298 | endif # !VBOX_ONLY_SDK
|
---|
299 |
|
---|
300 | ifdef VBOX_WITH_JWS
|
---|
301 | INSTALLS += VBoxJWs-inst-jar
|
---|
302 |
|
---|
303 | #
|
---|
304 | # Java glue JAR files
|
---|
305 | #
|
---|
306 | VBOX_JWS_JAR = $(VBoxJWs-inst-jar_0_OUTDIR)/vboxjws.jar
|
---|
307 | VBOX_JWS_TARGET := $(PATH_TARGET)/vboxjws-gen
|
---|
308 | VBOX_JWS_GEN = $(VBOX_JWS_TARGET)/jwsgen
|
---|
309 | VBOX_JWS_JDEST := $(VBOX_JWS_TARGET)/jdest
|
---|
310 | VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
|
---|
311 | VBOX_JAXLIB_DIR := $(PATH_ROOT)/src/VBox/Main/webservice/jaxlibs
|
---|
312 |
|
---|
313 | VBoxJWs-inst-jar_INST = $(INST_SDK)bindings/webservice/java/jax-ws
|
---|
314 | VBoxJWs-inst-jar_SOURCES = \
|
---|
315 | $(VBOX_JWS_JAR)
|
---|
316 | VBoxJWs-inst-jar_CLEAN = \
|
---|
317 | $(VBOX_JWS_JAR) \
|
---|
318 | $(VBOX_JWS_GEN)/jwsglue.list \
|
---|
319 | $(wildcard \
|
---|
320 | $(VBOX_JWS_GEN)/java/*.java \
|
---|
321 | $(VBOX_JWS_GEN)/java/jws/*/*/*/*.java \
|
---|
322 | $(VBOX_JWS_JDEST)/*.class \
|
---|
323 | $(VBOX_JWS_JDEST)/*/*.class \
|
---|
324 | $(VBOX_JWS_JDEST)/*/*/*.class \
|
---|
325 | $(VBOX_JWS_JDEST)/*/*/*/*.class \
|
---|
326 | )
|
---|
327 | VBoxJWs-inst-jar_BLDDIRS += $(VBOX_JWS_GEN)/java $(VBOX_JWS_GEN)/java/jws
|
---|
328 |
|
---|
329 | $(VBOX_JWS_GEN)/jwsglue.list: \
|
---|
330 | $(VBOX_XIDL_FILE) \
|
---|
331 | $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
|
---|
332 | $(VBOX_FILESPLIT) \
|
---|
333 | $(VBOXWEBSERVICE_WSDL) \
|
---|
334 | | $(VBOX_JWS_GEN)/java/jws/
|
---|
335 | $(call MSG_L1,Generating JAX-WS Java glue files from XIDL)
|
---|
336 | $(RM) -f $(wildcard $(VBOX_JWS_GEN)/java/*.java) $(wildcard $(VBOX_JWS_GEN)/java/jws/*/*/*/*.java)
|
---|
337 | $(QUIET)$(VBOX_XSLTPROC) \
|
---|
338 | --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
|
---|
339 | --stringparam G_vboxGlueStyle jaxws \
|
---|
340 | -o $(VBOX_JWS_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
|
---|
341 | $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JWS_GEN)/java/merged.file $(VBOX_JWS_GEN)/java
|
---|
342 | $(call MSG_GENERATE,,$@,JAX-WS for Java 1.6 bindings using $(VBOXWEBSERVICE_WSDL))
|
---|
343 | $(VBOX_WSIMPORT) -Xnocompile -p $(VBOX_JAVA_PACKAGE).jaxws -d $(VBOX_JWS_GEN)/java/jws $(VBOXWEBSERVICE_WSDL)
|
---|
344 | $(QUIET)echo $(VBOX_JWS_GEN)/java/*.java > $@
|
---|
345 | $(QUIET)echo $(VBOX_JWS_GEN)/java/jws/*/*/*/*.java >> $@
|
---|
346 |
|
---|
347 | $$(VBOX_JWS_JAR): $(VBOX_JWS_GEN)/jwsglue.list $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) | $$(dir $$@)
|
---|
348 | $(call MSG_TOOL,javac,$(notdir $@),jwsgen.list,)
|
---|
349 | $(QUIET)$(RM) -Rf $(VBOX_JWS_JDEST)
|
---|
350 | $(QUIET)$(MKDIR) -p $(VBOX_JWS_JDEST)
|
---|
351 | $(call MSG_L1,Compiling bridge code)
|
---|
352 | $(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) \
|
---|
353 | @$(VBOX_JWS_GEN)/jwsglue.list \
|
---|
354 | -d $(VBOX_JWS_JDEST) -classpath $(VBOX_JWS_JDEST)
|
---|
355 | $(QUIET)$(SED) -e "s/vboxweb.wsdl/vboxweb$(VBOX_API_SUFFIX).wsdl/" < $(VBOXWEBSERVICE_WSDL) > $(VBOX_JWS_JDEST)/vboxwebService$(VBOX_API_SUFFIX).wsdl
|
---|
356 | $(QUIET)$(CP) -f $(VBOXWEB_WSDL) $(VBOX_JWS_JDEST)/vboxweb$(VBOX_API_SUFFIX).wsdl
|
---|
357 | $(call MSG_LINK,$(notdir $@),$@)
|
---|
358 | $(VBOX_JAR) cf $@ -C $(VBOX_JWS_JDEST) .
|
---|
359 |
|
---|
360 | endif # VBOX_WITH_JWS
|
---|
361 |
|
---|
362 | ifndef VBOX_ONLY_SDK
|
---|
363 | #
|
---|
364 | # webtest - webservice sample client in C++
|
---|
365 | #
|
---|
366 | PROGRAMS += webtest
|
---|
367 | webtest_TEMPLATE = VBOXR3EXE
|
---|
368 | ifdef VBOX_USE_VCC80
|
---|
369 | webtest_CXXFLAGS.win += -bigobj
|
---|
370 | endif
|
---|
371 | ifn1of ($(KBUILD_TARGET), win)
|
---|
372 | webtest_CXXFLAGS += -Wno-shadow
|
---|
373 | endif
|
---|
374 | webtest_INCS := \
|
---|
375 | $(VBOX_GSOAP_INCS) \
|
---|
376 | $(VBOXWEB_OUT_DIR) \
|
---|
377 | .
|
---|
378 | webtest_LIBS += \
|
---|
379 | $(PATH_LIB)/vboxsoap$(VBOX_SUFF_LIB) \
|
---|
380 | $(VBOX_GSOAP_CXX_LIBS)
|
---|
381 | webtest_LIBS.solaris += nsl
|
---|
382 | webtest_SOURCES = \
|
---|
383 | webtest.cpp \
|
---|
384 | $(VBOXWEB_OUT_DIR)/soapClient.cpp
|
---|
385 | webtest_CLEAN = \
|
---|
386 | $(VBOXWEB_OUT_DIR)/soapClient.cpp
|
---|
387 |
|
---|
388 | webtest_ORDERDEPS = $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
389 | endif # !VBOX_ONLY_SDK
|
---|
390 |
|
---|
391 |
|
---|
392 | #
|
---|
393 | # Additional mess to cleanup (applies to both webtest and vboxwebsrv).
|
---|
394 | #
|
---|
395 | ## @todo figure out whether the SDK really needs this or not...
|
---|
396 | OTHER_CLEAN += \
|
---|
397 | $(wildcard $(VBOXWEB_OUT_DIR)/soap*.h) \
|
---|
398 | $(wildcard $(VBOXWEB_OUT_DIR)/soap*.cpp) \
|
---|
399 | $(wildcard $(VBOXWEB_OUT_DIR)/*.nsmap) \
|
---|
400 | $(VBOXWEB_GSOAPH_FROM_XSLT) \
|
---|
401 | $(VBOXWEB_GSOAPH_FROM_GSOAP) \
|
---|
402 | $(VBOXWEB_SOAP_CLIENT_H) \
|
---|
403 | $(VBOXWEB_SOAP_SERVER_H) \
|
---|
404 | $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts \
|
---|
405 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts \
|
---|
406 | $(wildcard $(PATH_TARGET_SOAPDEMOXML)/*) \
|
---|
407 | $(PATH_TARGET_SOAPDEMOXML)/dummy_file \
|
---|
408 | $(wildcard $(PATH_TARGET_SOAPDEMOHEADERS)/*) \
|
---|
409 | $(PATH_TARGET_SOAPDEMOHEADERS)/dummy_file \
|
---|
410 | $(wildcard $(PATH_TARGET_SOAPDEMONSMAPS)/*) \
|
---|
411 | $(PATH_TARGET_SOAPDEMONSMAPS)/dummy_file
|
---|
412 |
|
---|
413 | endif # VBOX_GSOAP_INSTALLED
|
---|
414 |
|
---|
415 |
|
---|
416 | ifdef VBOX_ONLY_SDK
|
---|
417 | #
|
---|
418 | # Globals relevant to the SDK.
|
---|
419 | #
|
---|
420 | VBOXWEB_GLUE_PYTHON = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_wrappers.py
|
---|
421 | VBOXWEB_WS_PYTHON = $(VBOX_PATH_SDK)/bindings/webservice/python/lib/VirtualBox_services.py
|
---|
422 | VBOXWEB_WS_PERL = $(VBOX_PATH_SDK)/bindings/webservice/perl/lib/vboxService.pm
|
---|
423 | VBOXWEB_WS_PHP = $(VBOX_PATH_SDK)/bindings/webservice/php/lib/vboxServiceWrappers.php
|
---|
424 | VBOXWEB_SAMPLES_JAXWS_DIR = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/samples
|
---|
425 | VBOXWEB_JAXWSSAMPLE = $(VBOXWEB_SAMPLES_JAXWS_DIR)/clienttest.java
|
---|
426 | VBOXWEB_METRICSAMPLE = $(VBOXWEB_SAMPLES_JAXWS_DIR)/metrictest.java
|
---|
427 |
|
---|
428 | VBOXWEB_GLUE_JAVA_TMP = $(VBOXWEB_OUT_DIR)/glue-jaxws.java.tmp
|
---|
429 | VBOXWEB_PATH_SDK_GLUE_JAVA = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/src
|
---|
430 | VBOXWEB_JAVALIB = $(VBOX_PATH_SDK)/bindings/webservice/java/jax-ws/lib
|
---|
431 | VBOXWEB_JAVA15_JAR = $(VBOXWEB_JAVALIB)/vboxws_java15.jar
|
---|
432 | VBOXWEB_JAVA16_JAR = $(VBOXWEB_JAVALIB)/vboxws_java16.jar
|
---|
433 |
|
---|
434 | define find_java_files
|
---|
435 | $(shell find $(1) -name \*.java)
|
---|
436 | endef
|
---|
437 |
|
---|
438 | VBOXWEB_OTHERS += \
|
---|
439 | $(VBOXWEB_GLUE_PYTHON) \
|
---|
440 | $(VBOXWEB_WS_PYTHON) \
|
---|
441 | $(VBOXWEB_WS_PERL) \
|
---|
442 | $(VBOXWEB_WS_PHP) \
|
---|
443 | $(VBOXWEB_PYTHONWSSAMPLE) \
|
---|
444 | $(PATH_ROOT)
|
---|
445 |
|
---|
446 |
|
---|
447 | #
|
---|
448 | # Install sample code.
|
---|
449 | #
|
---|
450 | INSTALLS += vboxwebinst
|
---|
451 | vboxwebinst_INST = $(INST_SDK)bindings/webservice/
|
---|
452 | vboxwebinst_MODE = a+rx,u+w
|
---|
453 | vboxwebinst_SOURCES = \
|
---|
454 | samples/perl/clienttest.pl=>perl/samples/clienttest.pl \
|
---|
455 | samples/php/clienttest.php=>php/samples/clienttest.php
|
---|
456 |
|
---|
457 | INSTALLS += vboxwebinst_nox
|
---|
458 | vboxwebinst_nox_INST = $(INST_SDK)bindings/webservice/
|
---|
459 | vboxwebinst_nox_MODE = a+r,u+w
|
---|
460 | vboxwebinst_nox_SOURCES = \
|
---|
461 | samples/python/Makefile=>python/samples/Makefile \
|
---|
462 | samples/python/Makefile.glue=>python/lib/Makefile \
|
---|
463 | $(PATH_ROOT)/COPYING.LIB=>java/jax-ws/COPYING.LIB
|
---|
464 |
|
---|
465 | endif # VBOX_ONLY_SDK
|
---|
466 |
|
---|
467 | ## @todo VBOXWEB_WSDL and VBOXWEBSERVICE_WSDL should be an install target.
|
---|
468 | VBOXWEB_OTHERS += \
|
---|
469 | $(VBOXWEB_WSDL) \
|
---|
470 | $(VBOXWEBSERVICE_WSDL)
|
---|
471 |
|
---|
472 | #
|
---|
473 | # Update the OTHERS and OTHER_CLEAN lists with VBOXWEB_OTHERS and some more stuff.
|
---|
474 | #
|
---|
475 | # We can't just built up OTHERS and append it to OTHER_CLEAN because we're sharing
|
---|
476 | # OTHERS with all the other VBox makefiles, thus VBOXWEB_OTHERS.
|
---|
477 | #
|
---|
478 | OTHERS += $(VBOXWEB_OTHERS)
|
---|
479 | OTHER_CLEAN += \
|
---|
480 | $(VBOXWEB_OTHERS) \
|
---|
481 | $(VBOXWEB_TYPEMAP) \
|
---|
482 | $(VBOXWEB_IDL_SRC)
|
---|
483 |
|
---|
484 | # generate platform-specific XIDL file from original XIDL file
|
---|
485 | $(VBOXWEB_IDL_SRC): $(VBOXWEB_IDL_SRC_ORIG) $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl | $$(dir $$@)
|
---|
486 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using platform-xidl.xsl)
|
---|
487 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/platform-xidl.xsl $<
|
---|
488 |
|
---|
489 | # generate WSDL from main XIDL file
|
---|
490 | $(VBOXWEB_WSDL): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) ## @todo | $$(dir $$@)
|
---|
491 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
492 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl.xsl)
|
---|
493 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl.xsl $<
|
---|
494 |
|
---|
495 | $(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 $$@)
|
---|
496 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
497 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-wsdl-service.xsl)
|
---|
498 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl-service.xsl $<
|
---|
499 |
|
---|
500 | ifdef VBOX_ONLY_SDK
|
---|
501 |
|
---|
502 | $(VBOXWEB_GLUE_PYTHON): $(VBOXWEB_IDL_SRC) $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-python.xsl
|
---|
503 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-python.xsl)
|
---|
504 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
505 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-python.xsl $<
|
---|
506 |
|
---|
507 | $(VBOXWEB_WS_PYTHON): $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
|
---|
508 | $(call MSG_GENERATE,,$@, WS Python bindings)
|
---|
509 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
510 | # Try both w/o and with --file option
|
---|
511 | $(QUIET)$(REDIRECT) -C $(@D) -- bash -c "$(VBOX_WSDL2PY) -b $(VBOXWEBSERVICE_WSDL) || $(VBOX_WSDL2PY) -b --file $(VBOXWEBSERVICE_WSDL)"
|
---|
512 | $(QUIET)$(APPEND) $@ ''
|
---|
513 |
|
---|
514 | $(VBOXWEB_WS_PERL): $(VBOXWEB_WSDL) $(VBOXWEBSERVICE_WSDL)
|
---|
515 | $(call MSG_GENERATE,,$@, WS Perl bindings)
|
---|
516 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
517 | $(QUIET)$(REDIRECT) -C $(@D) -- $(VBOX_STUBMAKER) file://$(VBOXWEBSERVICE_WSDL)
|
---|
518 | # Ugly, ugly, ugly, make me right once
|
---|
519 | $(QUIET)$(SED) -e "s+http://www.virtualbox.org/Service+http://www.virtualbox.org/+" < $(VBOXWEB_WS_PERL) > $(VBOXWEB_WS_PERL).tmp
|
---|
520 | $(QUIET)$(MV) $(VBOXWEB_WS_PERL).tmp $(VBOXWEB_WS_PERL)
|
---|
521 | $(QUIET)$(APPEND) $@ ''
|
---|
522 |
|
---|
523 | $(VBOXWEB_WS_PHP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-php.xsl
|
---|
524 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-php.xsl)
|
---|
525 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
526 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-php.xsl $<
|
---|
527 |
|
---|
528 | endif # VBOX_ONLY_SDK
|
---|
529 |
|
---|
530 | # generate typemap.dat (used by wsdl2h) from main XIDL file
|
---|
531 | $(VBOXWEB_TYPEMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
532 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-typemap.xsl)
|
---|
533 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-typemap.xsl $<
|
---|
534 |
|
---|
535 | # generate gsoap pseudo-C header file from that WSDL; once via XSLT...
|
---|
536 | $(VBOXWEB_GSOAPH_FROM_XSLT): $(VBOXWEB_WSDL) $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
537 | $(call MSG_GENERATE,,$@,$(VBOXWEB_WSDL) using websrv-wsdl2gsoapH.xsl)
|
---|
538 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-wsdl2gsoapH.xsl $<
|
---|
539 |
|
---|
540 | NSMAP = $(VBOXWEB_OUT_DIR)/vboxwebsrv.nsmap
|
---|
541 |
|
---|
542 | $(NSMAP): $(VBOXWEB_IDL_SRC) $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $(VBOX_PATH_WEBSERVICE)/websrv-shared.inc.xsl $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
543 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-nsmap.xsl)
|
---|
544 | $(QUIET)$(VBOX_XSLTPROC) $(VBOXWEB_XSLTPROC_VERBOSE) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-nsmap.xsl $<
|
---|
545 |
|
---|
546 | ifdef VBOX_GSOAP_INSTALLED
|
---|
547 | # ... and once with the gSOAP tool (just for comparison, we don't use it for licensing reasons)
|
---|
548 | $(VBOXWEB_GSOAPH_FROM_GSOAP): $(VBOXWEB_WSDL) $(VBOXWEB_TYPEMAP) | $$(dir $$@)
|
---|
549 | $(call MSG_GENERATE,,$@,)
|
---|
550 | $(VBOX_WSDL2H) $(VBOXWEB_WSDL_VERBOSE) -t$(VBOXWEB_TYPEMAP) -nvbox -o $@ $<
|
---|
551 |
|
---|
552 | # this sets the gsoap header that we use for further compilation; if stuff works, then the
|
---|
553 | # one we generate via XSLT produces the same end result as the one from the gSOAP tool;
|
---|
554 | # with this variable we can swap for testing, but shipped code must use VBOXWEB_GSOAPH_FROM_XSLT
|
---|
555 | GSOAPH_RELEVANT = $(VBOXWEB_GSOAPH_FROM_XSLT)
|
---|
556 |
|
---|
557 | # wsdl2h -v: verbose
|
---|
558 | # wsdl2h -e: don't qualify enum names
|
---|
559 | # wsdl2h -n<prefix>: namespace header prefix
|
---|
560 |
|
---|
561 | ## @todo change this to state explicitly what will be generated?
|
---|
562 |
|
---|
563 | # generate server and client code from gsoap pseudo-C header file
|
---|
564 | $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts \
|
---|
565 | + $(VBOXWEB_OUT_DIR)/soapH.h \
|
---|
566 | + $(VBOXWEB_OUT_DIR)/soapStub.h \
|
---|
567 | + $(VBOXWEB_OUT_DIR)/soapC.cpp \
|
---|
568 | + $(VBOXWEB_OUT_DIR)/soapClient.cpp \
|
---|
569 | + $(VBOXWEB_OUT_DIR)/soapServer.cpp \
|
---|
570 | : $(VBOXWEB_GSOAPH_FROM_GSOAP) $(VBOXWEB_GSOAPH_FROM_XSLT) $(NSMAP) $(RECOMPILE_ON_MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
571 | $(call MSG_GENERATE,,lots of files,$(GSOAPH_RELEVANT))
|
---|
572 | $(RM) -f $@
|
---|
573 | $(REDIRECT) -C $(VBOXWEB_OUT_DIR) -- $(VBOX_SOAPCPP2) $(VBOXWEB_SOAPCPP2_SKIP_FILES) -L -2 -w -I$(VBOX_PATH_GSOAP_IMPORT) $(GSOAPH_RELEVANT)
|
---|
574 | $(APPEND) $@ done
|
---|
575 |
|
---|
576 | # copy the generated headers and stuff. This has to be a separate rule if we
|
---|
577 | # want to use wildcard (all commands are expaned when the rule is evaluated).
|
---|
578 | $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts: $(VBOXWEB_OUT_DIR)/gsoap_generate_all_ts | $$(dir $$@)
|
---|
579 | $(RM) -f $@
|
---|
580 | $(MKDIR) -p $(PATH_TARGET_SOAPDEMOXML) $(PATH_TARGET_SOAPDEMOHEADERS) $(PATH_TARGET_SOAPDEMONSMAPS)
|
---|
581 | ifdef VBOX_GSOAP_VERBOSE
|
---|
582 | $(MV) -f $(wildcard $(VBOXWEB_OUT_DIR)/*.req.xml $(VBOXWEB_OUT_DIR)/*.res.xml) $(PATH_TARGET_SOAPDEMOXML)
|
---|
583 | endif
|
---|
584 | $(MV) -f $(wildcard $(VBOXWEB_OUT_DIR)/soapvbox*.h) $(PATH_TARGET_SOAPDEMOHEADERS)
|
---|
585 | $(MV) -f $(VBOXWEB_OUT_DIR)/vboxBinding.nsmap $(PATH_TARGET_SOAPDEMONSMAPS)
|
---|
586 | $(APPEND) $@ done
|
---|
587 |
|
---|
588 | $(PATH_TARGET_SOAPDEMONSMAPS) \
|
---|
589 | $(PATH_TARGET_SOAPDEMOHEADERS)/soapvboxBindingProxy.h \
|
---|
590 | $(PATH_TARGET_SOAPDEMOHEADERS)/soapvboxBindingObject.h: $(VBOXWEB_OUT_DIR)/gsoap_copy_all_ts
|
---|
591 |
|
---|
592 | # soapcpp2 -2: generate SOAP 1.2 calls
|
---|
593 | # soapcpp2 -S: server-side code only
|
---|
594 | # soapcpp2 -L: don't generate soapClientLib/soapServerLib
|
---|
595 | # soapcpp2 -w: don't generate WSDL and schema files
|
---|
596 | # soapcpp2 -x: don't generate sample XML files
|
---|
597 |
|
---|
598 | ifndef VBOX_WITHOUT_SPLIT_SOAPC
|
---|
599 | #
|
---|
600 | # Split up the soapC.cpp monster into manageable bits that can be
|
---|
601 | # built in parallel and without exhausting all available memory.
|
---|
602 | #
|
---|
603 | $(VBOXWEB_OUT_DIR)/soapC-1.cpp \
|
---|
604 | + $(VBOXWEB_OUT_DIR)/soapC-2.cpp \
|
---|
605 | + $(VBOXWEB_OUT_DIR)/soapC-3.cpp \
|
---|
606 | + $(VBOXWEB_OUT_DIR)/soapC-4.cpp \
|
---|
607 | + $(VBOXWEB_OUT_DIR)/soapC-5.cpp \
|
---|
608 | + $(VBOXWEB_OUT_DIR)/soapC-6.cpp \
|
---|
609 | + $(VBOXWEB_OUT_DIR)/soapC-7.cpp \
|
---|
610 | + $(VBOXWEB_OUT_DIR)/soapC-8.cpp \
|
---|
611 | + $(VBOXWEB_OUT_DIR)/soapC-9.cpp \
|
---|
612 | + $(VBOXWEB_OUT_DIR)/soapC-10.cpp \
|
---|
613 | + $(VBOXWEB_OUT_DIR)/soapC-11.cpp \
|
---|
614 | + $(VBOXWEB_OUT_DIR)/soapC-12.cpp \
|
---|
615 | + $(VBOXWEB_OUT_DIR)/soapC-13.cpp \
|
---|
616 | + $(VBOXWEB_OUT_DIR)/soapC-14.cpp \
|
---|
617 | + $(VBOXWEB_OUT_DIR)/soapC-15.cpp \
|
---|
618 | + $(VBOXWEB_OUT_DIR)/soapC-16.cpp \
|
---|
619 | + $(VBOXWEB_OUT_DIR)/soapC-17.cpp \
|
---|
620 | + $(VBOXWEB_OUT_DIR)/soapC-18.cpp \
|
---|
621 | + $(VBOXWEB_OUT_DIR)/soapC-19.cpp \
|
---|
622 | + $(VBOXWEB_OUT_DIR)/soapC-20.cpp \
|
---|
623 | : $(VBOXWEB_OUT_DIR)/soapC.cpp $$(split-soapC_1_TARGET) | $$(dir $$@)
|
---|
624 | $(RM) -f $(wildcard $(VBOXWEB_OUT_DIR)/soapC-?.cpp $(VBOXWEB_OUT_DIR)/soapC-??.cpp)
|
---|
625 | $(split-soapC_1_TARGET) $(VBOXWEB_OUT_DIR)/soapC.cpp $(VBOXWEB_OUT_DIR) 20
|
---|
626 | endif # !VBOX_WITHOUT_SPLIT_SOAPC
|
---|
627 |
|
---|
628 | endif # VBOX_GSOAP_INSTALLED
|
---|
629 |
|
---|
630 |
|
---|
631 |
|
---|
632 | # generate method maps in server: map wsdl operations to com/xpcom method calls
|
---|
633 | $(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 $$@)
|
---|
634 | $(call MSG_GENERATE,,$@,$(VBOXWEB_IDL_SRC) using websrv-cpp.xsl)
|
---|
635 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_WEBSERVICE)/websrv-cpp.xsl $<
|
---|
636 |
|
---|
637 |
|
---|
638 | ifdef VBOX_ONLY_SDK
|
---|
639 |
|
---|
640 | $(VBOXWEB_JAXWSSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/clienttest.java
|
---|
641 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_JAXWS_DIR)
|
---|
642 | $(QUIET)$(SED) -e 's/{VBOX_API_SUFFIX}/$(VBOX_API_SUFFIX)/' < $< > $@
|
---|
643 |
|
---|
644 | $(VBOXWEB_METRICSAMPLE): $(VBOX_PATH_WEBSERVICE)/samples/java/jax-ws/metrictest.java
|
---|
645 | $(QUIET)$(MKDIR) -p $(VBOXWEB_SAMPLES_JAXWS_DIR)
|
---|
646 | $(QUIET)$(SED) -e 's/{VBOX_API_SUFFIX}/$(VBOX_API_SUFFIX)/' < $< > $@
|
---|
647 |
|
---|
648 | endif # VBOX_ONLY_SDK
|
---|
649 |
|
---|
650 | include $(KBUILD_PATH)/subfooter.kmk
|
---|