summaryrefslogtreecommitdiffstats
path: root/xbmc/rendering/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xbmc/rendering/CMakeLists.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/xbmc/rendering/CMakeLists.txt b/xbmc/rendering/CMakeLists.txt
new file mode 100644
index 0000000..c212a96
--- /dev/null
+++ b/xbmc/rendering/CMakeLists.txt
@@ -0,0 +1,27 @@
+set(SOURCES RenderSystem.cpp)
+
+set(HEADERS RenderSystem.h
+ RenderSystemTypes.h)
+
+if(OPENGL_FOUND OR OPENGLES_FOUND)
+ list(APPEND SOURCES MatrixGL.cpp)
+ list(APPEND HEADERS MatrixGL.h)
+
+ if(ARCH MATCHES arm AND ENABLE_NEON)
+ list(APPEND SOURCES MatrixGL.neon.cpp)
+ if(NOT DEFINED NEON_FLAGS)
+ set_source_files_properties(MatrixGL.neon.cpp PROPERTIES COMPILE_OPTIONS -mfpu=neon)
+ endif()
+ endif()
+endif()
+
+core_add_library(rendering)
+if(NOT CORE_SYSTEM_NAME STREQUAL windows AND NOT CORE_SYSTEM_NAME STREQUAL windowsstore)
+ if(HAVE_SSE)
+ target_compile_options(${CORE_LIBRARY} PRIVATE -msse)
+ endif()
+ if(HAVE_SSE2)
+ target_compile_options(${CORE_LIBRARY} PRIVATE -msse2)
+ endif()
+endif()
+