1
# config.pri specifies the configure options
2
3
#This is a temporary workaround for internal Symbian builds
4
#QT_MAJOR_VERSION et al are not set
5
symbian {
6
    isEmpty(QT_MAJOR_VERSION)  {
7
         exists($${EPOCROOT}epoc32/data/z/system/install/Series60v5.2.sis) {
8
           QT_MAJOR_VERSION=4;
9
           QT_MINOR_VERSION=6;
10
           QT_PATCH_VERSION=0;
11
        }
12
    }
13
}
14
15
!include($$QT_MOBILITY_BUILD_TREE/config.pri) {
16
    error("Please run configure script");
17
}
18
19
#don't build QtMobility if chosen config mismatches Qt's config
20
win32:!contains(CONFIG_WIN32,build_all) {
21
   contains(QT_CONFIG,debug):!contains(QT_CONFIG,release):contains(CONFIG_WIN32,release) {
22
       # Qt only build in debug mode
23
       error(QtMobility cannot be build in release mode if Qt is build in debug mode only)
24
   }
25
   !contains(QT_CONFIG,debug):contains(QT_CONFIG,release):contains(CONFIG_WIN32,debug) {
26
       # Qt only build in release mode
27
       error(QtMobility cannot be build in debug mode if Qt is build in release mode only)
28
   }
29
}
30
31
lessThan(QT_MAJOR_VERSION, 4) {
32
    error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.);
33
}
34
35
contains(QT_MAJOR_VERSION, 4):lessThan(QT_MINOR_VERSION, 6) {
36
    error(Qt Mobility requires Qt 4.6 or higher. Qt $${QT_VERSION} was found.);
37
}
38
39
40
#generate prf file for Qt integration
41
PRF_OUTPUT=$${QT_MOBILITY_BUILD_TREE}/features/mobility.prf
42
43
system(echo MOBILITY_PREFIX=$${QT_MOBILITY_PREFIX} > $$PRF_OUTPUT)
44
system(echo MOBILITY_INCLUDE=$${QT_MOBILITY_INCLUDE} >> $$PRF_OUTPUT)
45
system(echo MOBILITY_LIB=$${QT_MOBILITY_LIB} >> $$PRF_OUTPUT)
46
47
unix:!symbian:system(cat $${QT_MOBILITY_SOURCE_TREE}/features/mobility.prf.template >> $$PRF_OUTPUT)
48
win32:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
49
symbian:system(type $${QT_MOBILITY_SOURCE_TREE}\features\mobility.prf.template >> $$PRF_OUTPUT)
50
51
#symbian does not generate make install rule. we have to copy prf manually 
52
symbian:system(copy $${QT_MOBILITY_BUILD_TREE}\features\mobility.prf $$[QT_INSTALL_DATA]\mkspecs\features)
53
54
# install feature file
55
feature.path = $$[QT_INSTALL_DATA]/mkspecs/features
56
feature.files = $$QT_MOBILITY_BUILD_TREE/features/mobility.prf
57
INSTALLS += feature
58
59
TEMPLATE = subdirs
60
CONFIG+=ordered
61
62
SUBDIRS += src tools plugins
63
#built documentation snippets, if enabled
64
contains(build_docs, yes) {
65
    SUBDIRS += doc
66
    include(doc/doc.pri)
67
68
    OTHER_FILES += doc/src/*.qdoc doc/src/examples/*.qdoc
69
}
70
71
contains(build_unit_tests, yes):SUBDIRS+=tests
72
contains(build_examples, yes):SUBDIRS+=examples
73
74
# install Qt style headers
75
qtmheaders.path = $${QT_MOBILITY_INCLUDE}
76
qtmheaders.files = $${QT_MOBILITY_BUILD_TREE}/include/*
77
78
INSTALLS += qtmheaders