Commit 59798b3f authored by Alexander Alekhin's avatar Alexander Alekhin

java: use module's public headers only

parent 0e1d65d3
...@@ -149,7 +149,14 @@ foreach(module ${OPENCV_JAVA_MODULES}) ...@@ -149,7 +149,14 @@ foreach(module ${OPENCV_JAVA_MODULES})
file(STRINGS "${custom_header_list}" module_headers) file(STRINGS "${custom_header_list}" module_headers)
ocv_list_add_prefix(module_headers "${OPENCV_MODULE_opencv_${module}_LOCATION}/") ocv_list_add_prefix(module_headers "${OPENCV_MODULE_opencv_${module}_LOCATION}/")
else() else()
set(module_headers "${OPENCV_MODULE_opencv_${module}_HEADERS}") set(module_headers "")
# TODO Implement module's "_HEADERS_PUBLIC" variable (OpenCVModule.cmake)
foreach(hdr ${OPENCV_MODULE_opencv_${module}_HEADERS})
string(REGEX REPLACE "^.*opencv2/" "opencv2/" hdr2 "${hdr}")
if(NOT hdr2 MATCHES "opencv2/${m}/private.*" AND hdr2 MATCHES "^(opencv2/?.*)/[^/]+.h(..)?$" )
list(APPEND module_headers "${hdr}")
endif()
endforeach()
endif() endif()
if(NOT module_headers) if(NOT module_headers)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment