mirror of
https://github.com/opencv/opencv.git
synced 2024-11-27 20:50:25 +08:00
cmake: support OPENCV_ABI_SKIP_MODULES_LIST
This commit is contained in:
parent
bda89a6469
commit
f163778da7
@ -2,6 +2,8 @@ if (NOT GENERATE_ABI_DESCRIPTOR)
|
|||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(OPENCV_ABI_SKIP_MODULES_LIST "" CACHE STRING "List of modules to exclude from ABI checker")
|
||||||
|
|
||||||
set(filename "opencv_abi.xml")
|
set(filename "opencv_abi.xml")
|
||||||
set(path1 "${CMAKE_BINARY_DIR}/${filename}")
|
set(path1 "${CMAKE_BINARY_DIR}/${filename}")
|
||||||
|
|
||||||
@ -26,6 +28,7 @@ foreach(mod ${OPENCV_MODULES_BUILD})
|
|||||||
string(REGEX REPLACE "^opencv_" "" mod "${mod}")
|
string(REGEX REPLACE "^opencv_" "" mod "${mod}")
|
||||||
if(NOT OPENCV_MODULE_opencv_${mod}_CLASS STREQUAL "PUBLIC"
|
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 NOT "${OPENCV_MODULE_opencv_${mod}_LOCATION}" STREQUAL "${OpenCV_SOURCE_DIR}/modules/${mod}" # opencv_contrib
|
||||||
|
OR ";${mod};" MATCHES ";${OPENCV_ABI_SKIP_MODULES_LIST};"
|
||||||
)
|
)
|
||||||
# headers
|
# headers
|
||||||
foreach(h ${OPENCV_MODULE_opencv_${mod}_HEADERS})
|
foreach(h ${OPENCV_MODULE_opencv_${mod}_HEADERS})
|
||||||
|
Loading…
Reference in New Issue
Block a user