aboutsummaryrefslogtreecommitdiff
path: root/project/cmake
diff options
context:
space:
mode:
authorStefan Saraev <stefan@saraev.ca>2016-05-22 15:21:49 +0300
committerStefan Saraev <stefan@saraev.ca>2016-06-13 19:40:05 +0300
commitbad3902b4a2538a433f858c97b2cf91c44c7feff (patch)
treefe2dc356c2849c34496878e8127f0f5faf7ea4b3 /project/cmake
parentdc6ac71d9b5344edfe058469488458369b81d08e (diff)
[chg] make libxslt optional
Diffstat (limited to 'project/cmake')
-rw-r--r--project/cmake/CMakeLists.txt5
-rw-r--r--project/cmake/modules/FindXslt.cmake4
2 files changed, 7 insertions, 2 deletions
diff --git a/project/cmake/CMakeLists.txt b/project/cmake/CMakeLists.txt
index ae74fd2187..a5368ae336 100644
--- a/project/cmake/CMakeLists.txt
+++ b/project/cmake/CMakeLists.txt
@@ -19,6 +19,7 @@ option(ENABLE_MICROHTTPD "Enable MicroHttpd webserver?" ON)
option(ENABLE_MYSQLCLIENT "Enable MySql support?" ON)
option(ENABLE_AVAHI "Enable Avahi support?" ON)
option(ENABLE_BLURAY "Enable BluRay support?" ON)
+option(ENABLE_XSLT "Enable XSLT scrapers support?" ON)
option(ENABLE_PLIST "Enable AirPlay support?" ON)
option(ENABLE_NFS "Enable NFS support?" ON)
option(ENABLE_AIRTUNES "Enable AirTunes support?" ON)
@@ -94,7 +95,7 @@ list(APPEND DEPLIBS ${CMAKE_THREAD_LIBS_INIT})
# Required dependencies
set(required_deps Sqlite3 FreeType PCRE Cpluff LibDvd
- TinyXML Python Yajl Xslt
+ TinyXML Python Yajl
Lzo2 Fribidi TagLib FFMPEG CrossGUID)
if(NOT WIN32)
list(APPEND required_deps LibSmbClient ZLIB)
@@ -106,7 +107,7 @@ if(CORE_SYSTEM_NAME STREQUAL android)
endif()
# Optional dependencies
-set(optional_deps MicroHttpd MySqlClient SSH
+set(optional_deps MicroHttpd MySqlClient SSH Xslt
Alsa UDev Dbus Avahi
PulseAudio VDPAU VAAPI)
diff --git a/project/cmake/modules/FindXslt.cmake b/project/cmake/modules/FindXslt.cmake
index 442ba43f2e..f03124d4b8 100644
--- a/project/cmake/modules/FindXslt.cmake
+++ b/project/cmake/modules/FindXslt.cmake
@@ -15,4 +15,8 @@ endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Xslt DEFAULT_MSG XSLT_INCLUDE_DIRS XSLT_LIBRARIES)
+if(XSLT_FOUND)
+ set(XSLT_DEFINITIONS -DHAVE_LIBXSLT=1)
+endif()
+
mark_as_advanced(XSLT_INCLUDE_DIRS XSLT_LIBRARIES)