blob: 80c5b7cc1a171b50f3815bc69d7c63edd8e0ac92 (
plain)
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
|
#!/bin/bash
#
# execute from position-daemon direcotry
#
#introspection="../position-api/EnhancedPosition/EnhancedPosition.xml"
# minimal set (hand edited)
introspection="genivi-positioning-configuration-qt.xml"
interface="org.genivi.positioning.Configuration"
#####
echo
echo "precheck with xmllint"
xmllint $introspection
if [ $? != 0 ]; then
echo "xmllint failed ... check your xml"
exit 1
fi
mkdir -p server
mkdir -p client
#####
echo
echo "generate client"
cd client
pwd
qdbusxml2cpp -v -c ConfigurationIf -p confif.h:confif.cpp \
-i genivi-dbus-types.h \
../$introspection $interface
cd ..
#####
echo
echo "generate server"
cd server
pwd
qdbusxml2cpp -v -c ConfigurationIfAdaptor -a confifadaptor.h:confifadaptor.cpp \
-i genivi-dbus-types.h \
-i ConfigurationImpl.h -l ConfigurationImpl \
../$introspection $interface
cd ..
#####
echo
echo "done"
|