Hi out there!
Currently I`m tasked with porting an existing QT application to multiple Windows Mobile platforms. I tried my hands on pocketpc 5.0, and it seems like it is performing quite well. I`m using the latest release of QT 4.3 "sweet&sour".
However, apparently I am experiencing some problem with my .pro file. As I`m trying to use one .pro file vor multiple platforms, I wanted to create multiple scopes, as shown in the example below. Although the environment is perfectly set up with all neccessary pocketpc 5.0 settings, it seems like the machine is always grabbing the win32 scope, while running nmake on the Windows console. Is there any opportunity to set the scope independently to the desired platform, storing them in one .pro file?
I would be very pleased with getting an answer which way will work best to overcome that obstacle. Any recommendations are welcome. Answers in german or english language are welcome.
|
Source code
|
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
|
*********Pro-File Start*********
# Diese Datei wurde mit dem qmake-Manager von KDevelop erstellt.
# -------------------------------------------
TEMPLATE = app
unix::CONFIG += debug \
warn_on \
qt \
thread
win32::CONFIG += debug \
warn_on \
qt \
thread \
embed_manifest_dll \
embed_manifest_exe
wincepocket50-msvc2005::CONFIG += release \
warn_on \
qt \
thread \
embed_manifest_dll \
embed_manifest_exe
QT += network xml
win32{
DESTDIR = ../../../path
}
unix{
DESTDIR = ../../../path
}
wincepocket50-msvc2005{
DESTDIR = ../../../path
}
TARGET = APPLICATION
win32::OBJECTS_DIR = ../../../path/windows
win32::UI_DIR = ../../../path/windows
win32::MOC_DIR = ../../../path/windows
win32::RCC_DIR = ../../../path/windows
unix::OBJECTS_DIR = ../../../path/linux
unix::UI_DIR = ../../../path/linux
unix::MOC_DIR = ../../../path/linux
unix::RCC_DIR = ../../../path/linux
wincepocket50-msvc2005::OBJECTS_DIR = ../../../path/wincepocket50-msvc2005
wincepocket50-msvc2005::UI_DIR = ../../../path/lfsguicli/wincepocket50-msvc2005
wincepocket50-msvc2005::MOC_DIR = ../../../path/lfsguicli/wincepocket50-msvc2005
wincepocket50-msvc2005::RCC_DIR = ../../../path/lfsguicli/wincepocket50-msvc2005
MAKEFILE = ./Makefile
unix::QMAKE_CFLAGS_DEBUG = -g
win32::QMAKE_CFLAGS = /Zm1000
win32::QMAKE_CXXFLAGS = /Zm1000
wincepocket50-msvc2005::QMAKE_CFLAGS = /Zm1000
wincepocket50-msvc2005::QMAKE_CXXFLAGS = /Zm1000
win32{
INCLUDEPATH = . \
../shared/path1/ \
../shared/path2/ \
../shared/path3
}
unix{
INCLUDEPATH = . \
../shared/path1/ \
../shared/path2/ \
../shared/path3
}
wincepocket50-msvc2005{
INCLUDEPATH = . \
../shared/path1/ \
}
SOURCES += *.cpp \
../shared/path/*.cpp \
win32{
SOURCES += ../shared/path/**.cpp \
}
unix{
SOURCES += ../shared/path/***.cpp \
}
HEADERS += *.h \
../shared/path/*.h \
win32{
HEADERS += ../shared/path/**.h \
}
unix{
HEADERS += ../shared/path/***.h \
}
TRANSLATIONS += ./lang/english.ts \
./lang/german.ts \
./lang/french.ts \
./lang/czech.ts \
./lang/spanish.ts
FORMS += optionsdialog.ui \
errDialog.ui
RESOURCES += QTC.qrc
#RC_FILE = QTC_icon.rc
unix::DEFINES += ldl
win32::DEFINES += QWT_DLL COMPILE_STATIC WIN32 _WIN32 __EUP_KERBEROS__
wincepocket50-msvc2005::DEFINES += QWT_DLL COMPILE_STATIC __EUP_WINCE__
win32::LIBS += Ws2_32.lib \
$$[QT_INSTALL_PLUGINS]/imageformats/qjpeg.lib \
../shared/path/*.lib
wincepocket50-msvc2005::LIBS += $$[QT_INSTALL_PLUGINS]/imageformats/qjpeg.lib \
**********Pro-File End**********
|
Thanks for your attention, Jens