-
Notifications
You must be signed in to change notification settings - Fork 112
/
demo_com.pri
64 lines (56 loc) · 1.1 KB
/
demo_com.pri
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
CONFIG -= qt
CONFIG += stl_off
CONFIG += debug_and_release
!CONFIG(DISABLE_WCHAR){
#打开wchar_t为内置类型
QMAKE_CXXFLAGS += /Zc:wchar_t
}
!CONFIG(MBCS){
CharacterSet = 1
}
else{
CharacterSet = 2
DEFINES -= UNICODE
}
CONFIG(USING_MT){
#使用MT链接CRT
QMAKE_CXXFLAGS_RELEASE += /MT
QMAKE_CXXFLAGS_DEBUG += /MTd
}
CONFIG(debug, debug|release) {
OBJECTS_DIR = debug
DESTDIR = debug
}
else {
OBJECTS_DIR = release
DESTDIR = release
}
CONFIG(x64){
OBJECTS_DIR = $$OBJECTS_DIR"64"
DESTDIR = $$DESTDIR"64"
}
CONFIG(x64){
QMAKE_LFLAGS += /MACHINE:X64
DEFINES -= WIN32
DEFINES += _WIN64
LIBPATH += $(SOUI3PATH)/bin64
}
else{
QMAKE_LFLAGS += /MACHINE:X86
LIBPATH += $(SOUI3PATH)/bin
}
#多核编译
QMAKE_CXXFLAGS += /MP
QMAKE_CXXFLAGS += -Fd$(IntDir)
DEPENDPATH += .
INCLUDEPATH += . \
$(SOUI3PATH)/utilities/include \
$(SOUI3PATH)/soui/include \
$(SOUI3PATH)/components \
$(SOUI3PATH)/config
CONFIG(debug,debug|release){
LIBS += utilitiesd.lib soui3d.lib
}
else{
LIBS += utilities.lib soui3.lib
}