QT -= gui
TEMPLATE = lib
CONFIG += c++11
# The following define makes your compiler emit warnings if you use# any Qt feature that has been marked deprecated (the exact warnings# depend on your compiler). Please consult the documentation of the# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# 设置宏定义
DEFINES += CURL_STATICLIB
#DEFINES += OS_ANDROID# You can also make your code fail to compile if it uses deprecated APIs.# In order to do so, uncomment the following line.# You can also select to disable deprecated APIs only up to a certain version of Qt.#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0# 设置编译生成的临时文件输出路径
MOC_DIR = $$PWD/temp/moc
RCC_DIR = $$PWD/temp/rcc
UI_DIR = $$PWD/temp/ui
OBJECTS_DIR = $$PWD/temp/obj
# 设置头文件路径
INCLUDEPATH +=../public
# 条件编译
if(contains(DEFINES,OS_ANDROID)){
LIBS_PATH =../public/arm-ca53-linux/lib
INCLUDEPATH +=../public/arm-ca53-linux/include
}else{
# 必须在同一行
LIBS_PATH =../public/x86-64-linux/lib
INCLUDEPATH +=../public/x86-64-linux/include
DEPENDPATH +=../public/x86-64-linux/lib
}# 打印
message($$LIBS_PATH)
SOURCES +=\../public/Base64.cpp \
EhcHandler.cpp \
ErrorDefine.cpp \
VirtualCardChk.cpp \../public/SM3.cpp \../public/StringUtil.cpp \../public/database.cpp \../public/httpsclient.cpp \../public/json/json_reader.cpp \../public/json/json_value.cpp \../public/json/json_writer.cpp \../public/LogUtil.cpp \../public/JsonUtil.cpp \../public/sm4.cpp \../public/md5.cpp
HEADERS +=\
Base64.h \
EhcHandler.h \
ErrorDefine.h \
VirtualCardChk.h \
SharedMutex.h \
Singleton.h \
StringUtil.h \
ThreadLockCs.h \
Util.h \
database.h \
httpsclient.h \
json_batchallocator.h \
json_internalarray.inl \
json_internalmap.inl \
json_valueiterator.inl \
sm3.h \
sm4.h \
stdafx.h
# Default rules for deployment.
unix {
target.path = /usr/lib
}!isEmpty(target.path): INSTALLS += target
# 链接静态库
LIBS +=$$LIBS_PATH/libcurl.a
LIBS +=$$LIBS_PATH/libssl.a
LIBS +=$$LIBS_PATH/libcrypto.a
message($$LIBS)