mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
feat: add conditional inclusion support to header parser
This commit is contained in:
@@ -56,6 +56,12 @@ foreach(m ${OPENCV_JAVA_MODULES})
|
||||
ocv_remap_files(misc_files)
|
||||
endforeach(m)
|
||||
|
||||
include("${OpenCV_SOURCE_DIR}/cmake/OpenCVBindingsPreprocessorDefinitions.cmake")
|
||||
ocv_bindings_generator_populate_preprocessor_definitions(
|
||||
OPENCV_MODULES_BUILD
|
||||
opencv_preprocessor_defs
|
||||
)
|
||||
|
||||
set(CONFIG_FILE "${CMAKE_CURRENT_BINARY_DIR}/gen_java.json")
|
||||
set(__config_str
|
||||
"{
|
||||
@@ -63,6 +69,9 @@ set(__config_str
|
||||
\"modules\": [
|
||||
${__modules_config}
|
||||
],
|
||||
\"preprocessor_definitions\": {
|
||||
${opencv_preprocessor_defs}
|
||||
},
|
||||
\"files_remap\": [
|
||||
${__remap_config}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user