|
1 # |
|
2 # qmake configuration for common Windows CE |
|
3 # |
|
4 |
|
5 MAKEFILE_GENERATOR = MSVC.NET |
|
6 TEMPLATE = app |
|
7 QT += core gui |
|
8 CONFIG += qt warn_on release incremental flat link_prl precompile_header autogen_precompile_source copy_dir_files debug_and_release debug_and_release_target embed_manifest_dll embed_manifest_exe |
|
9 |
|
10 DEFINES += UNDER_CE WINCE _WINDOWS _UNICODE UNICODE _WIN32 QT_NO_PRINTER QT_NO_PRINTDIALOG |
|
11 |
|
12 QMAKE_COMPILER_DEFINES += _MSC_VER=1400 |
|
13 |
|
14 QMAKE_CC = cl |
|
15 QMAKE_LEX = flex |
|
16 QMAKE_LEXFLAGS = |
|
17 QMAKE_YACC = byacc |
|
18 QMAKE_YACCFLAGS = -d |
|
19 QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t- |
|
20 QMAKE_CFLAGS_WARN_ON = -W3 |
|
21 QMAKE_CFLAGS_WARN_OFF = -W0 |
|
22 QMAKE_CFLAGS_RELEASE = -O2 -MD |
|
23 QMAKE_CFLAGS_LTCG = -GL |
|
24 QMAKE_CFLAGS_DEBUG = -DDEBUG -D_DEBUG -Zi -MDd |
|
25 QMAKE_CFLAGS_YACC = |
|
26 |
|
27 # Uncomment the following lines to reduce library sizes |
|
28 # with potential cost of performance |
|
29 # QMAKE_CFLAGS += -Os |
|
30 # QMAKE_CFLAGS_RELEASE += -Os |
|
31 |
|
32 QMAKE_CXX = $$QMAKE_CC |
|
33 QMAKE_CXXFLAGS = $$QMAKE_CFLAGS |
|
34 QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189 |
|
35 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF |
|
36 QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE |
|
37 QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG |
|
38 QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG |
|
39 QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC |
|
40 QMAKE_CXXFLAGS_STL_ON = -EHsc |
|
41 QMAKE_CXXFLAGS_STL_OFF = |
|
42 QMAKE_CXXFLAGS_RTTI_ON = -GR |
|
43 QMAKE_CXXFLAGS_RTTI_OFF = |
|
44 QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc |
|
45 QMAKE_CXXFLAGS_EXCEPTIONS_OFF = -EHs-c- |
|
46 |
|
47 QMAKE_INCDIR = |
|
48 QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS] |
|
49 QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS] |
|
50 |
|
51 QMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src |
|
52 QMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< |
|
53 QMAKE_RUN_CC_IMP_BATCH = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<< |
|
54 QMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src |
|
55 QMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< |
|
56 QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<< |
|
57 |
|
58 QMAKE_LINK = link |
|
59 QMAKE_LFLAGS = /NOLOGO /NODEFAULTLIB:OLDNAMES.LIB |
|
60 QMAKE_LFLAGS_RELEASE = /INCREMENTAL:NO |
|
61 QMAKE_LFLAGS_DEBUG = /DEBUG |
|
62 QMAKE_LFLAGS_LTCG = /LTCG |
|
63 QMAKE_LIBS_NETWORK = ws2.lib |
|
64 QMAKE_LIBS_OPENGL = |
|
65 QMAKE_LIBS_COMPAT = |
|
66 |
|
67 QMAKE_LIBS_QT_ENTRY = -lqtmain |
|
68 |
|
69 QMAKE_MOC = $$[QT_INSTALL_BINS]\moc.exe |
|
70 QMAKE_UIC = $$[QT_INSTALL_BINS]\uic.exe |
|
71 QMAKE_IDC = $$[QT_INSTALL_BINS]\idc.exe |
|
72 |
|
73 QMAKE_IDL = midl |
|
74 QMAKE_LIB = lib |
|
75 QMAKE_RC = rc |
|
76 |
|
77 QMAKE_ZIP = zip -r -9 |
|
78 |
|
79 QMAKE_COPY = copy /y |
|
80 QMAKE_COPY_DIR = xcopy /s /q /y /i |
|
81 QMAKE_MOVE = move |
|
82 QMAKE_DEL_FILE = del |
|
83 QMAKE_DEL_DIR = rmdir |
|
84 QMAKE_CHK_DIR_EXISTS = if not exist |
|
85 QMAKE_MKDIR = mkdir |
|
86 |
|
87 VCPROJ_EXTENSION = .vcproj |
|
88 VCSOLUTION_EXTENSION = .sln |
|
89 VCPROJ_KEYWORD = Qt4VSv1.0 |
|
90 load(qt_config) |