mirror of https://github.com/opencv/opencv.git
parent
e12a04ac7e
commit
9fbc92aace
4 changed files with 73 additions and 6 deletions
@ -0,0 +1,29 @@ |
||||
if (NOT GENERATE_ABI_DESCRIPTOR) |
||||
return() |
||||
endif() |
||||
|
||||
set(filename "opencv_abi.xml") |
||||
set(path1 "${CMAKE_BINARY_DIR}/${filename}") |
||||
|
||||
set(modules "${OPENCV_MODULES_PUBLIC}") |
||||
ocv_list_filterout(modules "opencv_ts") |
||||
|
||||
message(STATUS "Generating ABI compliance checker configuration: ${filename}") |
||||
|
||||
if (OPENCV_VCSVERSION AND NOT OPENCV_VCSVERSION STREQUAL "unknown") |
||||
set(OPENCV_ABI_VERSION "${OPENCV_VCSVERSION}") |
||||
else() |
||||
set(OPENCV_ABI_VERSION "${OPENCV_VERSION}") |
||||
endif() |
||||
|
||||
# Headers |
||||
set(OPENCV_ABI_HEADERS "{RELPATH}/${OPENCV_INCLUDE_INSTALL_PATH}") |
||||
|
||||
# Libraries |
||||
set(OPENCV_ABI_LIBRARIES "{RELPATH}/${OPENCV_LIB_INSTALL_PATH}") |
||||
|
||||
# Options |
||||
set(OPENCV_ABI_GCC_OPTIONS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE}") |
||||
string(REGEX REPLACE "([^ ]) +([^ ])" "\\1\\n \\2" OPENCV_ABI_GCC_OPTIONS "${OPENCV_ABI_GCC_OPTIONS}") |
||||
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/opencv_abi.xml.in" "${path1}") |
@ -0,0 +1,40 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
|
||||
<!-- |
||||
|
||||
This file is auto-generated |
||||
|
||||
--> |
||||
|
||||
<descriptor> |
||||
|
||||
<version> |
||||
@OPENCV_ABI_VERSION@ |
||||
</version> |
||||
|
||||
<headers> |
||||
@OPENCV_ABI_HEADERS@ |
||||
</headers> |
||||
|
||||
<libs> |
||||
@OPENCV_ABI_LIBRARIES@ |
||||
</libs> |
||||
|
||||
<skip_headers> |
||||
opencv2/core/cuda* |
||||
opencv2/core/private* |
||||
opencv/cxeigen.hpp |
||||
opencv2/core/eigen.hpp |
||||
opencv2/flann/hdf5.h |
||||
opencv2/imgcodecs/ios.h |
||||
opencv2/videoio/cap_ios.h |
||||
opencv2/ts.hpp |
||||
opencv2/ts/* |
||||
opencv2/xobjdetect/private.hpp |
||||
</skip_headers> |
||||
|
||||
<gcc_options> |
||||
@OPENCV_ABI_GCC_OPTIONS@ |
||||
</gcc_options> |
||||
|
||||
</descriptor> |
Loading…
Reference in new issue