95 lines
2.5 KiB
Prolog
95 lines
2.5 KiB
Prolog
|
|
# libfairino.pro
|
|||
|
|
# Fairino机器人SDK静态库项目
|
|||
|
|
|
|||
|
|
TEMPLATE = lib
|
|||
|
|
CONFIG += staticlib
|
|||
|
|
CONFIG += c++17
|
|||
|
|
CONFIG -= qt
|
|||
|
|
|
|||
|
|
TARGET = fairino
|
|||
|
|
|
|||
|
|
# Windows下使用UTF-8编码
|
|||
|
|
win32 {
|
|||
|
|
QMAKE_CXXFLAGS += /utf-8
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# 头文件包含路径
|
|||
|
|
INCLUDEPATH += src/include
|
|||
|
|
INCLUDEPATH += src/include/Base
|
|||
|
|
INCLUDEPATH += src/include/Log
|
|||
|
|
INCLUDEPATH += src/include/Robot-CN
|
|||
|
|
INCLUDEPATH += src/include/TcpClient
|
|||
|
|
INCLUDEPATH += src/include/XmlRpc
|
|||
|
|
|
|||
|
|
# 定义宏
|
|||
|
|
DEFINES += WINDOWS_OPTION
|
|||
|
|
|
|||
|
|
# Windows下使用多字节字符集(MBCS)而非Unicode
|
|||
|
|
win32 {
|
|||
|
|
DEFINES += _MBCS
|
|||
|
|
DEFINES -= UNICODE
|
|||
|
|
DEFINES -= _UNICODE
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# 源文件
|
|||
|
|
SOURCES += \
|
|||
|
|
src/src/Base/Utility.cpp \
|
|||
|
|
src/src/Log/logger.cpp \
|
|||
|
|
src/src/Robot/robot.cpp \
|
|||
|
|
src/src/TcpClient/FRTcpClient.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcClient.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcDispatch.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcServer.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcServerConnection.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcServerMethod.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcSocket.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcSource.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcUtil.cpp \
|
|||
|
|
src/src/XmlRpc/XmlRpcValue.cpp \
|
|||
|
|
src/src/Log/elog.c \
|
|||
|
|
src/src/Log/elog_async.c \
|
|||
|
|
src/src/Log/elog_buf.c \
|
|||
|
|
src/src/Log/elog_file.c \
|
|||
|
|
src/src/Log/elog_file_port.c \
|
|||
|
|
src/src/Log/elog_port.c \
|
|||
|
|
src/src/Log/elog_utils.c
|
|||
|
|
|
|||
|
|
# 头文件
|
|||
|
|
HEADERS += \
|
|||
|
|
src/include/Base/base64.h \
|
|||
|
|
src/include/Base/md5.hpp \
|
|||
|
|
src/include/Base/Utility.h \
|
|||
|
|
src/include/Log/elog.h \
|
|||
|
|
src/include/Log/elog_cfg.h \
|
|||
|
|
src/include/Log/elog_file.h \
|
|||
|
|
src/include/Log/elog_file_cfg.h \
|
|||
|
|
src/include/Log/logger.h \
|
|||
|
|
src/include/Robot-CN/robot.h \
|
|||
|
|
src/include/Robot-CN/robot_error.h \
|
|||
|
|
src/include/Robot-CN/robot_types.h \
|
|||
|
|
src/include/TcpClient/FRTcpClient.h \
|
|||
|
|
src/include/TcpClient/network.h \
|
|||
|
|
src/include/XmlRpc/XmlRpc.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcClient.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcDispatch.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcException.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcServer.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcServerConnection.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcServerMethod.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcSocket.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcSource.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcUtil.h \
|
|||
|
|
src/include/XmlRpc/XmlRpcValue.h
|
|||
|
|
|
|||
|
|
# Windows平台链接库
|
|||
|
|
win32 {
|
|||
|
|
LIBS += -lws2_32
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
# Linux/Unix平台配置
|
|||
|
|
unix {
|
|||
|
|
QMAKE_CXXFLAGS += -fPIC
|
|||
|
|
target.path = /usr/lib
|
|||
|
|
}
|
|||
|
|
!isEmpty(target.path): INSTALLS += target
|