diff options
Diffstat (limited to 'project/cmake/CMakeLists.txt')
| -rw-r--r-- | project/cmake/CMakeLists.txt | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/project/cmake/CMakeLists.txt b/project/cmake/CMakeLists.txt index fa1156d..c70b18d 100644 --- a/project/cmake/CMakeLists.txt +++ b/project/cmake/CMakeLists.txt | |||
| @@ -45,14 +45,14 @@ option(ENABLE_NONFREE "Enable non-free components?" ON) | |||
| 45 | option(ENABLE_AIRTUNES "Enable AirTunes support?" ON) | 45 | option(ENABLE_AIRTUNES "Enable AirTunes support?" ON) |
| 46 | option(ENABLE_CEC "Enable CEC support?" ON) | 46 | option(ENABLE_CEC "Enable CEC support?" ON) |
| 47 | option(ENABLE_OPTICAL "Enable optical support?" ON) | 47 | option(ENABLE_OPTICAL "Enable optical support?" ON) |
| 48 | # use ffmpeg from depends or system | ||
| 49 | option(ENABLE_INTERNAL_FFMPEG "Enable internal ffmpeg?" OFF) | ||
| 48 | if(UNIX) | 50 | if(UNIX) |
| 49 | if(NOT APPLE) | ||
| 50 | option(ENABLE_INTERNAL_FFMPEG "Enable internal ffmpeg?" ON) | ||
| 51 | endif() | ||
| 52 | option(FFMPEG_PATH "Path to external ffmpeg?" "") | 51 | option(FFMPEG_PATH "Path to external ffmpeg?" "") |
| 53 | option(ENABLE_INTERNAL_CROSSGUID "Enable internal crossguid?" ON) | 52 | option(ENABLE_INTERNAL_CROSSGUID "Enable internal crossguid?" ON) |
| 54 | option(ENABLE_OPENSSL "Enable OpenSSL?" ON) | 53 | option(ENABLE_OPENSSL "Enable OpenSSL?" ON) |
| 55 | 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) | 56 | if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd) |
| 57 | option(ENABLE_X11 "Enable X11 support?" ON) | 57 | option(ENABLE_X11 "Enable X11 support?" ON) |
| 58 | option(ENABLE_AML "Enable AML?" OFF) | 58 | option(ENABLE_AML "Enable AML?" OFF) |
| @@ -119,7 +119,7 @@ endif() | |||
| 119 | # Optional dependencies | 119 | # Optional dependencies |
| 120 | set(optional_deps MicroHttpd MySqlClient SSH XSLT | 120 | set(optional_deps MicroHttpd MySqlClient SSH XSLT |
| 121 | Alsa UDEV DBus Avahi SmbClient | 121 | Alsa UDEV DBus Avahi SmbClient |
| 122 | PulseAudio VDPAU VAAPI) | 122 | PulseAudio VDPAU VAAPI Bluetooth CAP) |
| 123 | 123 | ||
| 124 | # Required, dyloaded deps | 124 | # Required, dyloaded deps |
| 125 | set(required_dyload Curl ASS) | 125 | set(required_dyload Curl ASS) |
| @@ -197,14 +197,24 @@ endif() | |||
| 197 | if(NOT WIN32) | 197 | if(NOT WIN32) |
| 198 | core_optional_dep(OpenGl) | 198 | core_optional_dep(OpenGl) |
| 199 | if(OPENGL_FOUND) | 199 | if(OPENGL_FOUND) |
| 200 | core_optional_dep(X ENABLE_X11) | 200 | if(ENABLE_MIR) |
| 201 | core_optional_dep(LibDRM ENABLE_X11) | 201 | core_require_dep(Mir ENABLE_MIR) |
| 202 | core_optional_dep(XRandR ENABLE_X11) | 202 | core_optional_dep(LibDRM ENABLE_MIR) |
| 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() | ||
| 203 | else() | 208 | else() |
| 204 | core_optional_dep(OpenGLES) | 209 | core_optional_dep(OpenGLES) |
| 205 | if(OPENGLES_FOUND) | 210 | if(OPENGLES_FOUND) |
| 206 | core_optional_dep(X ENABLE_X11) | 211 | if(ENABLE_MIR) |
| 207 | core_optional_dep(LibDRM ENABLE_X11) | 212 | core_require_dep(Mir ENABLE_MIR) |
| 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() | ||
| 208 | endif() | 218 | endif() |
| 209 | endif() | 219 | endif() |
| 210 | if(NOT APPLE) | 220 | if(NOT APPLE) |
| @@ -337,9 +347,12 @@ unset(_MAIN_LIBRARIES) | |||
| 337 | if(WIN32) | 347 | if(WIN32) |
| 338 | set_target_properties(${APP_NAME_LC} PROPERTIES WIN32_EXECUTABLE ON) | 348 | set_target_properties(${APP_NAME_LC} PROPERTIES WIN32_EXECUTABLE ON) |
| 339 | set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${APP_NAME_LC}) | 349 | set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT ${APP_NAME_LC}) |
| 340 | target_sources(kodi PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest) | 350 | target_sources(${APP_NAME_LC} PRIVATE ${CORE_SOURCE_DIR}/xbmc/platform/win32/app.manifest) |
| 341 | elseif(CORE_SYSTEM_NAME STREQUAL android) | 351 | elseif(CORE_SYSTEM_NAME STREQUAL android) |
| 342 | # Nothing | 352 | # Nothing |
| 353 | elseif(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) | ||
| 343 | else() | 356 | else() |
| 344 | set_target_properties(${APP_NAME_LC} PROPERTIES SUFFIX ".bin") | 357 | set_target_properties(${APP_NAME_LC} PROPERTIES SUFFIX ".bin") |
| 345 | endif() | 358 | endif() |
