diff options
author | Lukas Rusak <lorusak@gmail.com> | 2017-09-12 08:27:08 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2017-09-12 11:27:59 -0700 |
commit | dc4cfa186cb4c687155a560d52693d702ef614b6 (patch) | |
tree | 89a47ba92a4d362465a1aeb3a78f4bf64fb7c94c | |
parent | 93e96e4e7bb56b07d628178dcaf5e8f52ed21fb1 (diff) |
[cmake] only build videoshaders for specific renderers
-rw-r--r-- | xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt index 9d52775b67..d39a5594b7 100644 --- a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt +++ b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt @@ -11,21 +11,27 @@ if(CORE_SYSTEM_NAME STREQUAL windows) YUV2RGBShader.h) endif() -if(OPENGL_FOUND OR OPENGLES_FOUND) - list(APPEND SOURCES GLSLOutput.cpp +if(OPENGL_FOUND) + list(APPEND SOURCES VideoFilterShaderGL.cpp + GLSLOutput.cpp YUV2RGBShader.cpp) - list(APPEND HEADERS GLSLOutput.h + list(APPEND HEADERS VideoFilterShaderGL.h + GLSLOutput.h YUV2RGBShader.h) endif() -if(OPENGL_FOUND) - list(APPEND SOURCES VideoFilterShaderGL.cpp) - list(APPEND HEADERS VideoFilterShaderGL.h) -endif() - -if(OPENGLES_FOUND) - list(APPEND SOURCES VideoFilterShaderGLES.cpp) - list(APPEND HEADERS VideoFilterShaderGLES.h) +if(OPENGLES_FOUND AND (CORE_PLATFORM_NAME_LC STREQUAL android OR + CORE_PLATFORM_NAME_LC STREQUAL ios OR + CORE_PLATFORM_NAME_LC STREQUAL gbm OR + CORE_PLATFORM_NAME_LC STREQUAL imx OR + CORE_PLATFORM_NAME_LC STREQUAL mir OR + CORE_PLATFORM_NAME_LC STREQUAL wayland)) + list(APPEND SOURCES VideoFilterShaderGLES.cpp + GLSLOutput.cpp + YUV2RGBShader.cpp) + list(APPEND HEADERS VideoFilterShaderGLES.h + GLSLOutput.h + YUV2RGBShader.h) endif() core_add_library(videoshaders) |