aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorWolfgang Haupt <haupt.wolfgang@gmail.com>2018-04-17 23:50:49 -0700
committerLukas Rusak <lorusak@gmail.com>2018-04-18 09:43:05 -0700
commita1bb80111b3a43e8dac75a5035a41b0b4622e1eb (patch)
treee38ce83fa4541da4f21f1f4727cc8d79988ea052 /cmake
parent479732f10334c082a1253f15814435c6a8ca9534 (diff)
handle limit color setting per platform
Remove the limited color setting from the generic settings.xml and add it to the platforms that support limited range. Create missing platform xml's for x11 and wayland.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/platform/linux/wayland.cmake1
-rw-r--r--cmake/platform/linux/x11.cmake1
2 files changed, 2 insertions, 0 deletions
diff --git a/cmake/platform/linux/wayland.cmake b/cmake/platform/linux/wayland.cmake
index f42dbf5e93..7ecc6a34df 100644
--- a/cmake/platform/linux/wayland.cmake
+++ b/cmake/platform/linux/wayland.cmake
@@ -15,5 +15,6 @@ endif()
set(PLATFORM_GLOBAL_TARGET_DEPS generate-wayland-extra-protocols)
set(WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}")
+list(APPEND PLATFORM_DEFINES -DPLATFORM_SETTINGS_FILE=wayland.xml)
# for wayland-extra-protocols.hpp
include_directories("${WAYLAND_EXTRA_PROTOCOL_GENERATED_DIR}")
diff --git a/cmake/platform/linux/x11.cmake b/cmake/platform/linux/x11.cmake
index 09cebde3db..72d9640766 100644
--- a/cmake/platform/linux/x11.cmake
+++ b/cmake/platform/linux/x11.cmake
@@ -1,3 +1,4 @@
set(PLATFORM_REQUIRED_DEPS OpenGl EGL X XRandR LibDRM)
set(PLATFORM_OPTIONAL_DEPS VAAPI VDPAU GLX)
set(APP_RENDER_SYSTEM gl)
+list(APPEND PLATFORM_DEFINES -DPLATFORM_SETTINGS_FILE=x11.xml) \ No newline at end of file