Skip to content

Commit c1007c7

Browse files
committed
Merge pull request opencv#8376 from mshabunin:reduce-dependencies
2 parents 246d376 + 9333f82 commit c1007c7

File tree

9 files changed

+7
-17
lines changed

9 files changed

+7
-17
lines changed

modules/features2d/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
set(the_description "2D Features Framework")
2-
ocv_define_module(features2d opencv_imgproc opencv_ml opencv_flann OPTIONAL opencv_highgui WRAP java python)
2+
ocv_define_module(features2d opencv_imgproc opencv_flann OPTIONAL opencv_highgui WRAP java python)

modules/features2d/test/test_precomp.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "opencv2/imgproc.hpp"
1414
#include "opencv2/features2d.hpp"
1515
#include "opencv2/imgcodecs.hpp"
16-
#include "opencv2/ml.hpp"
1716
#include <iostream>
1817

1918
#endif

modules/highgui/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(the_description "High-level GUI and Media I/O")
2-
ocv_add_module(highgui opencv_imgproc OPTIONAL opencv_imgcodecs opencv_videoio WRAP python)
2+
ocv_add_module(highgui opencv_imgproc opencv_imgcodecs OPTIONAL opencv_videoio WRAP python)
33

44
# ----------------------------------------------------------------------------
55
# CMake file for highgui. See root CMakeLists.txt

modules/highgui/src/precomp.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,8 @@
5050
#include "opencv2/imgproc/imgproc_c.h"
5151
#include "opencv2/highgui/highgui_c.h"
5252

53-
#ifdef HAVE_OPENCV_IMGCODECS
5453
#include "opencv2/imgcodecs.hpp"
5554
#include "opencv2/imgcodecs/imgcodecs_c.h"
56-
#endif
5755

5856
#include <stdlib.h>
5957
#include <stdio.h>

modules/java/pure_test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
if(NOT ANT_EXECUTABLE)
1+
if(NOT ANT_EXECUTABLE
2+
OR NOT BUILD_opencv_imgcodecs
3+
OR NOT BUILD_opencv_calib3d)
24
return()
35
endif()
46

modules/objdetect/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
set(the_description "Object Detection")
2-
ocv_define_module(objdetect opencv_core opencv_imgproc opencv_ml OPTIONAL opencv_highgui WRAP java python)
2+
ocv_define_module(objdetect opencv_core opencv_imgproc WRAP java python)

modules/objdetect/src/precomp.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,8 @@
4646
#include "opencv2/objdetect.hpp"
4747
#include "opencv2/imgproc.hpp"
4848

49-
#include "opencv2/ml.hpp"
50-
5149
#include "opencv2/core/utility.hpp"
5250
#include "opencv2/core/ocl.hpp"
53-
54-
#include "opencv2/opencv_modules.hpp"
55-
#ifdef HAVE_OPENCV_HIGHGUI
56-
# include "opencv2/highgui.hpp"
57-
#endif
58-
5951
#include "opencv2/core/private.hpp"
6052

6153
#ifdef HAVE_TEGRA_OPTIMIZATION

modules/stitching/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ set(STITCHING_CONTRIB_DEPS "opencv_xfeatures2d")
88
if(BUILD_SHARED_LIBS AND BUILD_opencv_world AND OPENCV_WORLD_EXCLUDE_EXTRA_MODULES)
99
set(STITCHING_CONTRIB_DEPS "")
1010
endif()
11-
ocv_define_module(stitching opencv_imgproc opencv_features2d opencv_calib3d opencv_objdetect
11+
ocv_define_module(stitching opencv_imgproc opencv_features2d opencv_calib3d
1212
OPTIONAL opencv_cudaarithm opencv_cudafilters opencv_cudafeatures2d opencv_cudalegacy ${STITCHING_CONTRIB_DEPS}
1313
WRAP python)

modules/superres/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ if(IOS OR WINRT)
33
endif()
44

55
set(the_description "Super Resolution")
6-
ocv_warnings_disable(CMAKE_CXX_FLAGS /wd4127 -Wundef -Wshadow)
76
ocv_define_module(superres opencv_imgproc opencv_video
87
OPTIONAL opencv_videoio opencv_cudaarithm opencv_cudafilters opencv_cudawarping opencv_cudaimgproc opencv_cudaoptflow opencv_cudacodec
98
WRAP python)

0 commit comments

Comments
 (0)