aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt7
-rw-r--r--cmake/modules/FindVAAPI.cmake4
-rw-r--r--cmake/platform/freebsd/x11.cmake4
-rw-r--r--cmake/platform/linux/gbm.cmake4
-rw-r--r--cmake/platform/linux/wayland.cmake4
-rw-r--r--cmake/platform/linux/x11.cmake4
-rw-r--r--cmake/scripts/common/Platform.cmake34
-rw-r--r--cmake/scripts/linux/ExtraTargets.cmake2
-rw-r--r--xbmc/cores/AudioEngine/CMakeLists.txt6
-rw-r--r--xbmc/cores/RetroPlayer/buffers/CMakeLists.txt2
-rw-r--r--xbmc/cores/RetroPlayer/rendering/VideoRenderers/CMakeLists.txt2
-rw-r--r--xbmc/cores/VideoPlayer/Buffers/CMakeLists.txt2
-rw-r--r--xbmc/cores/VideoPlayer/DVDCodecs/Video/CMakeLists.txt2
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/CMakeLists.txt12
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/CMakeLists.txt4
-rw-r--r--xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt12
-rw-r--r--xbmc/platform/linux/input/CMakeLists.txt2
-rw-r--r--xbmc/utils/CMakeLists.txt6
18 files changed, 65 insertions, 48 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 01c500d510..348bef4048 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -309,9 +309,12 @@ set_target_properties(lib${APP_NAME_LC} PROPERTIES PREFIX "")
set(OTHER_FILES cmake/README.md)
# Subdirs
+foreach(CORE_PLATFORM_LC ${CORE_PLATFORM_NAME_LC})
+ core_add_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/common/${CORE_PLATFORM_LC}/*.txt
+ ${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_LC}/*.txt)
+endforeach()
+
core_add_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/common/*.txt
- ${CMAKE_SOURCE_DIR}/cmake/treedata/common/${CORE_PLATFORM_NAME_LC}/*.txt
- ${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_NAME_LC}/*.txt
${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/*.txt)
core_add_optional_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/optional/common/*.txt
${CMAKE_SOURCE_DIR}/cmake/treedata/optional/${CORE_SYSTEM_NAME}/*.txt)
diff --git a/cmake/modules/FindVAAPI.cmake b/cmake/modules/FindVAAPI.cmake
index 2111e4f13b..f0a5d0599f 100644
--- a/cmake/modules/FindVAAPI.cmake
+++ b/cmake/modules/FindVAAPI.cmake
@@ -24,14 +24,14 @@ find_path(VAAPI_libva-drm_INCLUDE_DIR va/va_drm.h
PATHS ${PC_VAAPI_libva-drm_INCLUDEDIR})
find_library(VAAPI_libva-drm_LIBRARY NAMES va-drm
PATHS ${PC_VAAPI_libva-drm_LIBDIR})
-if(CORE_PLATFORM_NAME_LC STREQUAL "wayland")
+if("wayland" IN_LIST CORE_PLATFORM_NAME_LC)
find_path(VAAPI_libva-wayland_INCLUDE_DIR va/va_wayland.h
PATHS ${PC_VAAPI_libva-wayland_INCLUDEDIR})
find_library(VAAPI_libva-wayland_LIBRARY NAMES va-wayland
PATHS ${PC_VAAPI_libva-wayland_LIBDIR})
list(APPEND REQUIRED_VARS "VAAPI_libva-wayland_INCLUDE_DIR" "VAAPI_libva-wayland_LIBRARY")
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL "x11")
+if("x11" IN_LIST CORE_PLATFORM_NAME_LC)
find_path(VAAPI_libva-x11_INCLUDE_DIR va/va_x11.h
PATHS ${PC_VAAPI_libva-x11_INCLUDEDIR})
find_library(VAAPI_libva-x11_LIBRARY NAMES va-x11
diff --git a/cmake/platform/freebsd/x11.cmake b/cmake/platform/freebsd/x11.cmake
index 09cebde3db..f4e5b6deb0 100644
--- a/cmake/platform/freebsd/x11.cmake
+++ b/cmake/platform/freebsd/x11.cmake
@@ -1,3 +1,3 @@
-set(PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM)
-set(PLATFORM_OPTIONAL_DEPS VAAPI VDPAU GLX)
+list(APPEND PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI VDPAU GLX)
set(APP_RENDER_SYSTEM gl)
diff --git a/cmake/platform/linux/gbm.cmake b/cmake/platform/linux/gbm.cmake
index 6d6192d1ca..dfbe2525ee 100644
--- a/cmake/platform/linux/gbm.cmake
+++ b/cmake/platform/linux/gbm.cmake
@@ -1,5 +1,5 @@
-set(PLATFORM_REQUIRED_DEPS EGL GBM LibDRM LibInput Xkbcommon)
-set(PLATFORM_OPTIONAL_DEPS VAAPI)
+list(APPEND PLATFORM_REQUIRED_DEPS EGL GBM LibDRM LibInput Xkbcommon)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI)
set(GBM_RENDER_SYSTEM "" CACHE STRING "Render system to use with GBM: \"gl\" or \"gles\"")
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake
index 9e16416f2b..66dd736299 100644
--- a/cmake/platform/linux/wayland.cmake
+++ b/cmake/platform/linux/wayland.cmake
@@ -1,5 +1,5 @@
-set(PLATFORM_REQUIRED_DEPS WaylandProtocols>=1.7 Waylandpp>=0.2.2 LibDRM Xkbcommon>=0.4.1)
-set(PLATFORM_OPTIONAL_DEPS VAAPI)
+list(APPEND PLATFORM_REQUIRED_DEPS WaylandProtocols>=1.7 Waylandpp>=0.2.2 LibDRM Xkbcommon>=0.4.1)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI)
set(WAYLAND_RENDER_SYSTEM "" CACHE STRING "Render system to use with Wayland: \"gl\" or \"gles\"")
diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake
index 4e19f8b3c6..1378bbd5b4 100644
--- a/cmake/platform/linux/x11.cmake
+++ b/cmake/platform/linux/x11.cmake
@@ -1,5 +1,5 @@
-set(PLATFORM_REQUIRED_DEPS EGL X XRandR LibDRM)
-set(PLATFORM_OPTIONAL_DEPS VAAPI)
+list(APPEND PLATFORM_REQUIRED_DEPS EGL X XRandR LibDRM)
+list(APPEND PLATFORM_OPTIONAL_DEPS VAAPI)
set(X11_RENDER_SYSTEM "" CACHE STRING "Render system to use with X11: \"gl\" or \"gles\"")
diff --git a/cmake/scripts/common/Platform.cmake b/cmake/scripts/common/Platform.cmake
index 5ac233a54d..d3e0892149 100644
--- a/cmake/scripts/common/Platform.cmake
+++ b/cmake/scripts/common/Platform.cmake
@@ -18,20 +18,34 @@ set(APP_BINARY_SUFFIX ".bin")
# use the normalized to lower case CORE_PLATFORM_NAME_LC (see below) instead
#
if(NOT CORE_PLATFORM_NAME)
- set(CORE_PLATFORM_NAME ${_DEFAULT_PLATFORM} CACHE STRING "Platform port to build")
+ set(CORE_PLATFORM_NAME ${_DEFAULT_PLATFORM})
endif()
+set(CORE_PLATFORM_NAME ${CORE_PLATFORM_NAME} CACHE STRING "Platform port to build" FORCE)
unset(_DEFAULT_PLATFORM)
-string(TOLOWER ${CORE_PLATFORM_NAME} CORE_PLATFORM_NAME_LC)
-list(APPEND final_message "Platform: ${CORE_PLATFORM_NAME}")
-if(EXISTS ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_NAME_LC}.cmake)
- include(${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_NAME_LC}.cmake)
+string(REPLACE " " ";" CORE_PLATFORM_NAME "${CORE_PLATFORM_NAME}")
+foreach(platform IN LISTS CORE_PLATFORM_NAME)
+ string(TOLOWER ${platform} platform)
+ list(APPEND CORE_PLATFORM_NAME_LC ${platform})
+endforeach()
+
+string(REPLACE ";" " " CORE_PLATFORM_STRING "${CORE_PLATFORM_NAME_LC}")
+list(APPEND final_message "Platforms: ${CORE_PLATFORM_STRING}")
+
+list(LENGTH CORE_PLATFORM_NAME_LC PLATFORM_COUNT)
+if(PLATFORM_COUNT EQUAL 1)
if(ENABLE_APP_AUTONAME)
set(APP_BINARY_SUFFIX "-${CORE_PLATFORM_NAME_LC}")
endif()
-else()
- file(GLOB _platformnames RELATIVE ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/
- ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/*.cmake)
- string(REPLACE ".cmake" " " _platformnames ${_platformnames})
- message(FATAL_ERROR "invalid CORE_PLATFORM_NAME: ${CORE_PLATFORM_NAME_LC}\nValid platforms: ${_platformnames}")
endif()
+
+foreach(CORE_PLATFORM_LC IN LISTS CORE_PLATFORM_NAME_LC)
+ if(EXISTS ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_LC}.cmake)
+ include(${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_LC}.cmake)
+ else()
+ file(GLOB _platformnames RELATIVE ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/
+ ${CMAKE_SOURCE_DIR}/cmake/platform/${CORE_SYSTEM_NAME}/*.cmake)
+ string(REPLACE ".cmake" " " _platformnames ${_platformnames})
+ message(FATAL_ERROR "invalid CORE_PLATFORM_NAME: ${CORE_PLATFORM_NAME_LC}\nValid platforms: ${_platformnames}")
+ endif()
+endforeach()
diff --git a/cmake/scripts/linux/ExtraTargets.cmake b/cmake/scripts/linux/ExtraTargets.cmake
index 37d196af1a..61c76a8207 100644
--- a/cmake/scripts/linux/ExtraTargets.cmake
+++ b/cmake/scripts/linux/ExtraTargets.cmake
@@ -14,7 +14,7 @@ if(ENABLE_EVENTCLIENTS AND BLUETOOTH_FOUND)
endif()
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL "wayland")
+if("wayland" IN_LIST CORE_PLATFORM_NAME_LC)
# This cannot go into wayland.cmake since it requires the Wayland dependencies
# to already be resolved
set(PROTOCOL_XMLS "${WAYLANDPP_PROTOCOLS_DIR}/presentation-time.xml"
diff --git a/xbmc/cores/AudioEngine/CMakeLists.txt b/xbmc/cores/AudioEngine/CMakeLists.txt
index eb34be83a3..e6be635ea8 100644
--- a/xbmc/cores/AudioEngine/CMakeLists.txt
+++ b/xbmc/cores/AudioEngine/CMakeLists.txt
@@ -52,7 +52,7 @@ if(ALSA_FOUND)
list(APPEND HEADERS Sinks/AESinkALSA.h
Utils/AEELDParser.h)
- if(NOT CORE_PLATFORM_NAME_LC STREQUAL x11)
+ if(NOT "x11" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES Sinks/alsa/ALSAHControlMonitor.cpp)
list(APPEND HEADERS Sinks/alsa/ALSAHControlMonitor.h)
endif()
@@ -114,10 +114,10 @@ endif()
if(CORE_SYSTEM_NAME STREQUAL darwin_embedded)
list(APPEND SOURCES Sinks/darwin/CoreAudioHelpers.cpp)
list(APPEND HEADERS Sinks/darwin/CoreAudioHelpers.h)
- if(CORE_PLATFORM_NAME_LC STREQUAL ios)
+ if("ios" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES Sinks/AESinkDARWINIOS.mm)
list(APPEND HEADERS Sinks/AESinkDARWINIOS.h)
- elseif(CORE_PLATFORM_NAME_LC STREQUAL tvos)
+ elseif("tvos" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES Sinks/AESinkDARWINTVOS.mm)
list(APPEND HEADERS Sinks/AESinkDARWINTVOS.h)
endif()
diff --git a/xbmc/cores/RetroPlayer/buffers/CMakeLists.txt b/xbmc/cores/RetroPlayer/buffers/CMakeLists.txt
index bb559e4bc8..1dc954afd9 100644
--- a/xbmc/cores/RetroPlayer/buffers/CMakeLists.txt
+++ b/xbmc/cores/RetroPlayer/buffers/CMakeLists.txt
@@ -24,7 +24,7 @@ if(OPENGL_FOUND)
RenderBufferPoolOpenGL.cpp)
endif()
-if((CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland) AND EGL_FOUND)
+if(("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC) AND EGL_FOUND)
list(APPEND SOURCES RenderBufferDMA.cpp
RenderBufferPoolDMA.cpp)
list(APPEND HEADERS RenderBufferDMA.h
diff --git a/xbmc/cores/RetroPlayer/rendering/VideoRenderers/CMakeLists.txt b/xbmc/cores/RetroPlayer/rendering/VideoRenderers/CMakeLists.txt
index 30c20b59ce..6f9d9086cc 100644
--- a/xbmc/cores/RetroPlayer/rendering/VideoRenderers/CMakeLists.txt
+++ b/xbmc/cores/RetroPlayer/rendering/VideoRenderers/CMakeLists.txt
@@ -18,7 +18,7 @@ if(OPENGL_FOUND)
list(APPEND HEADERS RPRendererOpenGL.h)
endif()
-if((CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland) AND EGL_FOUND)
+if(("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC) AND EGL_FOUND)
list(APPEND SOURCES RPRendererDMA.cpp)
list(APPEND HEADERS RPRendererDMA.h)
endif()
diff --git a/xbmc/cores/VideoPlayer/Buffers/CMakeLists.txt b/xbmc/cores/VideoPlayer/Buffers/CMakeLists.txt
index a7db7f4de2..a876912363 100644
--- a/xbmc/cores/VideoPlayer/Buffers/CMakeLists.txt
+++ b/xbmc/cores/VideoPlayer/Buffers/CMakeLists.txt
@@ -1,7 +1,7 @@
set(SOURCES VideoBuffer.cpp)
set(HEADERS VideoBuffer.h)
-if(CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland)
+if("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES VideoBufferDMA.cpp
VideoBufferDRMPRIME.cpp
VideoBufferPoolDMA.cpp)
diff --git a/xbmc/cores/VideoPlayer/DVDCodecs/Video/CMakeLists.txt b/xbmc/cores/VideoPlayer/DVDCodecs/Video/CMakeLists.txt
index c91c19ff55..517acc3cd4 100644
--- a/xbmc/cores/VideoPlayer/DVDCodecs/Video/CMakeLists.txt
+++ b/xbmc/cores/VideoPlayer/DVDCodecs/Video/CMakeLists.txt
@@ -36,7 +36,7 @@ if(CORE_SYSTEM_NAME STREQUAL android)
list(APPEND HEADERS DVDVideoCodecAndroidMediaCodec.h)
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland)
+if("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES DVDVideoCodecDRMPRIME.cpp)
list(APPEND HEADERS DVDVideoCodecDRMPRIME.h)
endif()
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/CMakeLists.txt b/xbmc/cores/VideoPlayer/VideoRenderers/CMakeLists.txt
index 12b67ebd48..3bc0cc7f65 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/CMakeLists.txt
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/CMakeLists.txt
@@ -40,12 +40,12 @@ if(OPENGL_FOUND)
FrameBufferObject.h)
endif()
-if(OPENGLES_FOUND AND (CORE_PLATFORM_NAME_LC STREQUAL android OR
- CORE_PLATFORM_NAME_LC STREQUAL ios OR
- CORE_PLATFORM_NAME_LC STREQUAL tvos OR
- CORE_PLATFORM_NAME_LC STREQUAL gbm OR
- CORE_PLATFORM_NAME_LC STREQUAL x11 OR
- CORE_PLATFORM_NAME_LC STREQUAL wayland))
+if(OPENGLES_FOUND AND ("android" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "ios" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "tvos" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "gbm" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "x11" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "wayland" IN_LIST CORE_PLATFORM_NAME_LC))
list(APPEND SOURCES LinuxRendererGLES.cpp
FrameBufferObject.cpp)
list(APPEND HEADERS LinuxRendererGLES.h
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/CMakeLists.txt b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/CMakeLists.txt
index 5f1a530ded..cdcd734eb0 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/CMakeLists.txt
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/HwDecRender/CMakeLists.txt
@@ -41,8 +41,8 @@ if(CORE_SYSTEM_NAME STREQUAL android)
RendererMediaCodecSurface.h)
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland)
- if(CORE_PLATFORM_NAME_LC STREQUAL gbm)
+if("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC)
+ if("gbm" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES RendererDRMPRIME.cpp
VideoLayerBridgeDRMPRIME.cpp)
list(APPEND HEADERS RendererDRMPRIME.h
diff --git a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt
index a5292d87d4..adc3d144a2 100644
--- a/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt
+++ b/xbmc/cores/VideoPlayer/VideoRenderers/VideoShaders/CMakeLists.txt
@@ -22,12 +22,12 @@ if(OPENGL_FOUND)
YUV2RGBShaderGL.h)
endif()
-if(OPENGLES_FOUND AND (CORE_PLATFORM_NAME_LC STREQUAL android OR
- CORE_PLATFORM_NAME_LC STREQUAL ios OR
- CORE_PLATFORM_NAME_LC STREQUAL tvos OR
- CORE_PLATFORM_NAME_LC STREQUAL gbm OR
- CORE_PLATFORM_NAME_LC STREQUAL x11 OR
- CORE_PLATFORM_NAME_LC STREQUAL wayland))
+if(OPENGLES_FOUND AND ("android" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "ios" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "tvos" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "gbm" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "x11" IN_LIST CORE_PLATFORM_NAME_LC OR
+ "wayland" IN_LIST CORE_PLATFORM_NAME_LC))
list(APPEND SOURCES ConversionMatrix.cpp
VideoFilterShaderGLES.cpp
YUV2RGBShaderGLES.cpp)
diff --git a/xbmc/platform/linux/input/CMakeLists.txt b/xbmc/platform/linux/input/CMakeLists.txt
index 8e69fda1aa..ebb2ccd585 100644
--- a/xbmc/platform/linux/input/CMakeLists.txt
+++ b/xbmc/platform/linux/input/CMakeLists.txt
@@ -6,7 +6,7 @@ if(LIRCCLIENT_FOUND)
list(APPEND HEADERS LIRC.h)
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL gbm)
+if("gbm" IN_LIST CORE_PLATFORM_NAME_LC)
if(LIBINPUT_FOUND)
list(APPEND SOURCES LibInputHandler.cpp
LibInputKeyboard.cpp
diff --git a/xbmc/utils/CMakeLists.txt b/xbmc/utils/CMakeLists.txt
index f6e55d0b96..4e46c05b2f 100644
--- a/xbmc/utils/CMakeLists.txt
+++ b/xbmc/utils/CMakeLists.txt
@@ -189,13 +189,13 @@ if(OPENGL_FOUND OR OPENGLES_FOUND)
list(APPEND HEADERS GLUtils.h)
endif()
-if(CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland)
+if("gbm" IN_LIST CORE_PLATFORM_NAME_LC OR "wayland" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES BufferObject.cpp
BufferObjectFactory.cpp)
list(APPEND HEADERS BufferObject.h
BufferObjectFactory.h)
- if(CORE_PLATFORM_NAME_LC STREQUAL gbm)
+ if("gbm" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES DumbBufferObject.cpp)
list(APPEND SOURCES DumbBufferObject.h)
endif()
@@ -210,7 +210,7 @@ if(CORE_PLATFORM_NAME_LC STREQUAL gbm OR CORE_PLATFORM_NAME_LC STREQUAL wayland)
list(APPEND HEADERS DMAHeapBufferObject.h)
endif()
- if(GBM_HAS_BO_MAP AND CORE_PLATFORM_NAME_LC STREQUAL gbm)
+ if(GBM_HAS_BO_MAP AND "gbm" IN_LIST CORE_PLATFORM_NAME_LC)
list(APPEND SOURCES GBMBufferObject.cpp)
list(APPEND HEADERS GBMBufferObject.h)
endif()