Add detection of and support for Visual Studio 2015
[qt:qt.git] / mkspecs / win32-msvc2015 / qmake.conf
1 #
2 # qmake configuration for win32-msvc2015
3 #
4 # Written for Microsoft Visual C++ 2015
5 #
6
7 MAKEFILE_GENERATOR      = MSBUILD
8 TEMPLATE                = app
9 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
10 QT                      += core gui
11 DEFINES                 += UNICODE WIN32
12 QMAKE_COMPILER_DEFINES  += _MSC_VER=1900 WIN32
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- -FS
20 QMAKE_CFLAGS_WARN_ON    = -W3
21 QMAKE_CFLAGS_WARN_OFF   = -W0
22 QMAKE_CFLAGS_RELEASE    = -O2 -MD
23 QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -O2 -MD -Zi
24 QMAKE_CFLAGS_DEBUG      = -Zi -MDd
25 QMAKE_CFLAGS_YACC       =
26 QMAKE_CFLAGS_LTCG       = -GL
27 QMAKE_CFLAGS_MP         = -MP
28
29 QMAKE_CXX               = $$QMAKE_CC
30 QMAKE_CXXFLAGS          = $$QMAKE_CFLAGS
31 QMAKE_CXXFLAGS_WARN_ON  = $$QMAKE_CFLAGS_WARN_ON -w34100 -w34189
32 QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
33 QMAKE_CXXFLAGS_RELEASE  = $$QMAKE_CFLAGS_RELEASE
34 QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
35 QMAKE_CXXFLAGS_DEBUG    = $$QMAKE_CFLAGS_DEBUG
36 QMAKE_CXXFLAGS_YACC     = $$QMAKE_CFLAGS_YACC
37 QMAKE_CXXFLAGS_LTCG     = $$QMAKE_CFLAGS_LTCG
38 QMAKE_CXXFLAGS_MP       = $$QMAKE_CFLAGS_MP
39 QMAKE_CXXFLAGS_STL_ON   = -EHsc
40 QMAKE_CXXFLAGS_STL_OFF  =
41 QMAKE_CXXFLAGS_RTTI_ON  = -GR
42 QMAKE_CXXFLAGS_RTTI_OFF =
43 QMAKE_CXXFLAGS_EXCEPTIONS_ON = -EHsc
44 QMAKE_CXXFLAGS_EXCEPTIONS_OFF =
45
46 QMAKE_INCDIR            =
47 QMAKE_INCDIR_QT         = $$[QT_INSTALL_HEADERS]
48 QMAKE_LIBDIR_QT         = $$[QT_INSTALL_LIBS]
49
50 QMAKE_RUN_CC            = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src
51 QMAKE_RUN_CC_IMP        = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $<
52 QMAKE_RUN_CC_IMP_BATCH  = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ @<<
53 QMAKE_RUN_CXX           = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src
54 QMAKE_RUN_CXX_IMP       = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $<
55 QMAKE_RUN_CXX_IMP_BATCH = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ @<<
56
57 QMAKE_LINK              = link
58 QMAKE_LFLAGS            = /NOLOGO /DYNAMICBASE /NXCOMPAT
59 QMAKE_LFLAGS_RELEASE    = /INCREMENTAL:NO
60 QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO = /DEBUG /OPT:REF
61 QMAKE_LFLAGS_DEBUG      = /DEBUG
62 QMAKE_LFLAGS_CONSOLE    = /SUBSYSTEM:CONSOLE
63 QMAKE_LFLAGS_WINDOWS    = /SUBSYSTEM:WINDOWS
64 QMAKE_LFLAGS_EXE        = \"/MANIFESTDEPENDENCY:type=\'win32\' name=\'Microsoft.Windows.Common-Controls\' version=\'6.0.0.0\' publicKeyToken=\'6595b64144ccf1df\' language=\'*\' processorArchitecture=\'*\'\"
65 QMAKE_LFLAGS_DLL        = /DLL
66 QMAKE_LFLAGS_LTCG       = /LTCG
67
68 QMAKE_LIBS_CORE         = kernel32.lib user32.lib shell32.lib uuid.lib ole32.lib advapi32.lib ws2_32.lib
69 QMAKE_LIBS_GUI          = gdi32.lib comdlg32.lib oleaut32.lib imm32.lib winmm.lib winspool.lib ws2_32.lib ole32.lib user32.lib advapi32.lib
70 QMAKE_LIBS_NETWORK      = ws2_32.lib
71 QMAKE_LIBS_OPENGL       = glu32.lib opengl32.lib gdi32.lib user32.lib
72 QMAKE_LIBS_COMPAT       = advapi32.lib shell32.lib comdlg32.lib user32.lib gdi32.lib ws2_32.lib
73
74 QMAKE_LIBS_QT_ENTRY     = -lqtmain
75
76 QMAKE_MOC               = $$[QT_INSTALL_BINS]\\moc.exe
77 QMAKE_UIC               = $$[QT_INSTALL_BINS]\\uic.exe
78 QMAKE_IDC               = $$[QT_INSTALL_BINS]\\idc.exe
79
80 QMAKE_IDL               = midl
81 QMAKE_LIB               = lib /NOLOGO
82 QMAKE_RC                = rc
83
84 QMAKE_ZIP               = zip -r -9
85
86 QMAKE_COPY              = copy /y
87 QMAKE_COPY_DIR          = xcopy /s /q /y /i
88 QMAKE_MOVE              = move
89 QMAKE_DEL_FILE          = del
90 QMAKE_DEL_DIR           = rmdir
91 QMAKE_CHK_DIR_EXISTS    = if not exist
92 QMAKE_MKDIR             = mkdir
93
94 VCPROJ_EXTENSION        = .vcxproj
95 VCSOLUTION_EXTENSION    = .sln
96 VCPROJ_KEYWORD  = Qt4VSv1.0
97 load(qt_config)