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