mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Port to feature_summary.
This commit is contained in:
parent
e74dfee594
commit
5ea9c8fddd
4 changed files with 46 additions and 19 deletions
|
@ -7,20 +7,28 @@ include(CTest)
|
|||
include(CTestConfig.cmake)
|
||||
|
||||
#search packages used by KDE
|
||||
set(KDE_MIN_VERSION "4.9.80")
|
||||
set(SOPRANO_MIN_VERSION "2.7.56")
|
||||
find_package(KDE4 4.8.0 REQUIRED)
|
||||
find_package(Strigi REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(KDE4 4.9.80 REQUIRED)
|
||||
include (KDE4Defaults)
|
||||
include (MacroLibrary)
|
||||
|
||||
find_package(Strigi)
|
||||
set_package_properties(Strigi PROPERTIES DESCRIPTION "Desktop indexing and search support"
|
||||
URL "http://strigi.sourceforge.net"
|
||||
TYPE REQUIRED
|
||||
)
|
||||
|
||||
find_package(ZLIB)
|
||||
set_package_properties(ZLIB PROPERTIES DESCRIPTION "Support for gzip compressed files and data streams"
|
||||
URL "http://www.zlib.net"
|
||||
TYPE REQUIRED
|
||||
PURPOSE "Required for building Konqueror"
|
||||
)
|
||||
|
||||
find_package(KActivities 6.1.0)
|
||||
macro_log_feature(KActivities_FOUND
|
||||
"KActivities" "Interface library for the activity manager"
|
||||
"http://projects.kde.org/kde/kdelibs/kactivities/" FALSE "6.1.0"
|
||||
"STRONGLY_RECOMMENDED: Needed for Dolphin integration with activities"
|
||||
)
|
||||
set_package_properties(KActivities PROPERTIES DESCRIPTION "Interface library for the activity manager"
|
||||
URL "https://projects.kde.org/kactivities"
|
||||
TYPE RECOMMENDED
|
||||
PURPOSE "Needed for Dolphin integration with activities"
|
||||
)
|
||||
|
||||
include(ConfigureChecks.cmake)
|
||||
configure_file (config-apps.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-apps.h )
|
||||
|
@ -53,6 +61,4 @@ if ( Q_WS_X11 )
|
|||
endif ( Q_WS_X11 )
|
||||
macro_optional_add_subdirectory( doc )
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
macro_display_feature_log()
|
||||
endif(CMAKE_SOURCE_DIR STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
macro_optional_find_package(Soprano)
|
||||
macro_optional_find_package(NepomukCore)
|
||||
macro_log_feature(NepomukCore_FOUND "Nepomuk" "Nepomuk" "http://www.kde.org" FALSE "" "For adding desktop-wide tagging support to dolphin")
|
||||
set_package_properties(NepomukCore PROPERTIES DESCRIPTION "Nepomuk Core libraries"
|
||||
URL "http://www.kde.org"
|
||||
TYPE OPTIONAL
|
||||
PURPOSE "For adding desktop-wide tagging support to dolphin"
|
||||
)
|
||||
|
||||
macro_bool_to_01(NepomukCore_FOUND HAVE_NEPOMUK)
|
||||
configure_file(config-nepomuk.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-nepomuk.h )
|
||||
|
||||
|
@ -10,6 +14,13 @@ configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
|
|||
include_directories( ${KACTIVITIES_INCLUDE_DIRS} )
|
||||
|
||||
if (NepomukCore_FOUND)
|
||||
find_package(Soprano 2.7.56)
|
||||
set_package_properties(Soprano PROPERTIES DESCRIPTION "Qt-based RDF storage and parsing solution"
|
||||
URL "http://soprano.sourceforge.net"
|
||||
TYPE REQUIRED
|
||||
PURPOSE "Required for everything (storage and general data management)"
|
||||
)
|
||||
|
||||
# Yes, Soprano includes is what we need here
|
||||
include_directories( ${SOPRANO_INCLUDE_DIR} ${NEPOMUK_CORE_INCLUDE_DIR} )
|
||||
endif (NepomukCore_FOUND)
|
||||
|
|
|
@ -2,11 +2,16 @@
|
|||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
macro_optional_find_package(LibTidy)
|
||||
set_package_properties(LibTidy PROPERTIES DESCRIPTION "HTML Tidy"
|
||||
URL "http://tidy.sourceforge.net"
|
||||
TYPE OPTIONAL
|
||||
PURPOSE "Gives the Konqueror validators plugin the ability to validate HTML"
|
||||
)
|
||||
|
||||
macro_bool_to_01(LIBTIDY_FOUND HAVE_TIDY)
|
||||
|
||||
configure_file(config-konq-validator.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-konq-validator.h)
|
||||
|
||||
macro_log_feature(LIBTIDY_FOUND "libtidy" "HTML Tidy" "http://tidy.sourceforge.net" FALSE "" "Gives the Konqueror validators plugin the ability to validate HTML")
|
||||
|
||||
if (LIBTIDY_FOUND)
|
||||
include_directories(${LIBTIDY_INCLUDE_DIR})
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
macro_optional_find_package(GLIB2)
|
||||
macro_log_feature(GLIB2_FOUND "glib2" "Low-level core library for data structure handling, portability wrappers, etc." "http://www.gtk.org" FALSE "2.x" "Glib event loop integration from Qt is required for Netscape plugins support.")
|
||||
macro_optional_find_package(GLIB2 2.0)
|
||||
set_package_properties(GLIB2 PROPERTIES DESCRIPTION "Low-level core library for data structure handling, portability wrappers, etc."
|
||||
URL "http://www.gtk.org"
|
||||
TYPE OPTIONAL
|
||||
PURPOSE "Glib event loop integration from Qt is required for Netscape plugins support."
|
||||
)
|
||||
|
||||
if(GLIB2_FOUND)
|
||||
set(HAVE_GLIB2 1)
|
||||
endif( GLIB2_FOUND)
|
||||
|
|
Loading…
Reference in a new issue