aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/cmake/WebKitLibPlugin.cmake16
1 files changed, 14 insertions, 2 deletions
diff --git a/linden/indra/cmake/WebKitLibPlugin.cmake b/linden/indra/cmake/WebKitLibPlugin.cmake
index 9c56838..a4befa4 100644
--- a/linden/indra/cmake/WebKitLibPlugin.cmake
+++ b/linden/indra/cmake/WebKitLibPlugin.cmake
@@ -4,7 +4,7 @@ include(Prebuilt)
4 4
5if (STANDALONE) 5if (STANDALONE)
6 # The minimal version, 4.4.3, is rather arbitrary: it's the version in Debian/Lenny. 6 # The minimal version, 4.4.3, is rather arbitrary: it's the version in Debian/Lenny.
7 find_package(Qt4 4.4.3 COMPONENTS QtCore QtGui QtNetwork QtOpenGL REQUIRED) 7 find_package(Qt4 4.4.3 COMPONENTS QtCore QtGui QtNetwork QtOpenGL QtWebKit REQUIRED)
8 include(${QT_USE_FILE}) 8 include(${QT_USE_FILE})
9 set(QTDIR $ENV{QTDIR}) 9 set(QTDIR $ENV{QTDIR})
10 if (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin") 10 if (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin")
@@ -14,6 +14,18 @@ if (STANDALONE)
14 "or unset QTDIR if the found Qt is correct.") 14 "or unset QTDIR if the found Qt is correct.")
15 endif (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin") 15 endif (QTDIR AND NOT "${QT_BINARY_DIR}" STREQUAL "${QTDIR}/bin")
16 find_package(LLQtWebkit REQUIRED QUIET) 16 find_package(LLQtWebkit REQUIRED QUIET)
17 # Add the plugins.
18 set(QT_PLUGIN_LIBRARIES)
19 foreach(qlibname qgif qjpeg)
20 find_library(QT_PLUGIN_${qlibname} ${qlibname} PATHS ${QT_PLUGINS_DIR}/imageformats NO_DEFAULT_PATH)
21 if (QT_PLUGIN_${qlibname})
22 list(APPEND QT_PLUGIN_LIBRARIES ${QT_PLUGIN_${qlibname}})
23 else (QT_PLUGIN_${qtlibname})
24 message(FATAL_ERROR "Could not find the Qt plugin ${qlibname} in \"${QT_PLUGINS_DIR}/imageformats\"!")
25 endif (QT_PLUGIN_${qlibname})
26 endforeach(qlibname)
27 # qjpeg depends on libjpeg
28 list(APPEND QT_PLUGIN_LIBRARIES jpeg)
17 set(WEBKITLIBPLUGIN OFF CACHE BOOL 29 set(WEBKITLIBPLUGIN OFF CACHE BOOL
18 "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.") 30 "WEBKITLIBPLUGIN support for the llplugin/llmedia test apps.")
19else (STANDALONE) 31else (STANDALONE)
@@ -46,7 +58,7 @@ elseif (DARWIN)
46 ) 58 )
47elseif (LINUX) 59elseif (LINUX)
48 if (STANDALONE) 60 if (STANDALONE)
49 set(WEBKIT_PLUGIN_LIBRARIES ${LLQTWEBKIT_LIBRARY} ${QT_LIBRARIES}) 61 set(WEBKIT_PLUGIN_LIBRARIES ${LLQTWEBKIT_LIBRARY} ${QT_LIBRARIES} ${QT_PLUGIN_LIBRARIES})
50 else (STANDALONE) 62 else (STANDALONE)
51 set(WEBKIT_PLUGIN_LIBRARIES 63 set(WEBKIT_PLUGIN_LIBRARIES
52 llqtwebkit 64 llqtwebkit