Skip to content

Commit

Permalink
cmake: support OPENCV_ABI_SKIP_MODULES_LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jan 13, 2020
1 parent bda89a6 commit f163778
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/OpenCVGenABI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ if (NOT GENERATE_ABI_DESCRIPTOR)
return()
endif()

set(OPENCV_ABI_SKIP_MODULES_LIST "" CACHE STRING "List of modules to exclude from ABI checker")

set(filename "opencv_abi.xml")
set(path1 "${CMAKE_BINARY_DIR}/${filename}")

Expand All @@ -26,6 +28,7 @@ foreach(mod ${OPENCV_MODULES_BUILD})
string(REGEX REPLACE "^opencv_" "" mod "${mod}")
if(NOT OPENCV_MODULE_opencv_${mod}_CLASS STREQUAL "PUBLIC"
OR NOT "${OPENCV_MODULE_opencv_${mod}_LOCATION}" STREQUAL "${OpenCV_SOURCE_DIR}/modules/${mod}" # opencv_contrib
OR ";${mod};" MATCHES ";${OPENCV_ABI_SKIP_MODULES_LIST};"
)
# headers
foreach(h ${OPENCV_MODULE_opencv_${mod}_HEADERS})
Expand Down

0 comments on commit f163778

Please sign in to comment.