-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhplayer.pro
305 lines (264 loc) · 7.17 KB
/
hplayer.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#-------------------------------------------------
#
# Project created by QtCreator 2018-05-01T12:34:56
#
#-------------------------------------------------
# default CONFIG contains debug,release,debug_and_release
#CONFIG -= debug
#CONFIG -= release
#CONFIG -= debug_and_release
CONFIG += sdk_no_version_check
DEFINES -= UNICODE _UNICODE
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TEMPLATE = app
RC_ICONS = favicon.ico
RC_FILE = hplayer.rc
TARGET = hplayer
MOC_DIR = tmp/moc
RCC_DIR = tmp/rcc
UI_DIR = tmp/ui
OBJECTS_DIR = tmp/obj
#PRECOMPILED_HEADER = src/ui/qtheaders.h
DEFINES += QT_DEPRECATED_WARNINGS
RESOURCES += rc/skin.qrc rc/image.qrc
TRANSLATIONS = rc/lang/app_zh_CN.ts rc/lang/app_zh_CN.qm
INCLUDEPATH += src
# hv
DEFINES += HV_SOURCE
INCLUDEPATH += src/hv src/hv/base src/hv/utils
HEADERS += \
src/hv/hv.h \
src/hv/base/hplatform.h \
src/hv/base/hdef.h \
src/hv/base/hbase.h \
src/hv/base/hversion.h \
src/hv/base/htime.h \
src/hv/base/herr.h \
src/hv/base/hbuf.h \
src/hv/base/hlog.h \
src/hv/base/hscope.h \
src/hv/base/hstring.h \
src/hv/base/hmutex.h \
src/hv/base/hthread.h \
src/hv/utils/singleton.h \
src/hv/utils/iniparser.h \ \
src/video/HAudioPlayerFactory.h \
src/video/sdl_audioplayer.h \
SOURCES += \
src/hv/base/hversion.c \
src/hv/base/hbase.c \
src/hv/base/herr.c \
src/hv/base/htime.c \
src/hv/base/hlog.c \
src/hv/base/hstring.cpp \
src/hv/utils/iniparser.cpp \
src/video/sdl_audioplayer.cpp \
# http_client
# INCLUDEPATH += src/hv/http src/hv/http/client
# HEADERS += \
# src/hv/http/client/http_client.h \
# src/hv/http/httpdef.h \
# src/hv/http/http_parser.h \
# src/hv/http/multipart_parser.h \
# src/hv/http/http_content.h \
# src/hv/http/HttpMessage.h \
# src/hv/http/HttpParser.h \
# src/hv/http/Http1Parser.h \
# src/hv/base/hsocket.h \
# src/hv/base/hurl.h \
# SOURCES += \
# src/hv/http/client/http_client.cpp \
# src/hv/http/httpdef.c \
# src/hv/http/http_parser.c \
# src/hv/http/multipart_parser.c \
# src/hv/http/http_content.cpp \
# src/hv/http/HttpMessage.cpp \
# src/hv/http/HttpParser.cpp \
# src/hv/http/Http1Parser.cpp \
# src/hv/base/hsocket.c \
# src/hv/base/hurl.cpp \
# qt
INCLUDEPATH += src/qt
HEADERS += \
src/qt/qtheaders.h \
src/qt/qtfunctions.h \
src/qt/qtrcloader.h \
src/qt/HGLWidget.h \
SOURCES += \
src/qt/qtrcloader.cpp \
src/qt/HGLWidget.cpp \
# ui
INCLUDEPATH += src/ui
HEADERS += \
src/ui/qtstyles.h \
src/ui/CustomEventType.h \
src/ui/htable.h \
src/ui/MainWindow.h \
src/ui/CentralWidget.h \
src/ui/HMultiView.h \
src/ui/HVideoWidget.h \
src/ui/HVideoTitlebar.h \
src/ui/HVideoToolbar.h \
src/ui/HVideoWnd.h \
src/ui/HOpenMediaDlg.h \
src/ui/HMediaInfoDlg.h \
src/ui/HVideoWndFactory.h \
src/ui/GLWnd.h \
src/ui/LsideWidget.h \
src/ui/RsideWidget.h \
SOURCES += \
src/ui/htable.cpp \
src/ui/MainWindow.cpp \
src/ui/CentralWidget.cpp \
src/ui/HMultiView.cpp \
src/ui/HVideoWidget.cpp \
src/ui/HVideoTitlebar.cpp \
src/ui/HVideoToolbar.cpp \
src/ui/HVideoWnd.cpp \
src/ui/HOpenMediaDlg.cpp \
src/ui/HMediaInfoDlg.cpp \
src/ui/GLWnd.cpp \
src/ui/LsideWidget.cpp \
src/ui/RsideWidget.cpp \
# GL
DEFINES += GLEW_STATIC
INCLUDEPATH += src/GL
HEADERS += src/GL/glew.h
SOURCES += src/GL/glew.c
# video
INCLUDEPATH += src/video
HEADERS += \
src/video/hmedia.h \
src/video/HVideoPlayer.h \
src/video/HVideoPlayerFactory.h \
src/video/hffplayer.h \
src/video/sdl_audioplayer.h \
src/video/HAudioPlayerFactory.h \
SOURCES += \
src/video/hffplayer.cpp \
src/video/sdl_audioplayer.cpp \
# win32
INCLUDEPATH += src/win32
HEADERS += src/win32/hdevice.h
SOURCES += src/win32/hdevice.cpp
# util
INCLUDEPATH += src/util
HEADERS += \
src/util/ffmpeg_util.h \
src/util/sdl_util.h \
src/util/hgl.h \
src/util/hframe.h \
src/util/hgui.h \
SOURCES += src/util/hframe.cpp
# SDL
HEADERS += src/ui/SDL2Wnd.h
SOURCES += src/ui/SDL2Wnd.cpp
LIBS += -lSDL2
# global
HEADERS += src/appdef.h src/confile.h src/avdef.h
SOURCES += src/main.cpp
INCLUDEPATH += 3rd/include
win32 {
DEFINES += WIN32_LEAN_AND_MEAN
## opencv
##LIBS += -lopencv_core341 \
## -lopencv_highgui341 \
## -lopencv_imgcodecs341 \
## -lopencv_imgproc341 \
## -lopencv_videoio341 \
## FFmpeg
LIBS += -lavformat \
-lavdevice \
-lavcodec \
-lswresample \
-lswscale \
-lavutil \
## Windows API
LIBS += -lkernel32 \
-luser32 \
-lgdi32 \
\
-lopengl32 \
-lglu32 \
\
-lole32 \
-loleaut32 \
-lstrmiids \
\
-lws2_32 \
-lsecur32 \
win32-msvc {
if (contains(DEFINES, WIN64)) {
DESTDIR = $$_PRO_FILE_PWD_/bin/msvc2015_x64
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/msvc2015_x64
} else {
DESTDIR = $$_PRO_FILE_PWD_/bin/msvc2015_x86
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/msvc2015_x86
}
}
win32-g++ {
QMAKE_CFLAGS += -std=c99
QMAKE_CXXFLAGS += -std=c++11
if (contains(DEFINES, WIN64)) {
DESTDIR = $$_PRO_FILE_PWD_/bin/mingw64
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/mingw64
} else {
DESTDIR = $$_PRO_FILE_PWD_/bin/mingw32
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/mingw32
}
# for ffmpeg staticlib
LIBS += -liconv \
-lz \
-lbz2 \
-llzma \
-lcrypto \
-lbcrypt
}
}
unix {
## opencv
##LIBS += -lopencv_highgui \
## -lopencv_imgproc \
## -lopencv_core \
## FFmpeg
LIBS += -lavformat \
-lavdevice \
-lavcodec \
-lswresample \
-lswscale \
-lavutil \
QMAKE_CFLAGS += -std=c99
QMAKE_CXXFLAGS += -std=c++11
linux-g++ {
DESTDIR = $$_PRO_FILE_PWD_/bin/linux
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/linux
LIBS += -L$$DESTDIR
## sys
LIBS += -lGLU \
-lGL \
-lpthread \
-lm \
}
macx-clang {
DESTDIR = $$_PRO_FILE_PWD_/bin/mac
LIBS += -L$$_PRO_FILE_PWD_/3rd/lib/mac
LIBS += -L$$DESTDIR/$${TARGET}.app/Contents/Frameworks
QMAKE_RPATHDIR += @executable_path/../Frameworks
}
}
message(ARCH=$$QMAKE_HOST.arch)
message(QT_VERSION=$$QT_VERSION)
message(QMAKE=$$QMAKE_QMAKE)
message(QMAKESPEC=$$QMAKESPEC)
message(CC=$$QMAKE_CC)
message(CXX=$$QMAKE_CXX)
message(LINK=$$QMAKE_LINK)
message(CFLAGS=$$QMAKE_CFLAGS)
message(CXXFLAGS=$$QMAKE_CXXFLAGS)
message(PWD=$$PWD)
message(TARGET=$$DESTDIR/$$TARGET)
message(DEFINES=$$DEFINES)
message(CONFIG=$$CONFIG)
message(INCLUDEPATH=$$INCLUDEPATH)
message(LIBS=$$LIBS)