VirtualBox

source: vbox/trunk/src/VBox/Main/webservice/Makefile.webtest@ 106065

Last change on this file since 106065 was 106061, checked in by vboxsync, 2 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1# $Id: Makefile.webtest 106061 2024-09-16 14:03:52Z vboxsync $
2## @files
3# ???
4#
5
6#
7# Copyright (C) 2016-2024 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28XSLTPROC = xsltproc
29ifeq ($(PATH_GSOAP),)
30 PATH_GSOAP = $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS)/common/gsoap/*)))
31endif
32PATH_GSOAP_BIN := $(strip $(PATH_GSOAP))
33ifeq ($(PATH_GSOAP_BIN),)
34 PATH_GSOAP_BIN = /usr/bin
35endif
36SOAPCPP2 = $(PATH_GSOAP_BIN)/soapcpp2
37
38ifneq ($(MAKECMDGOALS),clean)
39 ifeq ($(wildcard $(PATH_GSOAP)/stdsoap2.cpp),)
40 $(error Fix PATH_GSOAP!)
41 endif
42endif
43
44WEBSRVWSDL2GSOAPH = ../../../xsl/websrv-wsdl2gsoapH.xsl
45WEBSRVNSMAPXSL = ../../../xsl/websrv-nsmap.xsl
46VBOXWEBIDLSRC = ../../../../VirtualBox.xidl
47VBOXWEBWSDL = ../../../vboxweb.wsdl
48SPLITSOAPCCPP = ../../../tools/split-soapC.cpp
49SOAPCCPP = $(foreach num,1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20,soapC-$(num).cpp)
50SOAPCO = $(patsubst %.cpp,%.o,$(SOAPCCPP))
51
52webtest: webtest.o soapClient.o $(SOAPCO) stdsoap2.o
53 $(CXX) -O2 -o $@ $^ -lssl -lcrypto
54
55webtest.o: webtest.cpp soapC.cpp vboxwebsrv.nsmap
56 $(CXX) -O2 -DWITH_OPENSSL -c -o $@ $< -I$(PATH_GSOAP)
57
58soapClient.o: soapC.cpp
59 $(CXX) -O2 -c -o $@ soapClient.cpp -I$(PATH_GSOAP)
60
61$(SOAPCO): soapC-%.o: soapC-%.cpp
62 $(CXX) -O0 -c -o $@ $< -I$(PATH_GSOAP)
63
64soapC.cpp: gsoapH_from_xslt.h
65 $(SOAPCPP2) -x -L -2 -w -I$(PATH_GSOAP)/import $^
66
67stdsoap2.o: $(PATH_GSOAP)/stdsoap2.cpp
68 $(CXX) -O2 -DWITH_OPENSSL -c -o $@ $<
69
70gsoapH_from_xslt.h:
71 $(XSLTPROC) -o $@ $(WEBSRVWSDL2GSOAPH) $(VBOXWEBWSDL)
72
73vboxwebsrv.nsmap:
74 $(XSLTPROC) -o $@ $(WEBSRVNSMAPXSL) $(VBOXWEBIDLSRC)
75
76$(subst soapC,%,$(SOAPCCPP)): split-soapC %.cpp
77 ./split-soapC soapC.cpp . 20
78
79split-soapC: $(SPLITSOAPCCPP)
80 $(CXX) -O2 -o $@ $<
81
82.PHONY: clean
83clean:
84 rm -f gsoapH_from_xslt.h
85 rm -f soapStub.h soapServer.cpp soapC.cpp soapClient.cpp
86 rm -f soapH.h soapvboxBindingObject.h soapvboxBindingProxy.h
87 rm -f vboxBinding.nsmap
88 rm -f vboxwebsrv.nsmap
89 rm -f split-soapC
90 rm -f $(SOAPCCPP) $(SOAPCO)
91 rm -f soapClient.o stdsoap2.o
92 rm -f webtest.o webtest
93 rm -f soapC-split-done
94
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette