diff options
author | Pino Toscano <pino@kde.org> | 2017-05-20 08:08:20 +0200 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2017-05-20 08:08:20 +0200 |
commit | 97ba63aafa510e64c78a529cb5e88eebd2e97967 (patch) | |
tree | aa845b80f997f86db2fef8878b8d55576dff189a /attic/modules/NepomukAddOntologyClasses.cmake | |
parent | b58820c4af6407ca6a67d342d7bc43ab09778e7d (diff) | |
download | extra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.gz extra-cmake-modules-97ba63aafa510e64c78a529cb5e88eebd2e97967.tar.bz2 |
Drop modules from attic that are not useful anymore
Even if they are in attic and not actually in use, drop a number of
modules (and old tests) that it does not make sense to keep carry
further:
- FindAlsa.cmake, config-alsa.h.cmake:
cmake has been providing a better FindALSA for long time
- FindEigen.cmake, FindEigen2.cmake & test:
Eigen v1 & v2 are deprecated and unmaintained for years
- FindGStreamer.cmake:
gstreamer-0.10 is long dead upstream
- FindKdcraw.cmake, FindKDE4Workspace.cmake, FindKdeMultimedia.cmake,
FindKDevPlatform.cmake, FindKexiv2.cmake, FindKipi.cmake,
FindLibAttica.cmake, FindLibKonq.cmake:
modules for KDE 4 libraries -- they are provided already by kdelibs 4.x,
and the frameworks versions of those libraries provide cmake config
files already
- FindKNepomuk.cmake, FindKonto.cmake, FindNepomuk.cmake,
NepomukAddOntologyClasses.cmake, NepomukMacros.cmake:
Nepomuk stuff, which is long dead
- FindKopete.cmake:
the Frameworks version of Kopete is not released yet, so it'd rather
provide own cmake config files
- FindKorundum.cmake:
Korudum is dead upstream, and so is Ruby 1.8
- FindLCMS.cmake & test:
LCMS 1 is dead for many years already
- FindMusicBrainz.cmake:
libmusicbrainz v2 is long dead, and the web service API it uses was
dismantled years ago
- FindOpenEXR.cmake & test:
ECM already provides an improved and polished version of this module
- FindPolkitQt.cmake:
polkit-qt is long dead, replaced by polkit-qt-1
- FindPopplerQt4.cmake:
ECM 5.19+ already provides a better FindPoppler module
- FindSharedDesktopOntologies.cmake:
dead upstream, but also used to provide cmake config files already
- tests for Blitz, Flex, LibXslt:
their modules are not even in attic
Diffstat (limited to 'attic/modules/NepomukAddOntologyClasses.cmake')
-rw-r--r-- | attic/modules/NepomukAddOntologyClasses.cmake | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/attic/modules/NepomukAddOntologyClasses.cmake b/attic/modules/NepomukAddOntologyClasses.cmake deleted file mode 100644 index ad336a24..00000000 --- a/attic/modules/NepomukAddOntologyClasses.cmake +++ /dev/null @@ -1,115 +0,0 @@ -# -# Use the Nepomuk resource class generator to generate convinient Resource subclasses -# from ontologies. -# -# Usage: -# NEPOMUK_ADD_ONTOLOGY_CLASSES(<sources-var> -# [FAST] -# [ONTOLOGIES] <onto-file1> [<onto-file2> ...] -# [CLASSES <class1> [<class2> ...]] -# [VISIBILITY <visibility-name>] -# ) -# -# If FAST is specified the rcgen parameter --fast will be used which results in resource classes -# not based on Nepomuk::Resource but on a custom class which does not perform any checks and simply -# writes the data to Nepomuk (hence the name fast). -# -# The optional CLASSES parameter allows to specify the classes to be generated (RDF URIs) in -# case one does not want all classes in the ontologies to be generated. -# -# The optional VISIBILITY parameter can only be used in non-fast mode and allows to set the gcc visibility -# to make the generated classes usable in a publically exported API. The <visibility-name> is used to create -# the name of the export macro and the export include file. Thus, when using "VISIBILITY foobar" include -# file "foobar_export.h" needs to define FOOBAR_EXPORT. -# -# Copyright (c) 2009 Sebastian Trueg <trueg@kde.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# -macro(NEPOMUK_ADD_ONTOLOGY_CLASSES _sources) - # extract arguments - set(_current_arg_type "onto") - foreach(_arg ${ARGN}) - if(${_arg} STREQUAL "ONTOLOGIES") - set(_current_arg_type "onto") - elseif(${_arg} STREQUAL "VISIBILITY") - set(_current_arg_type "visib") - elseif(${_arg} STREQUAL "CLASSES") - set(_current_arg_type "class") - elseif(${_arg} STREQUAL "FAST") - set(_fastmode "--fast") - else() - if(${_current_arg_type} STREQUAL "onto") - list(APPEND _ontologies ${_arg}) - get_filename_component(_filename ${_arg} NAME) - list(APPEND _ontofilenames ${_filename}) - elseif(${_current_arg_type} STREQUAL "class") - list(APPEND _classes "--class" "${_arg}") - else() - set(_visibility "--visibility" "${_arg}") - endif() - endif() - endforeach(_arg) - - # find our helper program (first in the install dir, then everywhere) - if(NOT WINCE) - find_program(RCGEN nepomuk-rcgen PATHS ${KDE4_BIN_INSTALL_DIR} ${BIN_INSTALL_DIR} NO_DEFAULT_PATH) - find_program(RCGEN nepomuk-rcgen) - else() - find_program(RCGEN nepomuk-rcgen PATHS ${HOST_BINDIR} NO_DEFAULT_PATH) - endif() - - if(NOT RCGEN) - message(SEND_ERROR "Failed to find the Nepomuk source generator" ) - else() - file(TO_NATIVE_PATH ${RCGEN} RCGEN) - - # we generate the files in the current binary dir - set(_targetdir ${CMAKE_CURRENT_BINARY_DIR}) - - # generate the list of source and header files - execute_process( - COMMAND ${RCGEN} ${_fastmode} --listheaders --prefix ${_targetdir}/ ${_classes} ${_visibility} ${_ontologies} - OUTPUT_VARIABLE _out_headers - RESULT_VARIABLE rcgen_result - ) - if(NOT ${rcgen_result} EQUAL 0) - message(SEND_ERROR "Running ${RCGEN} to generate list of headers failed with error code ${rcgen_result}") - endif() - - execute_process( - COMMAND ${RCGEN} ${_fastmode} --listsources --prefix ${_targetdir}/ ${_classes} ${_visibility} ${_ontologies} - OUTPUT_VARIABLE _out_sources - RESULT_VARIABLE rcgen_result - ) - if(NOT ${rcgen_result} EQUAL 0) - message(SEND_ERROR "Running ${RCGEN} to generate list of sources failed with error code ${rcgen_result}") - endif() - - add_custom_command(OUTPUT ${_out_headers} ${_out_sources} - COMMAND ${RCGEN} ${_fastmode} --writeall --target ${_targetdir}/ ${_classes} ${_visibility} ${_ontologies} - DEPENDS ${_ontologies} - COMMENT "Generating ontology source files from ${_ontofilenames}" - ) - - # make sure the includes are found - include_directories(${_targetdir}) - - # finally append the source files to the source list - list(APPEND ${_sources} ${_out_sources}) - endif() - - # reset variable names used - unset(_current_arg_type) - unset(_arg) - unset(_ontologies) - unset(_ontofilenames) - unset(_classes) - unset(_visibility) - unset(_fastmode) - unset(_targetdir) - unset(_out_headers) - unset(_out_sources) - unset(rcgen_result) -endmacro(NEPOMUK_ADD_ONTOLOGY_CLASSES) |