-
-
Notifications
You must be signed in to change notification settings - Fork 259
/
Copy pathSrc.pro.bak
93 lines (76 loc) · 3.09 KB
/
Src.pro.bak
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
#-------------------------------------------------
#
# Project created by QtCreator 2014-03-12T21:47:50
#
#-------------------------------------------------
TARGET = RabbitIm
TEMPLATE = lib
!CONFIG(static, static|shared) : DEFINES += BUILD_SHARED_LIBS #windows下动态库导出
CONFIG += create_prl no_install_prl create_pc no_install_pc
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
#设置目标输出目录
isEmpty(DESTDIR): DESTDIR = $$OUT_PWD/../bin
#安装前缀
isEmpty(PREFIX) : !isEmpty(INSTALL_ROOT) : PREFIX=$$INSTALL_ROOT
isEmpty(PREFIX) {
qnx : PREFIX = /tmp/$${TARGET}/bin
else : android : PREFIX = /.
else : PREFIX = $$OUT_PWD/../install
}
win32: DEFINES *= DLL_EXPORT
INCLUDEPATH *= common Widgets/FrmCustom
#修改文件中的第三方库配置
include(../pri/ThirdLibraryConfig.pri)
include(../pri/ThirdLibrary.pri)
include(../pri/ThirdLibraryJoin.pri)
include(Files.pri)
#发行版本才更新更新配置
include(../pri/RabbitImVersion.pri)
OTHER_FILES += CMakeLists.txt \
Files.cmake
#翻译资源
isEmpty(RabbitCommon_DIR): RabbitCommon_DIR=$$(RabbitCommon_DIR)
isEmpty(RabbitCommon_DIR): RabbitCommon_DIR=$$PWD/../../RabbitCommon
!isEmpty(RabbitCommon_DIR): exists("$${RabbitCommon_DIR}/Src/Src.pro") {
include($${RabbitCommon_DIR}/pri/Translations.pri)
DEFINES *= RABBITCOMMON
INCLUDEPATH *= $${RabbitCommon_DIR}/Src $${RabbitCommon_DIR}/Src/export
LIBS += -L$$DESTDIR -lRabbitCommon
} else {
message("Don't find RabbitCommon, in environment variable RabbitCommon_DIR:$$RabbitCommon_DIR")
message("1. Please download RabbitCommon source code from https://github.com/KangLin/RabbitCommon ag:")
message(" git clone https://github.com/KangLin/RabbitCommon.git")
error ("2. Then set environment variable RabbitCommon_DIR to download dirctory")
}
win32: target.path = $$PREFIX/bin
else: target.path = $$PREFIX/lib
!android : INSTALLS += target
#android : CONFIG += static #TODO:android < 18时,动态库加载会失败(可能是有未支持的函数),原因不明
#ANDROID 平台相关内容
android {
include($$PWD/../android/QtAndroidUtils/android/QtAndroidUtilsModule/jni/jni.pri)
INCLUDEPATH *= $$PWD/../android/QtAndroidUtils/android/QtAndroidUtilsModule/jni
}
win32:equals(QMAKE_HOST.os, Windows){
INSTALL_TARGET = $$system_path($${DESTDIR}/$(TARGET)) #$(TARGET)是qmake产生脚本中的引用
#mingw{ #手机平台不需要
# RABBITIM_STRIP.target = RABBITIM_STRIP
# RABBITIM_STRIP.commands = "strip $$INSTALL_TARGET"
# INSTALLS += RABBITIM_STRIP
#}
#安装qt依赖库
Deployment_qtlib.target = Deployment_qtlib
Deployment_qtlib.path = $$system_path($${PREFIX})
Deployment_qtlib.commands = "$$system_path($$[QT_INSTALL_BINS]/windeployqt)" \
--compiler-runtime \
--verbose 7 \
"$${INSTALL_TARGET}"
INSTALLS += Deployment_qtlib
}
#安装表情包
#emoji.target = emoji
#emoji.files = Emoji/Emojis
#android: emoji.path = $$system_path($${PREFIX}/assets)
#else: emoji.path = $$system_path($${PREFIX})
#emoji.CONFIG += directory
#INSTALLS += emoji