-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile.am
53 lines (43 loc) · 2.06 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
bin_PROGRAMS = onvif_tool
CLEANFILES = soap*.cpp wsdd*.cpp onvif.h soap*.h wsdd*.h *.nsmap
onvif_tool_SOURCES = main.cpp
BUILT_SOURCES = generated_sources onvif.h
onvif_tool_CPPFLAGS = -I. -I $(GSOAP_PREFIX)/include -I $(GSOAP_PREFIX)/share/gsoap/plugin -I $(GSOAP_PREFIX)/share/gsoap/custom -I $(GSOAP_PREFIX)/prefix/share/gsoap -I $(GSOAP_PREFIX)/share/gsoap
onvif_tool_CXXFLAGs = -std=c++11 $(GSOAPSSL_CFLAGS)
onvif_tool_CFLAGS = -x c++ $(GSOAPSSL_CFLAGS)
onvif_tool_LDADD = $(GSOAPSSL_LIBS)
nodist_onvif_tool_SOURCES = \
soapC.cpp \
wsddClient.cpp \
wsddServer.cpp \
soapAdvancedSecurityServiceBindingProxy.cpp \
soapDeviceBindingProxy.cpp \
soapDeviceIOBindingProxy.cpp \
soapImagingBindingProxy.cpp \
soapMediaBindingProxy.cpp \
soapPTZBindingProxy.cpp \
soapPullPointSubscriptionBindingProxy.cpp \
soapRemoteDiscoveryBindingProxy.cpp \
$(GSOAP_PREFIX)/share/gsoap/plugin/smdevp.c \
$(GSOAP_PREFIX)/share/gsoap/plugin/mecevp.c \
$(GSOAP_PREFIX)/share/gsoap/plugin/wsaapi.c \
$(GSOAP_PREFIX)/share/gsoap/plugin/wsseapi.c \
$(GSOAP_PREFIX)/share/gsoap/plugin/wsddapi.c \
$(GSOAP_PREFIX)/share/gsoap/custom/struct_timeval.c
nodist_onvif_tool_SOURCES += onvif.h
WSDL_URLS = \
http://www.onvif.org/onvif/ver10/device/wsdl/devicemgmt.wsdl \
http://www.onvif.org/onvif/ver10/events/wsdl/event.wsdl \
http://www.onvif.org/onvif/ver10/deviceio.wsdl \
https://www.onvif.org/ver20/analytics/wsdl/analytics.wsdl \
http://www.onvif.org/onvif/ver20/imaging/wsdl/imaging.wsdl \
http://www.onvif.org/onvif/ver10/media/wsdl/media.wsdl \
http://www.onvif.org/onvif/ver20/ptz/wsdl/ptz.wsdl \
http://www.onvif.org/onvif/ver10/network/wsdl/remotediscovery.wsdl \
http://www.onvif.org/ver10/advancedsecurity/wsdl/advancedsecurity.wsdl
onvif.h: Makefile onvif.h.patch
$(WSDL2H) -d -O4 -P -o $@ $(WSDL_URLS)
patch -p1 < onvif.h.patch
generated_sources: onvif.h
$(SOAPCPP2) -2 -C -I $(GSOAP_PREFIX)/share/gsoap/import -I $(GSOAP_PREFIX)/share/gsoap -I $(GSOAP_PREFIX)/share/gsoap/custom -j -x onvif.h
$(SOAPCPP2) -a -x -L -pwsdd -I $(GSOAP_PREFIX)/share/gsoap/import/ $(GSOAP_PREFIX)/share/gsoap/import/wsdd5.h