diff options
author | Olivier Goffart <ogoffart@woboq.com> | 2017-12-14 19:02:20 +0300 |
---|---|---|
committer | Dominik Schmidt <dev@dominik-schmidt.de> | 2018-01-13 15:58:17 +0300 |
commit | 41798cef1839ab2593ddf09332ad44a4b9d3eabe (patch) | |
tree | e0611481909497156ce93eda4b42198336759b2d /cmake | |
parent | 1c117786936fc811c5593c0c15d08bb48bfb4665 (diff) |
Csync: remove some unused build system stuff
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/modules/MacroAddPlugin.cmake | 30 | ||||
-rw-r--r-- | cmake/modules/MacroCopyFile.cmake | 37 | ||||
-rw-r--r-- | cmake/modules/UseAsciidoc.cmake | 58 |
3 files changed, 0 insertions, 125 deletions
diff --git a/cmake/modules/MacroAddPlugin.cmake b/cmake/modules/MacroAddPlugin.cmake deleted file mode 100644 index 8ddf8d689..000000000 --- a/cmake/modules/MacroAddPlugin.cmake +++ /dev/null @@ -1,30 +0,0 @@ -# - MACRO_ADD_PLUGIN(name [WITH_PREFIX] file1 .. fileN) -# -# Create a plugin from the given source files. -# If WITH_PREFIX is given, the resulting plugin will have the -# prefix "lib", otherwise it won't. -# -# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org> -# Copyright (c) 2006, Laurent Montel, <montel@kde.org> -# Copyright (c) 2006, Andreas Schneider, <asn@cryptomilk.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -macro (MACRO_ADD_PLUGIN _target_NAME _with_PREFIX) - - if (${_with_PREFIX} STREQUAL "WITH_PREFIX") - set(_first_SRC) - else (${_with_PREFIX} STREQUAL "WITH_PREFIX") - set(_first_SRC ${_with_PREFIX}) - endif (${_with_PREFIX} STREQUAL "WITH_PREFIX") - - add_library(${_target_NAME} MODULE ${_first_SRC} ${ARGN}) - - if (_first_SRC) - set_target_properties(${_target_NAME} PROPERTIES PREFIX "") - endif (_first_SRC) - -endmacro (MACRO_ADD_PLUGIN _name _sources) - diff --git a/cmake/modules/MacroCopyFile.cmake b/cmake/modules/MacroCopyFile.cmake deleted file mode 100644 index 210c7a427..000000000 --- a/cmake/modules/MacroCopyFile.cmake +++ /dev/null @@ -1,37 +0,0 @@ -# (c) 2014 Copyright ownCloud GmbH -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING* file. - -# - macro_copy_file(_src _dst) -# Copies a file to ${_dst} only if ${_src} is different (newer) than ${_dst} -# -# Example: -# macro_copy_file(${CMAKE_CURRENT_SOURCE_DIR}/icon.png ${CMAKE_CURRENT_BINARY_DIR}/.) -# Copies file icon.png to ${CMAKE_CURRENT_BINARY_DIR} directory -# -# Copyright (c) 2006-2007 Wengo -# Copyright (c) 2006-2008 Andreas Schneider <asn@cryptomilk.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING file. - - -macro (macro_copy_file _src _dst) - # Removes all path containing .svn or CVS or CMakeLists.txt during the copy - if (NOT ${_src} MATCHES ".*\\.svn|CVS|CMakeLists\\.txt.*") - - if (CMAKE_VERBOSE_MAKEFILE) - message(STATUS "Copy file from ${_src} to ${_dst}") - endif (CMAKE_VERBOSE_MAKEFILE) - - # Creates directory if necessary - get_filename_component(_path ${_dst} PATH) - file(MAKE_DIRECTORY ${_path}) - - execute_process( - COMMAND - ${CMAKE_COMMAND} -E copy_if_different ${_src} ${_dst} - OUTPUT_QUIET - ) - endif (NOT ${_src} MATCHES ".*\\.svn|CVS|CMakeLists\\.txt.*") -endmacro (macro_copy_file) diff --git a/cmake/modules/UseAsciidoc.cmake b/cmake/modules/UseAsciidoc.cmake deleted file mode 100644 index 42024b29e..000000000 --- a/cmake/modules/UseAsciidoc.cmake +++ /dev/null @@ -1,58 +0,0 @@ -# - macro_asciidoc2man(inputfile outputfile) -# -# Create a manpage with asciidoc. -# Example: macro_asciidoc2man(foo.txt foo.1) -# -# Copyright (c) 2006, Andreas Schneider, <asn@cryptomilk.org> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -include(MacroCopyFile) - -macro(MACRO_ASCIIDOC2MAN _a2m_input _a2m_output) - find_program(A2X - NAMES - a2x - ) - #message("+++ A2X: ${A2X}") - - if (A2X) - - #message("+++ ${A2X} --doctype=manpage --format=manpage --destination-dir=${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${_a2m_input}") - macro_copy_file(${CMAKE_CURRENT_SOURCE_DIR}/${_a2m_input} ${CMAKE_CURRENT_BINARY_DIR}/${_a2m_input}) - - execute_process( - COMMAND - ${A2X} --doctype=manpage --format=manpage ${_a2m_input} - WORKING_DIRECTORY - ${CMAKE_CURRENT_BINARY_DIR} - RESULT_VARIABLE - A2M_MAN_GENERATED - ERROR_QUIET - ) - - #message("+++ A2M_MAN_GENERATED: ${A2M_MAN_GENERATED}") - if (A2M_MAN_GENERATED EQUAL 0) - find_file(A2M_MAN_FILE - NAME - ${_a2m_output} - PATHS - ${CMAKE_CURRENT_BINARY_DIR} - NO_DEFAULT_PATH - ) - - if (A2M_MAN_FILE) - get_filename_component(A2M_MAN_CATEGORY ${A2M_MAN_FILE} EXT) - string(SUBSTRING ${A2M_MAN_CATEGORY} 1 1 A2M_MAN_CATEGORY) - install( - FILES - ${A2M_MAN_FILE} - DESTINATION - ${MAN_INSTALL_DIR}/man${A2M_MAN_CATEGORY} - ) - endif (A2M_MAN_FILE) - endif (A2M_MAN_GENERATED EQUAL 0) - - endif (A2X) -endmacro(MACRO_ASCIIDOC2MAN _a2m_input _a2m_file) |