-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure
executable file
·136 lines (117 loc) · 3.61 KB
/
configure
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/bin/sh
FILENAME=localconfig.pri
cat > ${FILENAME} << EOF
#
# This file has been generated by the configure script of the
# meegotouch-controlpanelapplets package. The file will be automatically
# overwritten, please do not modify.
#
EOF
which pkg-config > /dev/null
if [ $? -eq 0 ]; then
#
# Most of applets needs the path for restore-settings/clean-user-data scripts
#
RFS_DIR=$(pkg-config clean-device --variable=rfs_scripts_dir)
CUD_DIR=$(pkg-config clean-device --variable=cud_scripts_dir)
echo "RFS_DIR = ${RFS_DIR}" >> ${FILENAME}
echo "CUD_DIR = ${CUD_DIR}" >> ${FILENAME}
#
# We have a heavy QmSystem2 dependency in the displayapplet and in the
# batteryapplet. This is the most important closed source dependency of the
# source
#
pkg-config --exists qmsystem2
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_QMSYSTEM" >> ${FILENAME}
fi
#
# The wallpaper applet uses the contentmaneger to implement the 'select from
# my gallery' widget.
#
pkg-config --exists ContentManager
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_CONTENT_MANAGER" >> ${FILENAME}
fi
#
# Soundsettings applet and profile uis needs the low level libprofile API
#
pkg-config --exists profile
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_LIBPROFILE" >> ${FILENAME}
fi
#
# Soundsettings applet and profile uis needs libresourceqt
#
pkg-config --exists libresourceqt1
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_LIBRESOURCEQT" >> ${FILENAME}
fi
#
# For better image handling, we need quill-image-filter for wallpaper applet
#
pkg-config --exists quillimagefilter
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_QUILL_FILTER" >> ${FILENAME}
fi
#
# Need the quill metadata for the exif information.
#
pkg-config --exists quillmetadata
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_QUILL_METADATA" >> ${FILENAME}
fi
#
# QtSparql needed for ringtone/wallpaper applet
#
pkg-config --exists QtSparql
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_QTSPARQL" >> ${FILENAME}
fi
#
# QtSparqlTrackerLive needed for ringtone/wallpaper applet
#
pkg-config --exists QtSparqlTrackerLive
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_QTSPARQL_LIVE" >> ${FILENAME}
fi
#
# ContentAction is needed to open URL-s (about-applet)
#
pkg-config --exists contentaction-0.1
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_CONTENT_ACTION" >> ${FILENAME}
fi
#
# ofono-qt is needed for GPRS applet
#
pkg-config --exists ofono-qt
if [ $? -eq 0 ]; then
echo "DEFINES += HAVE_OFONO_QT" >> ${FILENAME}
fi
fi
#
# The widgets and tools the Gallery application provides.
#
if [ -e /usr/share/qt4/mkspecs/features/gallerycore.prf ]; then
echo "DEFINES += HAVE_GALLERYCORE" >> ${FILENAME}
fi
#
# We need also the DBus interfaces names, and some meta-type registration
# from devicelock-dev header (in reset-settings applet)
#
if [ -e /usr/include/devicelock/devicelock.h ]; then
echo "DEFINES += HAVE_DEVICELOCK" >> ${FILENAME}
fi
#
# silent builds make debugging build failures in integration servers
# pain in the neck. So lets make the silent build configurable from
# central place ..
#
# FIXME: Well, except it is not configurable is it?
#
echo "CONFIG += silent" >> ${FILENAME}
#echo "# All values were removed for testing purposes..." > ${FILENAME}
echo Configured meegotouch-controlpanelapplets as follows:
echo =====================================================
cat ${FILENAME}