Skip to content

Commit f856c96

Browse files
authored
Merge pull request opencv#16338 from alalek:abi_checker_exclude_modules
2 parents 5d01821 + f163778 commit f856c96

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmake/OpenCVGenABI.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ if (NOT GENERATE_ABI_DESCRIPTOR)
22
return()
33
endif()
44

5+
set(OPENCV_ABI_SKIP_MODULES_LIST "" CACHE STRING "List of modules to exclude from ABI checker")
6+
57
set(filename "opencv_abi.xml")
68
set(path1 "${CMAKE_BINARY_DIR}/${filename}")
79

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

0 commit comments

Comments
 (0)