| 1 |
if(CORE_SYSTEM_NAME STREQUAL windows OR CORE_SYSTEM_NAME STREQUAL windowsstore) |
| 2 |
list(APPEND SOURCES DXVAHD.cpp) |
| 3 |
list(APPEND SOURCES DXVAEnumeratorHD.cpp) |
| 4 |
list(APPEND HEADERS DXVAHD.h) |
| 5 |
list(APPEND HEADERS DXVAEnumeratorHD.h) |
| 6 |
endif() |
| 7 |
|
| 8 |
if(VAAPI_FOUND) |
| 9 |
if(TARGET OpenGL::GL) |
| 10 |
list(APPEND SOURCES RendererVAAPIGL.cpp) |
| 11 |
list(APPEND HEADERS RendererVAAPIGL.h) |
| 12 |
endif() |
| 13 |
if(TARGET OpenGL::GLES) |
| 14 |
list(APPEND SOURCES RendererVAAPIGLES.cpp) |
| 15 |
list(APPEND HEADERS RendererVAAPIGLES.h) |
| 16 |
endif() |
| 17 |
if(TARGET EGL::EGL) |
| 18 |
list(APPEND SOURCES VaapiEGL.cpp) |
| 19 |
list(APPEND HEADERS VaapiEGL.h) |
| 20 |
endif() |
| 21 |
endif() |
| 22 |
|
| 23 |
if(TARGET VDPAU::VDPAU) |
| 24 |
list(APPEND SOURCES RendererVDPAU.cpp |
| 25 |
VdpauGL.cpp) |
| 26 |
list(APPEND HEADERS RendererVDPAU.h |
| 27 |
VdpauGL.h) |
| 28 |
endif() |
| 29 |
|
| 30 |
if(CORE_SYSTEM_NAME STREQUAL osx) |
| 31 |
if(TARGET OpenGL::GL) |
| 32 |
list(APPEND SOURCES RendererVTBGL.cpp) |
| 33 |
list(APPEND HEADERS RendererVTBGL.h) |
| 34 |
endif() |
| 35 |
endif() |
| 36 |
|
| 37 |
if(CORE_SYSTEM_NAME STREQUAL darwin_embedded) |
| 38 |
if(TARGET OpenGL::GLES) |
| 39 |
list(APPEND SOURCES RendererVTBGLES.cpp) |
| 40 |
list(APPEND HEADERS RendererVTBGLES.h) |
| 41 |
endif() |
| 42 |
endif() |
| 43 |
|
| 44 |
if(CORE_SYSTEM_NAME STREQUAL android) |
| 45 |
list(APPEND SOURCES RendererMediaCodec.cpp |
| 46 |
RendererMediaCodecSurface.cpp) |
| 47 |
list(APPEND HEADERS RendererMediaCodec.h |
| 48 |
RendererMediaCodecSurface.h) |
| 49 |
endif() |
| 50 |
|
| 51 |
if("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC) |
| 52 |
if("gbm" IN_LIST CORE_PLATFORM_NAME_LC) |
| 53 |
list(APPEND SOURCES RendererDRMPRIME.cpp |
| 54 |
VideoLayerBridgeDRMPRIME.cpp) |
| 55 |
list(APPEND HEADERS RendererDRMPRIME.h |
| 56 |
VideoLayerBridgeDRMPRIME.h) |
| 57 |
endif() |
| 58 |
|
| 59 |
if(TARGET OpenGL::GLES) |
| 60 |
list(APPEND SOURCES RendererDRMPRIMEGLES.cpp |
| 61 |
DRMPRIMEEGL.cpp) |
| 62 |
list(APPEND HEADERS RendererDRMPRIMEGLES.h |
| 63 |
DRMPRIMEEGL.h) |
| 64 |
endif() |
| 65 |
endif() |
| 66 |
|
| 67 |
if("webos" IN_LIST CORE_PLATFORM_NAME_LC) |
| 68 |
list(APPEND SOURCES RendererStarfish.cpp) |
| 69 |
list(APPEND HEADERS RendererStarfish.h) |
| 70 |
endif() |
| 71 |
|
| 72 |
# we might want to build on linux systems |
| 73 |
# with ENABLE_VDPAU=OFF and ENABLE_VAAPI=OFF |
| 74 |
if(SOURCES) |
| 75 |
core_add_library(videorenderers_hwdec) |
| 76 |
endif() |