From 7da45d65be36d36b880cc55c5036e96c24b53f00 Mon Sep 17 00:00:00 2001 From: Qiaowei Ren Date: Thu, 1 Mar 2018 14:38:11 +0800 Subject: remove ceph code This patch removes initial ceph code, due to license issue. Change-Id: I092d44f601cdf34aed92300fe13214925563081c Signed-off-by: Qiaowei Ren --- src/ceph/cmake/modules/CTags.cmake | 40 -------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 src/ceph/cmake/modules/CTags.cmake (limited to 'src/ceph/cmake/modules/CTags.cmake') diff --git a/src/ceph/cmake/modules/CTags.cmake b/src/ceph/cmake/modules/CTags.cmake deleted file mode 100644 index 55b2288..0000000 --- a/src/ceph/cmake/modules/CTags.cmake +++ /dev/null @@ -1,40 +0,0 @@ -find_program(CTAGS_EXECUTABLE ctags) - -function(add_tags name) - cmake_parse_arguments(TAGS "" "SRC_DIR;TAG_FILE" "EXCLUDE_OPTS;EXCLUDES" ${ARGN}) - set(excludes ${TAGS_EXCLUDES}) - if(TAGS_EXCLUDE_OPTS) - # always respect EXCLUDES_OPTS - list(APPEND excludes ${TAGS_EXCLUDE_OPTS}) - else() - # exclude the submodules under SRC_DIR by default - execute_process( - COMMAND git config --file .gitmodules --get-regexp path - COMMAND awk "/${TAGS_SRC_DIR}/ { print $2 }" - WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} - RESULT_VARIABLE result_code - OUTPUT_VARIABLE submodules - OUTPUT_STRIP_TRAILING_WHITESPACE) - if(${result_code} EQUAL 0) - string(REPLACE "${TAGS_SRC_DIR}/" "" submodules ${submodules}) - # cmake list uses ";" as the delimiter, so split the string manually - # before iterating in it. - string(REPLACE "\n" ";" submodules ${submodules}) - list(APPEND excludes ${submodules}) - endif() - endif() - message(STATUS "exclude following files under ${TAGS_SRC_DIR}: ${excludes}") - # add_custom_target() accepts a list after "COMMAND" keyword, so we should - # make exclude_arg a list, otherwise cmake will quote it. and ctags will - # take it as as a single argument. - foreach(exclude ${excludes}) - list(APPEND exclude_args --exclude=${exclude}) - endforeach() - add_custom_target(${name} - COMMAND ${CTAGS_EXECUTABLE} -R --c++-kinds=+p --fields=+iaS --extra=+q ${exclude_args} - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/${TAGS_SRC_DIR} - COMMENT "Building ctags file ${TAGS_TAG_FILE}" - VERBATIM) - set_source_files_properties(${CMAKE_SOURCE_DIR}/${TAGS_TAG_FILE} PROPERTIES - GENERATED true) -endfunction() -- cgit 1.2.3-korg