forked from wang-bin/QtAV
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libQtAV.pro
663 lines (645 loc) · 21.4 KB
/
libQtAV.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
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
863
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
TEMPLATE = lib
MODULE_INCNAME = QtAV # for mac framework. also used in install_sdk.pro
TARGET = QtAV
QT = core gui
#CONFIG *= ltcg
greaterThan(QT_MAJOR_VERSION, 5): QT = opengl
greaterThan(QT_MAJOR_VERSION, 4) {
contains(QT_CONFIG, opengl) {
CONFIG *= config_opengl
greaterThan(QT_MINOR_VERSION, 3) {
CONFIG *= config_openglwindow
}
}
} else {
config_gl: QT = opengl
}
CONFIG *= qtav-buildlib
static: CONFIG *= static_ffmpeg
INCLUDEPATH = $$[QT_INSTALL_HEADERS] # TODO: ffmpeg dir
#mac: simd.prf will load qt_build_config and the result is soname will prefixed with QT_INSTALL_LIBS and link flag will append soname after QMAKE_LFLAGS_SONAME
config_libcedarv: CONFIG *= neon config_simd #need by qt4 addSimdCompiler(). neon or config_neon is required because tests/arch can not detect neon
## sse2 sse4_1 may be defined in Qt5 qmodule.pri but is not included. Qt4 defines sse and sse2
sse4_1|config_sse4_1|contains(TARGET_ARCH_SUB, sse4.1): CONFIG *= sse4_1 config_simd
sse2|config_sse2|contains(TARGET_ARCH_SUB, sse2): CONFIG *= sse2 config_simd
CONFIG(debug, debug|release): DEFINES = DEBUG
#release: DEFINES = QT_NO_DEBUG_OUTPUT
#var with '_' can not pass to pri?
PROJECTROOT = $$PWD/..
!include(libQtAV.pri): error("could not find libQtAV.pri")
preparePaths($$OUT_PWD/../out)
exists($$PROJECTROOT/extra/qtLongName(include)): INCLUDEPATH = $$PROJECTROOT/extra/qtLongName(include)
exists($$PROJECTROOT/extra/qtLongName(lib)): LIBS = -L$$PROJECTROOT/extra/qtLongName(lib)
staticlib: DEFINES = BUILD_QTAV_STATIC
config_uchardet {
DEFINES = LINK_UCHARDET
LIBS *= -luchardet
} else:exists($$PROJECTROOT/contrib/uchardet/src/uchardet.h) {
include($$PROJECTROOT/contrib/uchardet.pri)
DEFINES = BUILD_UCHARDET
}
exists($$PROJECTROOT/contrib/capi/capi.pri) {
include($$PROJECTROOT/contrib/capi/capi.pri)
DEFINES *= QTAV_HAVE_CAPI=1
} else {
warning("contrib/capi is missing. run 'git submodule update --init' first")
}
RESOURCES = QtAV.qrc \
shaders/shaders.qrc
!rc_file {
RC_ICONS = QtAV.ico
QMAKE_TARGET_COMPANY = "[email protected]"
QMAKE_TARGET_DESCRIPTION = "QtAV Multimedia framework. http://qtav.org"
QMAKE_TARGET_COPYRIGHT = "Copyright (C) 2012-2019 WangBin, [email protected]"
QMAKE_TARGET_PRODUCT = "QtAV"
} else:win32 {
RC_FILE = QtAV.rc
#no depends for rc file by default, even if rc includes a header. Makefile target use '/' as default, so not works iwth win cmd
rc.target = $$clean_path($$RC_FILE) #rc obj depends on clean path target
rc.depends = $$PWD/QtAV/version.h
#why use multiple rule failed? i.e. add a rule without command
isEmpty(QMAKE_SH) {
rc.commands = @copy /B $$system_path($$RC_FILE) ,, #change file time
} else {
rc.commands = @touch $$RC_FILE #change file time
}
QMAKE_EXTRA_TARGETS = rc
}
OTHER_FILES = $$RC_FILE QtAV.svg
TRANSLATIONS = i18n/QtAV_zh_CN.ts i18n/QtAV.ts
sse4_1 {
CONFIG = sse2 #only sse4.1 is checked. sse2 now can be disabled if sse4.1 is disabled
DEFINES = QTAV_HAVE_SSE4_1=1
!config_simd: CONFIG *= simd
SSE4_1_SOURCES = utils/CopyFrame_SSE4.cpp
}
sse2 {
DEFINES = QTAV_HAVE_SSE2=1
!config_simd: CONFIG *= simd
SSE2_SOURCES = utils/CopyFrame_SSE2.cpp
}
win32 {
# cross build, old vc etc.
!config_dx: INCLUDEPATH = $$PROJECTROOT/contrib/dxsdk
}
*msvc*:!winrt {
#link FFmpeg and portaudio which are built by gcc need /SAFESEH:NO
win32-msvc2010|win32-msvc2008|win32-msvc2012 {
QMAKE_LFLAGS *= /DEBUG #workaround for CoInitializeEx() and other symbols not found at runtime
INCLUDEPATH *= compat/msvc # vs2012 only has stdint.h
}
debug: QMAKE_LFLAGS = /SAFESEH:NO
#CXXFLAGS debug: /MTd
!static:QMAKE_LFLAGS *= /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcmtd.lib #for msbuild vs2013
}
capi {
contains(QT_CONFIG, egl)|contains(QT_CONFIG, dynamicgl)|contains(QT_CONFIG, opengles2) {
CONFIG *= enable_egl
!ios {
winrt: DEFINES = CAPI_LINK_EGL #required by capi_egl.*
DEFINES = QTAV_HAVE_EGL_CAPI=1
HEADERS *= capi/egl_api.h
SOURCES *= capi/egl_api.cpp
}
}
}
enable_egl:greaterThan(QT_MAJOR_VERSION,4):qtHaveModule(x11extras): QT *= x11extras
config_gl|config_opengl {
contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles2): CONFIG *= enable_desktopgl
}
#UINT64_C: C99 math features, need -D__STDC_CONSTANT_MACROS in CXXFLAGS
DEFINES = __STDC_CONSTANT_MACROS
android {
CONFIG *= config_opensl
SOURCES *= jmi/jmi.cpp
qtHaveModule(androidextras) { #qt5.2 has QAndroidJniObject
QT *= androidextras #QPlatformNativeInterface get "QtActivity"
SOURCES *= io/AndroidIO.cpp
SOURCES *= codec/video/VideoDecoderMediaCodec.cpp
exists($$[QT_INSTALL_HEADERS]/MediaCodecTextureStandalone.h) {
DEFINES *= MEDIACODEC_TEXTURE
LIBS *= -lqtav-mediacodec
}
}
}
config_x11 {
DEFINES = QTAV_HAVE_X11=1
SOURCES *= filter/X11FilterContext.cpp
LIBS *= -lX11
}
config_swresample {
DEFINES = QTAV_HAVE_SWRESAMPLE=1
SOURCES = AudioResamplerFF.cpp
LIBS = -lswresample
}
config_avresample {
DEFINES = QTAV_HAVE_AVRESAMPLE=1
SOURCES = AudioResamplerLibav.cpp
LIBS = -lavresample
}
config_avdevice { #may depends on avfilter
DEFINES = QTAV_HAVE_AVDEVICE=1
LIBS *= -lavdevice
static_ffmpeg {
win32 {
LIBS *= -lgdi32 -loleaut32 -lshlwapi #shlwapi: desktop >= xp only
} else:linux {
LIBS *= -lXv #-lX11 -lxcb -lxcb-shm -lxcb-xfixes -lxcb-render -lxcb-shape
} else:mac { # static ffmpeg
LIBS = -framework Foundation -framework CoreMedia -framework QuartzCore -framework CoreGraphics -framework CoreVideo
ios {
LIBS = -framework AVFoundation
} else {
# assume avdevice targets to the same version as Qt and always >= 10.6
!isEqual(QMAKE_MACOSX_DEPLOYMENT_TARGET, 10.6): LIBS = -framework AVFoundation
}
}
}
}
config_avfilter {
DEFINES = QTAV_HAVE_AVFILTER=1
LIBS = -lavfilter
mac:!ios:static_ffmpeg: LIBS = -framework AppKit
}
config_ipp {
DEFINES = QTAV_HAVE_IPP=1
ICCROOT = $$(IPPROOT)/../compiler
INCLUDEPATH = $$(IPPROOT)/include
SOURCES = ImageConverterIPP.cpp
message("QMAKE_TARGET.arch" $$QMAKE_TARGET.arch)
*64|contains(QMAKE_TARGET.arch, x86_64)|contains(TARGET_ARCH, x86_64) {
IPPARCH=intel64
} else {
IPPARCH=ia32
}
LIBS *= -L$$(IPPROOT)/lib/$$IPPARCH -lippcc -lippcore -lippi
LIBS *= -L$$(IPPROOT)/../compiler/lib/$$IPPARCH -lsvml -limf
#omp for static link. _t is multi-thread static link
}
mac|ios {
CONFIG *= config_openal
SOURCES = output/audio/AudioOutputAudioToolbox.cpp
LIBS = -framework AudioToolbox
LIBS = -Wl,-unexported_symbols_list,$$PWD/unexport.list
} else:!win32 {
#LIBS = -Wl,--exclude-libs,ALL
}
win32: {
HEADERS = output/audio/xaudio2_compat.h
SOURCES = output/audio/AudioOutputXAudio2.cpp
DEFINES *= QTAV_HAVE_XAUDIO2=1
winrt {
LIBS = -lxaudio2 #only for xbox or >=win8
} else {
LIBS = -lole32 #CoInitializeEx for vs2008, but can not find the symbol at runtime
}
}
config_dsound:!winrt {
SOURCES = output/audio/AudioOutputDSound.cpp
DEFINES *= QTAV_HAVE_DSOUND=1
}
config_portaudio {
SOURCES = output/audio/AudioOutputPortAudio.cpp
DEFINES *= QTAV_HAVE_PORTAUDIO=1
LIBS *= -lportaudio
#win32: LIBS *= -lwinmm #-lksguid #-luuid
}
config_openal {
SOURCES *= output/audio/AudioOutputOpenAL.cpp
HEADERS *= capi/openal_api.h
SOURCES *= capi/openal_api.cpp
DEFINES *= QTAV_HAVE_OPENAL=1
static_openal: DEFINES = AL_LIBTYPE_STATIC # openal-soft AL_API dllimport error. mac's macro is AL_BUILD_LIBRARY
ios: CONFIG *= config_openal_link
!capi|config_openal_link|static_openal {
DEFINES *= CAPI_LINK_OPENAL
win32 {
LIBS = -lOpenAL32 -lwinmm
} else:mac {
LIBS = -framework OpenAL
DEFINES = HEADER_OPENAL_PREFIX
} else:blackberry {
LIBS = -lOpenAL
} else {
LIBS = -lopenal
static_openal:!android: LIBS = -lasound
}
}
}
config_opensl {
SOURCES = output/audio/AudioOutputOpenSL.cpp
DEFINES *= QTAV_HAVE_OPENSL=1
LIBS = -lOpenSLES
}
config_pulseaudio {
SOURCES = output/audio/AudioOutputPulse.cpp
DEFINES *= QTAV_HAVE_PULSEAUDIO=1
LIBS = -lpulse
}
CONFIG = config_cuda
#CONFIG = config_cuda_link
config_cuda {
DEFINES = QTAV_HAVE_CUDA=1
HEADERS = cuda/dllapi/nv_inc.h cuda/helper_cuda.h
SOURCES = codec/video/VideoDecoderCUDA.cpp
#contains(QT_CONFIG, opengl) {
HEADERS = codec/video/SurfaceInteropCUDA.h
SOURCES = codec/video/SurfaceInteropCUDA.cpp
#}
INCLUDEPATH = $$PWD/cuda cuda/dllapi
config_dllapi:config_dllapi_cuda {
DEFINES = QTAV_HAVE_DLLAPI_CUDA=1
INCLUDEPATH = ../depends/dllapi/src
include(../depends/dllapi/src/libdllapi.pri)
SOURCES = cuda/dllapi/cuda.cpp cuda/dllapi/nvcuvid.cpp cuda/dllapi/cuviddec.cpp
} else:config_cuda_link {
DEFINES = CUDA_LINK
INCLUDEPATH = $$(CUDA_PATH)/include
LIBS = -L$$(CUDA_PATH)/lib
contains(TARGET_ARCH, x86): LIBS = -L$$(CUDA_PATH)/lib/Win32
else: LIBS = -L$$(CUDA_PATH)/lib/x64
LIBS = -lnvcuvid -lcuda
}
SOURCES = cuda/cuda_api.cpp
HEADERS = cuda/cuda_api.h
}
config_d3d11va {
CONFIG *= d3dva c 11
DEFINES *= QTAV_HAVE_D3D11VA=1
SOURCES = codec/video/VideoDecoderD3D11.cpp
HEADERS = directx/SurfaceInteropD3D11.h
SOURCES = directx/SurfaceInteropD3D11.cpp
HEADERS = directx/D3D11VP.h
SOURCES = directx/D3D11VP.cpp
enable_egl {
SOURCES = directx/SurfaceInteropD3D11EGL.cpp
}
enable_desktopgl {
SOURCES = directx/SurfaceInteropD3D11GL.cpp
}
winrt: LIBS *= -ld3d11
}
win32:!winrt {
HEADERS = directx/SurfaceInteropD3D9.h
SOURCES = directx/SurfaceInteropD3D9.cpp
enable_egl {
SOURCES = directx/SurfaceInteropD3D9EGL.cpp
}
enable_desktopgl {
SOURCES = directx/SurfaceInteropD3D9GL.cpp
}
}
config_dxva {
CONFIG *= d3dva
DEFINES *= QTAV_HAVE_DXVA=1
SOURCES = codec/video/VideoDecoderDXVA.cpp
LIBS = -lole32
}
d3dva {
HEADERS = codec/video/VideoDecoderD3D.h
SOURCES = codec/video/VideoDecoderD3D.cpp
}
config_vaapi* {
DEFINES *= QTAV_HAVE_VAAPI=1
SOURCES = codec/video/VideoDecoderVAAPI.cpp vaapi/vaapi_helper.cpp
HEADERS = vaapi/vaapi_helper.h
#contains(QT_CONFIG, opengl) {
HEADERS = vaapi/SurfaceInteropVAAPI.h
SOURCES = vaapi/SurfaceInteropVAAPI.cpp
#}
LIBS *= -lva -lX11 #dynamic load va-glx va-x11 using dllapi. -lX11: used by tfp
}
config_libcedarv {
DEFINES *= QTAV_HAVE_CEDARV=1
QMAKE_CXXFLAGS *= -march=armv7-a
# Can not use NEON_SOURCE because it can not work with moc
SOURCES = codec/video/VideoDecoderCedarv.cpp
!config_simd: CONFIG *= simd #addSimdCompiler xxx_ASM
CONFIG = no_clang_integrated_as #see qtbase/src/gui/painting/painting.pri. add -fno-integrated-as from simd.prf
NEON_ASM = codec/video/tiled_yuv.S #from libvdpau-sunxi
LIBS = -lvecore -lcedarv
OTHER_FILES = $$NEON_ASM
}
mac {
HEADERS *= codec/video/SurfaceInteropCV.h
SOURCES *= codec/video/SurfaceInteropCV.cpp \
codec/video/SurfaceInteropIOSurface.mm
ios {
OBJECTIVE_SOURCES *= codec/video/SurfaceInteropCVOpenGLES.mm
} else {
#CONFIG = config_vda
#SOURCES *= codec/video/SurfaceInteropCVOpenGL.cpp
}
LIBS = -framework CoreVideo -framework CoreFoundation
}
config_vda {
DEFINES *= QTAV_HAVE_VDA=1
SOURCES = codec/video/VideoDecoderVDA.cpp
LIBS = -framework VideoDecodeAcceleration
}
config_videotoolbox {
DEFINES *= QTAV_HAVE_VIDEOTOOLBOX=1
SOURCES *= codec/video/VideoDecoderVideoToolbox.cpp
LIBS = -framework CoreMedia -framework VideoToolbox
}
config_gl|config_opengl {
contains(QT_CONFIG, egl) {
DEFINES *= QTAV_HAVE_QT_EGL=1
#if a platform plugin depends on egl (for example, eglfs), egl is defined
}
OTHER_FILES = shaders/planar.f.glsl shaders/rgb.f.glsl
SDK_HEADERS *= \
QtAV/Geometry.h \
QtAV/GeometryRenderer.h \
QtAV/GLSLFilter.h \
QtAV/OpenGLRendererBase.h \
QtAV/OpenGLTypes.h \
QtAV/OpenGLVideo.h \
QtAV/ConvolutionShader.h \
QtAV/VideoShaderObject.h \
QtAV/VideoShader.h
SDK_PRIVATE_HEADERS = \
QtAV/private/OpenGLRendererBase_p.h
HEADERS *= \
opengl/gl_api.h \
opengl/OpenGLHelper.h \
opengl/SubImagesGeometry.h \
opengl/SubImagesRenderer.h \
opengl/ShaderManager.h
SOURCES *= \
filter/GLSLFilter.cpp \
output/video/OpenGLRendererBase.cpp \
opengl/gl_api.cpp \
opengl/OpenGLTypes.cpp \
opengl/Geometry.cpp \
opengl/GeometryRenderer.cpp \
opengl/SubImagesGeometry.cpp \
opengl/SubImagesRenderer.cpp \
opengl/OpenGLVideo.cpp \
opengl/VideoShaderObject.cpp \
opengl/VideoShader.cpp \
opengl/ShaderManager.cpp \
opengl/ConvolutionShader.cpp \
opengl/OpenGLHelper.cpp
}
config_openglwindow {
SDK_HEADERS *= QtAV/OpenGLWindowRenderer.h
SOURCES *= output/video/OpenGLWindowRenderer.cpp
}
config_libass {
#link against libass instead of dynamic load
!capi|winrt|android|ios|config_libass_link {
LIBS = -lass #-lfribidi -lfontconfig -lxml2 -lfreetype -lharfbuzz -lz
DEFINES = CAPI_LINK_ASS
}
DEFINES *= QTAV_HAVE_LIBASS=1
HEADERS *= capi/ass_api.h
SOURCES *= capi/ass_api.cpp
SOURCES *= subtitle/SubtitleProcessorLibASS.cpp
}
# mac is -FQTDIR we need -LQTDIR
LIBS *= -L$$[QT_INSTALL_LIBS] -lavcodec -lavformat -lswscale -lavutil
win32 {
HEADERS *= utils/DirectXHelper.h
SOURCES *= utils/DirectXHelper.cpp
#dynamicgl: __impl__GetDC __impl_ReleaseDC __impl_GetDesktopWindow
!winrt:LIBS = -luser32
}
winrt {
SOURCES *= io/WinRTIO.cpp
LIBS *= -lshcore
}
# compat with old system
# use old libva.so to link against
glibc_compat: *linux*: LIBS = -lrt # do not use clock_gettime in libc, GLIBC_2.17 is not available on old system
static_ffmpeg {
# libs needed by mac static ffmpeg. corefoundation: vda, avdevice. coca: vf_coreimage
mac|ios: LIBS = -liconv -lbz2 -llzma -lz -framework CoreFoundation -framework Security # -framework Cocoa Cocoa is not available on ios10
win32: LIBS *= -lws2_32 -lstrmiids -lvfw32 -luuid
!mac:*g * {
LIBS *= -lz
QMAKE_LFLAGS *= -Wl,-Bsymbolic #link to static lib, see http://ffmpeg.org/platform.html
}
}
SOURCES = \
AVCompat.cpp \
QtAV_Global.cpp \
subtitle/SubImage.cpp \
subtitle/CharsetDetector.cpp \
subtitle/PlainText.cpp \
subtitle/PlayerSubtitle.cpp \
subtitle/Subtitle.cpp \
subtitle/SubtitleProcessor.cpp \
subtitle/SubtitleProcessorFFmpeg.cpp \
utils/GPUMemCopy.cpp \
utils/Logger.cpp \
AudioThread.cpp \
utils/internal.cpp \
AVThread.cpp \
AudioFormat.cpp \
AudioFrame.cpp \
AudioResampler.cpp \
AudioResamplerTemplate.cpp \
codec/audio/AudioDecoder.cpp \
codec/audio/AudioDecoderFFmpeg.cpp \
codec/audio/AudioEncoder.cpp \
codec/audio/AudioEncoderFFmpeg.cpp \
codec/AVDecoder.cpp \
codec/AVEncoder.cpp \
AVMuxer.cpp \
AVDemuxer.cpp \
AVDemuxThread.cpp \
ColorTransform.cpp \
Frame.cpp \
FrameReader.cpp \
filter/Filter.cpp \
filter/FilterContext.cpp \
filter/FilterManager.cpp \
filter/LibAVFilter.cpp \
filter/SubtitleFilter.cpp \
filter/EncodeFilter.cpp \
ImageConverter.cpp \
ImageConverterFF.cpp \
Packet.cpp \
PacketBuffer.cpp \
AVError.cpp \
AVPlayer.cpp \
AVPlayerPrivate.cpp \
AVTranscoder.cpp \
AVClock.cpp \
VideoCapture.cpp \
VideoFormat.cpp \
VideoFrame.cpp \
io/MediaIO.cpp \
io/QIODeviceIO.cpp \
output/audio/AudioOutput.cpp \
output/audio/AudioOutputBackend.cpp \
output/audio/AudioOutputNull.cpp \
output/video/VideoRenderer.cpp \
output/video/VideoOutput.cpp \
output/video/QPainterRenderer.cpp \
output/AVOutput.cpp \
output/OutputSet.cpp \
Statistics.cpp \
codec/video/VideoDecoder.cpp \
codec/video/VideoDecoderFFmpegBase.cpp \
codec/video/VideoDecoderFFmpeg.cpp \
codec/video/VideoDecoderFFmpegHW.cpp \
codec/video/VideoEncoder.cpp \
codec/video/VideoEncoderFFmpeg.cpp \
VideoThread.cpp \
VideoFrameExtractor.cpp
SDK_HEADERS *= \
QtAV/QtAV \
QtAV/QtAV.h \
QtAV/dptr.h \
QtAV/QtAV_Global.h \
QtAV/AudioResampler.h \
QtAV/AudioDecoder.h \
QtAV/AudioEncoder.h \
QtAV/AudioFormat.h \
QtAV/AudioFrame.h \
QtAV/AudioOutput.h \
QtAV/AVDecoder.h \
QtAV/AVEncoder.h \
QtAV/AVDemuxer.h \
QtAV/AVMuxer.h \
QtAV/Filter.h \
QtAV/FilterContext.h \
QtAV/LibAVFilter.h \
QtAV/EncodeFilter.h \
QtAV/Frame.h \
QtAV/FrameReader.h \
QtAV/QPainterRenderer.h \
QtAV/Packet.h \
QtAV/AVError.h \
QtAV/AVPlayer.h \
QtAV/AVTranscoder.h \
QtAV/VideoCapture.h \
QtAV/VideoRenderer.h \
QtAV/VideoOutput.h \
QtAV/MediaIO.h \
QtAV/AVOutput.h \
QtAV/AVClock.h \
QtAV/VideoDecoder.h \
QtAV/VideoEncoder.h \
QtAV/VideoFormat.h \
QtAV/VideoFrame.h \
QtAV/VideoFrameExtractor.h \
QtAV/FactoryDefine.h \
QtAV/Statistics.h \
QtAV/SubImage.h \
QtAV/Subtitle.h \
QtAV/SubtitleFilter.h \
QtAV/SurfaceInterop.h \
QtAV/version.h
SDK_PRIVATE_HEADERS *= \
QtAV/private/factory.h \
QtAV/private/mkid.h \
QtAV/private/prepost.h \
QtAV/private/singleton.h \
QtAV/private/PlayerSubtitle.h \
QtAV/private/SubtitleProcessor.h \
QtAV/private/AVCompat.h \
QtAV/private/AudioOutputBackend.h \
QtAV/private/AudioResampler_p.h \
QtAV/private/AVDecoder_p.h \
QtAV/private/AVEncoder_p.h \
QtAV/private/MediaIO_p.h \
QtAV/private/AVOutput_p.h \
QtAV/private/Filter_p.h \
QtAV/private/Frame_p.h \
QtAV/private/VideoShader_p.h \
QtAV/private/VideoRenderer_p.h \
QtAV/private/QPainterRenderer_p.h
# QtAV/private/* may be used by developers to extend QtAV features without changing QtAV library
# headers not in QtAV/ and it's subdirs are used only by QtAV internally
HEADERS *= \
$$SDK_HEADERS \
$$SDK_PRIVATE_HEADERS \
AVPlayerPrivate.h \
AVDemuxThread.h \
AVThread.h \
AVThread_p.h \
AudioThread.h \
PacketBuffer.h \
VideoThread.h \
ImageConverter.h \
ImageConverter_p.h \
codec/video/VideoDecoderFFmpegBase.h \
codec/video/VideoDecoderFFmpegHW.h \
codec/video/VideoDecoderFFmpegHW_p.h \
filter/FilterManager.h \
subtitle/CharsetDetector.h \
subtitle/PlainText.h \
utils/BlockingQueue.h \
utils/GPUMemCopy.h \
utils/Logger.h \
utils/SharedPtr.h \
utils/ring.h \
utils/internal.h \
output/OutputSet.h \
ColorTransform.h
# from mkspecs/features/qt_module.prf
# OS X and iOS frameworks
mac_framework { # from common.pri
#QMAKE_FRAMEWORK_VERSION = 4.0
CONFIG = lib_bundle sliced_bundle qt_framework
CONFIG -= qt_install_headers #no need to install these as well
!debug_and_release|!build_all|CONFIG(release, debug|release) {
FRAMEWORK_HEADERS.version = Versions
FRAMEWORK_HEADERS.files = $$SDK_HEADERS
FRAMEWORK_HEADERS.path = Headers
# 5.4(beta) workaround for wrong include path
# TODO: why <QtCore/qglobal.h> can be found?
qtAtLeast(5,3): FRAMEWORK_HEADERS.path = Headers/$$MODULE_INCNAME
FRAMEWORK_PRIVATE_HEADERS.version = Versions
FRAMEWORK_PRIVATE_HEADERS.files = $$SDK_PRIVATE_HEADERS
FRAMEWORK_PRIVATE_HEADERS.path = Headers/$$VERSION/$$MODULE_INCNAME/private
QMAKE_BUNDLE_DATA = FRAMEWORK_HEADERS FRAMEWORK_PRIVATE_HEADERS
}
}
mac {
CONFIG = explicitlib
macx-g {
QMAKE_CFLAGS = -fconstant-cfstrings
QMAKE_CXXFLAGS = -fconstant-cfstrings
}
}
unix:!mac:!cross_compile {
icon.files = $$PWD/$${TARGET}.svg
icon.path = $$[QT_INSTALL_PREFIX]/share/icons/hicolor/scalable/apps
INSTALLS = icon
#debian
DEB_INSTALL_LIST = .$$[QT_INSTALL_LIBS]/libQt*AV.so.*
libqtav.target = libqtav.install
libqtav.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >$$PROJECTROOT/debian/$${libqtav.target}
QMAKE_EXTRA_TARGETS = libqtav
target.depends *= $${libqtav.target}
DEB_INSTALL_LIST = $$join(SDK_HEADERS, \\n.$$[QT_INSTALL_HEADERS]/, .$$[QT_INSTALL_HEADERS]/)
DEB_INSTALL_LIST = .$$[QT_INSTALL_LIBS]/libQt*AV.prl .$$[QT_INSTALL_LIBS]/libQt*AV.so
MKSPECS_DIR=$$[QT_HOST_DATA]/mkspecs # we only build deb for qt5, so QT_HOST_DATA is fine. qt4 can use $$[QMAKE_MKSPECS]
DEB_INSTALL_LIST = .$${MKSPECS_DIR}/features/av.prf .$${MKSPECS_DIR}/modules/qt_lib_av.pri
qtav_dev.target = qtav-dev.install
qtav_dev.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >$$PROJECTROOT/debian/$${qtav_dev.target}
QMAKE_EXTRA_TARGETS = qtav_dev
target.depends *= $${qtav_dev.target}
DEB_INSTALL_LIST = $$join(SDK_PRIVATE_HEADERS, \\n.$$[QT_INSTALL_HEADERS]/QtAV/*/, .$$[QT_INSTALL_HEADERS]/QtAV/*/)
DEB_INSTALL_LIST = .$${MKSPECS_DIR}/modules/qt_lib_av_private.pri
qtav_private_dev.target = qtav-private-dev.install
qtav_private_dev.commands = echo \"$$join(DEB_INSTALL_LIST, \\n)\" >$$PROJECTROOT/debian/$${qtav_private_dev.target}
QMAKE_EXTRA_TARGETS = qtav_private_dev
target.depends *= $${qtav_private_dev.target}
greaterThan(QT_MAJOR_VERSION, 4) {
qtav_dev_links.target = qtav-dev.links
qtav_dev_links.commands = echo \"$$[QT_INSTALL_LIBS]/libQtAV.so $$[QT_INSTALL_LIBS]/libQt$${QT_MAJOR_VERSION}AV.so\" >$$PROJECTROOT/debian/$${qtav_dev_links.target}
QMAKE_EXTRA_TARGETS *= qtav_dev_links
target.depends *= $${qtav_dev_links.target}
} #Qt>=5
} #debian
MODULE_INCNAME = QtAV
MODULE_VERSION = $$VERSION
#use Qt version. limited by qmake
# windows: Qt5AV.dll, not Qt1AV.dll
!mac_framework: MODULE_VERSION = $${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
!contains(QMAKE_HOST.os, Windows):include($$PROJECTROOT/deploy.pri)