|
|
@ -22,8 +22,6 @@ set(OPENCV_ABI_HEADERS "{RELPATH}/${OPENCV_INCLUDE_INSTALL_PATH}") |
|
|
|
# Libraries |
|
|
|
# Libraries |
|
|
|
set(OPENCV_ABI_LIBRARIES "{RELPATH}/${OPENCV_LIB_INSTALL_PATH}") |
|
|
|
set(OPENCV_ABI_LIBRARIES "{RELPATH}/${OPENCV_LIB_INSTALL_PATH}") |
|
|
|
|
|
|
|
|
|
|
|
set(OPENCV_ABI_SKIP_HEADERS "") |
|
|
|
|
|
|
|
set(OPENCV_ABI_SKIP_LIBRARIES "") |
|
|
|
|
|
|
|
foreach(mod ${OPENCV_MODULES_BUILD}) |
|
|
|
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" |
|
|
@ -44,7 +42,7 @@ string(REPLACE ";" "\n " OPENCV_ABI_SKIP_HEADERS "${OPENCV_ABI_SKIP_HEADERS}" |
|
|
|
string(REPLACE ";" "\n " OPENCV_ABI_SKIP_LIBRARIES "${OPENCV_ABI_SKIP_LIBRARIES}") |
|
|
|
string(REPLACE ";" "\n " OPENCV_ABI_SKIP_LIBRARIES "${OPENCV_ABI_SKIP_LIBRARIES}") |
|
|
|
|
|
|
|
|
|
|
|
# Options |
|
|
|
# Options |
|
|
|
set(OPENCV_ABI_GCC_OPTIONS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -DOPENCV_ABI_CHECK=1") |
|
|
|
set(OPENCV_ABI_GCC_OPTIONS "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_RELEASE} -DOPENCV_ABI_CHECK=1 -DCV_DNN_DONT_ADD_INLINE_NS=1") |
|
|
|
string(REGEX REPLACE "([^ ]) +([^ ])" "\\1\\n \\2" OPENCV_ABI_GCC_OPTIONS "${OPENCV_ABI_GCC_OPTIONS}") |
|
|
|
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}.base") |
|
|
|
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/templates/opencv_abi.xml.in" "${path1}.base") |
|
|
|