forked from czyt1988/SARibbon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.pri
34 lines (30 loc) · 888 Bytes
/
common.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
CONFIG(debug, debug|release){
contains(QT_ARCH, i386) {
SARIBBON_BIN_DIR = $$PWD/bin_qt$$[QT_VERSION]_debug
}else {
SARIBBON_BIN_DIR = $$PWD/bin_qt$$[QT_VERSION]_debug_64
}
}else{
contains(QT_ARCH, i386) {
SARIBBON_BIN_DIR = $$PWD/bin_qt$$[QT_VERSION]_release
}else {
SARIBBON_BIN_DIR = $$PWD/bin_qt$$[QT_VERSION]_release_64
}
}
msvc {
QMAKE_CFLAGS += /utf-8
QMAKE_CXXFLAGS += /utf-8
}
#生成一个区别debug和release模式的lib名,输入一个lib名字
defineReplace(saRibbonLibNameMake) {
LibName = $$1
CONFIG(debug, debug|release){
LibName = $${LibName}d
}else{
LibName = $${LibName}
}
return ($${LibName})
}
SARIBBON_SRC_DIR = $$PWD/src # 源代码路径
SARIBBONBAR_PRI_FILE_PATH = $$PWD/SARibbonBar.pri # 源代码路径
SARIBBON_LIB_NAME=$$saRibbonLibNameMake(SARibbonBar)