2018-05-06 00:25:55 +00:00
|
|
|
#-------------------------------------------------
|
|
|
|
#
|
|
|
|
# Project created by QtCreator 2018-05-05T17:41:00
|
|
|
|
#
|
|
|
|
#-------------------------------------------------
|
|
|
|
|
|
|
|
QT -= core gui
|
|
|
|
|
|
|
|
TARGET = moonlight-common-c
|
|
|
|
TEMPLATE = lib
|
|
|
|
|
2019-04-21 18:08:33 +00:00
|
|
|
# Build a static library
|
|
|
|
CONFIG += staticlib
|
2018-07-29 00:22:12 +00:00
|
|
|
|
2021-04-30 02:22:59 +00:00
|
|
|
# Disable warnings
|
|
|
|
CONFIG += warn_off
|
|
|
|
|
2019-04-21 18:08:33 +00:00
|
|
|
# Include global qmake defs
|
|
|
|
include(../globaldefs.pri)
|
2018-09-04 07:18:02 +00:00
|
|
|
|
2018-06-24 03:08:17 +00:00
|
|
|
win32 {
|
|
|
|
INCLUDEPATH += $$PWD/../libs/windows/include
|
|
|
|
}
|
2018-05-06 00:25:55 +00:00
|
|
|
macx {
|
|
|
|
INCLUDEPATH += $$PWD/../libs/mac/include
|
|
|
|
}
|
|
|
|
unix:!macx {
|
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += openssl
|
2018-09-25 03:40:49 +00:00
|
|
|
DEFINES += HAVE_CLOCK_GETTIME=1
|
2018-05-06 00:25:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
COMMON_C_DIR = $$PWD/moonlight-common-c
|
|
|
|
ENET_DIR = $$COMMON_C_DIR/enet
|
|
|
|
RS_DIR = $$COMMON_C_DIR/reedsolomon
|
|
|
|
SOURCES += \
|
|
|
|
$$RS_DIR/rs.c \
|
|
|
|
$$ENET_DIR/callbacks.c \
|
|
|
|
$$ENET_DIR/compress.c \
|
|
|
|
$$ENET_DIR/host.c \
|
|
|
|
$$ENET_DIR/list.c \
|
|
|
|
$$ENET_DIR/packet.c \
|
|
|
|
$$ENET_DIR/peer.c \
|
|
|
|
$$ENET_DIR/protocol.c \
|
|
|
|
$$ENET_DIR/unix.c \
|
|
|
|
$$ENET_DIR/win32.c \
|
|
|
|
$$COMMON_C_DIR/src/AudioStream.c \
|
|
|
|
$$COMMON_C_DIR/src/ByteBuffer.c \
|
|
|
|
$$COMMON_C_DIR/src/Connection.c \
|
2020-07-27 04:05:11 +00:00
|
|
|
$$COMMON_C_DIR/src/ConnectionTester.c \
|
2018-05-06 00:25:55 +00:00
|
|
|
$$COMMON_C_DIR/src/ControlStream.c \
|
|
|
|
$$COMMON_C_DIR/src/FakeCallbacks.c \
|
|
|
|
$$COMMON_C_DIR/src/InputStream.c \
|
|
|
|
$$COMMON_C_DIR/src/LinkedBlockingQueue.c \
|
|
|
|
$$COMMON_C_DIR/src/Misc.c \
|
|
|
|
$$COMMON_C_DIR/src/Platform.c \
|
2021-04-19 00:34:12 +00:00
|
|
|
$$COMMON_C_DIR/src/PlatformCrypto.c \
|
2018-05-06 00:25:55 +00:00
|
|
|
$$COMMON_C_DIR/src/PlatformSockets.c \
|
2021-06-04 23:46:36 +00:00
|
|
|
$$COMMON_C_DIR/src/RtpAudioQueue.c \
|
|
|
|
$$COMMON_C_DIR/src/RtpVideoQueue.c \
|
2018-05-06 00:25:55 +00:00
|
|
|
$$COMMON_C_DIR/src/RtspConnection.c \
|
|
|
|
$$COMMON_C_DIR/src/RtspParser.c \
|
|
|
|
$$COMMON_C_DIR/src/SdpGenerator.c \
|
2018-10-27 03:22:38 +00:00
|
|
|
$$COMMON_C_DIR/src/SimpleStun.c \
|
2018-05-06 00:25:55 +00:00
|
|
|
$$COMMON_C_DIR/src/VideoDepacketizer.c \
|
|
|
|
$$COMMON_C_DIR/src/VideoStream.c
|
|
|
|
HEADERS += \
|
|
|
|
$$COMMON_C_DIR/src/Limelight.h
|
|
|
|
INCLUDEPATH += \
|
|
|
|
$$RS_DIR \
|
|
|
|
$$ENET_DIR/include \
|
|
|
|
$$COMMON_C_DIR/src
|
|
|
|
DEFINES += HAS_SOCKLEN_T
|
2018-07-22 02:33:44 +00:00
|
|
|
|
2018-10-14 18:26:29 +00:00
|
|
|
CONFIG(debug, debug|release) {
|
2018-07-22 23:05:42 +00:00
|
|
|
# Enable asserts on debug builds
|
|
|
|
DEFINES += LC_DEBUG
|
|
|
|
}
|
|
|
|
|
2018-07-22 02:33:44 +00:00
|
|
|
# Older GCC versions defaulted to GNU89
|
|
|
|
*-g++ {
|
|
|
|
QMAKE_CFLAGS += -std=gnu99
|
|
|
|
}
|