summaryrefslogtreecommitdiffstats
path: root/project/cmake/CMakeLists.txt
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2016-12-14 02:24:46 +0100
committermanuel <manuel@mausz.at>2016-12-14 02:24:46 +0100
commita662ba767a6444b76b0394eb60380eee3e839db7 (patch)
treea13d904b75e8d899e2b11df3db5bd2a8a47b0acb /project/cmake/CMakeLists.txt
parent2818eb9609d118212211cd657134974f10428b31 (diff)
downloadkodi-pvr-build-a662ba767a6444b76b0394eb60380eee3e839db7.tar.gz
kodi-pvr-build-a662ba767a6444b76b0394eb60380eee3e839db7.tar.bz2
kodi-pvr-build-a662ba767a6444b76b0394eb60380eee3e839db7.zip
Sync with Krypton branch
Diffstat (limited to 'project/cmake/CMakeLists.txt')
-rw-r--r--project/cmake/CMakeLists.txt26
1 files changed, 6 insertions, 20 deletions
diff --git a/project/cmake/CMakeLists.txt b/project/cmake/CMakeLists.txt
index c70b18d..46df299 100644
--- a/project/cmake/CMakeLists.txt
+++ b/project/cmake/CMakeLists.txt
@@ -52,7 +52,6 @@ if(UNIX)
52 option(ENABLE_INTERNAL_CROSSGUID "Enable internal crossguid?" ON) 52 option(ENABLE_INTERNAL_CROSSGUID "Enable internal crossguid?" ON)
53 option(ENABLE_OPENSSL "Enable OpenSSL?" ON) 53 option(ENABLE_OPENSSL "Enable OpenSSL?" ON)
54 option(ENABLE_SDL "Enable SDL?" OFF) 54 option(ENABLE_SDL "Enable SDL?" OFF)
55 option(ENABLE_MIR "Enable MIR?" OFF)
56 if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd) 55 if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd)
57 option(ENABLE_X11 "Enable X11 support?" ON) 56 option(ENABLE_X11 "Enable X11 support?" ON)
58 option(ENABLE_AML "Enable AML?" OFF) 57 option(ENABLE_AML "Enable AML?" OFF)
@@ -197,24 +196,14 @@ endif()
197if(NOT WIN32) 196if(NOT WIN32)
198 core_optional_dep(OpenGl) 197 core_optional_dep(OpenGl)
199 if(OPENGL_FOUND) 198 if(OPENGL_FOUND)
200 if(ENABLE_MIR) 199 core_optional_dep(X ENABLE_X11)
201 core_require_dep(Mir ENABLE_MIR) 200 core_optional_dep(LibDRM ENABLE_X11)
202 core_optional_dep(LibDRM ENABLE_MIR) 201 core_optional_dep(XRandR ENABLE_X11)
203 else()
204 core_optional_dep(X ENABLE_X11)
205 core_optional_dep(XRandR ENABLE_X11)
206 core_optional_dep(LibDRM ENABLE_X11)
207 endif()
208 else() 202 else()
209 core_optional_dep(OpenGLES) 203 core_optional_dep(OpenGLES)
210 if(OPENGLES_FOUND) 204 if(OPENGLES_FOUND)
211 if(ENABLE_MIR) 205 core_optional_dep(X ENABLE_X11)
212 core_require_dep(Mir ENABLE_MIR) 206 core_optional_dep(LibDRM ENABLE_X11)
213 core_optional_dep(LibDRM ENABLE_MIR)
214 else()
215 core_optional_dep(X ENABLE_X11)
216 core_optional_dep(LibDRM ENABLE_X11)
217 endif()
218 endif() 207 endif()
219 endif() 208 endif()
220 if(NOT APPLE) 209 if(NOT APPLE)
@@ -347,12 +336,9 @@ unset(_MAIN_LIBRARIES)
347if(WIN32) 336if(WIN32)
348 set_target_properties(${APP_NAME_LC} PROPERTIES WIN32_EXECUTABLE ON) 337 set_target_properties(${APP_NAME_LC} PROPERTIES WIN32_EXECUTABLE ON)
349 set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${APP_NAME_LC}) 338 set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${APP_NAME_LC})
350 target_sources(${APP_NAME_LC} PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest) 339 target_sources(kodi PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest)
351elseif(CORE_SYSTEM_NAME STREQUAL android) 340elseif(CORE_SYSTEM_NAME STREQUAL android)
352 # Nothing 341 # Nothing
353elseif(CORE_SYSTEM_NAME STREQUAL ios)
354 set_target_properties(${APP_NAME_LC} PROPERTIES OUTPUT_NAME ${APP_NAME}
355 MACOSX_BUNDLE_INFO_PLIST ${CORE_SOURCE_DIR}/xbmc/platform/darwin/ios/Info.plist.in)
356else() 342else()
357 set_target_properties(${APP_NAME_LC} PROPERTIES SUFFIX ".bin") 343 set_target_properties(${APP_NAME_LC} PROPERTIES SUFFIX ".bin")
358endif() 344endif()