-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflv_player.pro
128 lines (109 loc) · 3.89 KB
/
flv_player.pro
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#-------------------------------------------------
#
# Project created by QtCreator 2019-02-27T18:03:17
#
#-------------------------------------------------
QT += core gui multimedia
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = flv_player
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as 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
# You can also make your code fail to compile if you use 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
CONFIG += c++11
# release版本带调试信息
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
win32 {
THIRD_PARTY_INSTALL_PREFIX = D:/third_party
INCLUDEPATH += $${THIRD_PARTY_INSTALL_PREFIX}/fdk-aac/include \
$${THIRD_PARTY_INSTALL_PREFIX}/openh264/include \
$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg-4.1.1-win32-dev/include
LIBS += -L$${THIRD_PARTY_INSTALL_PREFIX}/fdk-aac/lib -llibfdk-aac-2 \
-L$${THIRD_PARTY_INSTALL_PREFIX}/openh264/lib -lopenh264 \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg-4.1.1-win32-dev/lib -lavcodec \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg-4.1.1-win32-dev/lib -lavutil \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg-4.1.1-win32-dev/lib -lswresample
}
macx {
# mac only
}
unix:!macx {
CONFIG(debug, debug|release) {
THIRD_PARTY_INSTALL_PREFIX = /opt/third_party/debug
} else {
THIRD_PARTY_INSTALL_PREFIX = /opt/third_party/release
}
INCLUDEPATH += $${THIRD_PARTY_INSTALL_PREFIX}/fdk_aac/include \
$${THIRD_PARTY_INSTALL_PREFIX}/openh264/include \
$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/include
LIBS += -L$${THIRD_PARTY_INSTALL_PREFIX}/fdk_aac/lib -lfdk-aac \
-L$${THIRD_PARTY_INSTALL_PREFIX}/openh264/lib -lopenh264 \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/lib -lavcodec \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/lib -lavformat \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/lib -lavutil \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/lib -lswscale \
-L$${THIRD_PARTY_INSTALL_PREFIX}/ffmpeg/lib -lswresample \
-L$${THIRD_PARTY_INSTALL_PREFIX}/x264/lib -lx264
}
SOURCES += \
main.cpp \
main_window.cpp \
signal_center.cpp \
yuv420p_render.cpp \
yuv420p_player.cpp \
pcm_device.cpp \
pcm_player.cpp \
file/file_parsers.cpp \
file/flv/flv_base.cpp \
file/flv/flv_parser.cpp \
file/flv/metadata_tag.cpp \
file/flv/video_tag.cpp \
file/flv/audio_tag.cpp \
video/video_decoders.cpp \
video/h264/h264_decoder.cpp \
audio/audio_decoders.cpp \
audio/aac/fdkaac_dec.cpp \
audio/aac/aac_decoder.cpp \
options_dialog.cpp \
config.cpp
HEADERS += \
main_window.h \
byte_util.h \
singleton.h \
signal_center.h \
yuv420p.h \
yuv420p_render.h \
yuv420p_player.h \
pcm.h \
pcm_device.h \
pcm_player.h \
global.h \
av_sync.h \
file/file_parsers.h \
file/flv/flv_base.h \
file/flv/flv_parser.h \
file/flv/metadata_tag.h \
file/flv/video_tag.h \
file/flv/audio_tag.h \
video/video_decoders.h \
video/h264/h264_decoder.h \
audio/audio_decoders.h \
audio/aac/aac_decoder.h \
options_dialog.h \
config.h
FORMS += \
options_dialog.ui \
main_window.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
shaders.qrc