opencv: sort and reorder SW support options
authorSamuel Martin <s.martin49@gmail.com>
Tue, 22 Apr 2014 23:15:43 +0000 (01:15 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Jul 2014 20:55:29 +0000 (22:55 +0200)
Sort SW features by category and disable them when not supported by
Buildroot.

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/opencv/opencv.mk

index 34a01c117c15d76233c41a5b2759ad2b86c42ba1..fa9b207e549f6b413194f7a0e604fec8014c05c4 100644 (file)
@@ -76,7 +76,6 @@ OPENCV_CONF_OPT += \
        -DENABLE_SSE3=$(if $(BR2_X86_CPU_HAS_SSE3),ON,OFF)   \
        -DENABLE_SSSE3=$(if $(BR2_X86_CPU_HAS_SSSE3),ON,OFF)
 
-# Software/3rd-party support options.
 # Cuda stuff
 OPENCV_CONF_OPT += \
        -DWITH_CUBLAS=OFF \
@@ -106,34 +105,53 @@ OPENCV_CONF_OPT += -DWITH_PVAPI=OFF
 # Ximea stuff
 OPENCV_CONF_OPT += -DWITH_XIMEA=OFF
 
+# Non-Linux support (Android options) must remain OFF:
 OPENCV_CONF_OPT += \
-       -DBUILD_JASPER=OFF \
-       -DBUILD_JPEG=OFF   \
-       -DBUILD_PNG=OFF    \
-       -DBUILD_TIFF=OFF   \
-       -DBUILD_ZLIB=OFF   \
+       -DWITH_ANDROID_CAMERA=OFF          \
        -DBUILD_ANDROID_CAMERA_WRAPPER=OFF \
        -DBUILD_ANDROID_EXAMPLES=OFF       \
+       -DINSTALL_ANDROID_EXAMPLES=OFF     \
        -DBUILD_FAT_JAVA_LIB=OFF           \
-       -DBUILD_JAVA_SUPPORT=OFF           \
+       -DBUILD_JAVA_SUPPORT=OFF
+
+# Non-Linux support (Mac OSX options) must remain OFF:
+OPENCV_CONF_OPT += \
+       -DWITH_AVFOUNDATION=OFF \
+       -DWITH_CARBON=OFF       \
+       -DWITH_QUICKTIME=OFF
+
+# Non-Linux support (Windows options) must remain OFF:
+OPENCV_CONF_OPT += \
+       -DWITH_VFW=OFF      \
+       -DWITH_WIN32UI=OFF  \
+       -DWITH_CSTRIPES=OFF \
+       -DWITH_DSHOW=OFF    \
+       -DWITH_MSMF=OFF     \
+       -DWITH_VIDEOINPUT=OFF
+
+# Software/3rd-party support options.
+OPENCV_CONF_OPT += \
+       -DBUILD_JASPER=OFF  \
+       -DBUILD_JPEG=OFF    \
+       -DBUILD_OPENEXR=OFF \
+       -DBUILD_PNG=OFF     \
+       -DBUILD_TIFF=OFF    \
+       -DBUILD_ZLIB=OFF    \
        -DBUILD_NEW_PYTHON_SUPPORT=OFF \
-       -DINSTALL_ANDROID_EXAMPLES=OFF \
        -DINSTALL_C_EXAMPLES=OFF       \
        -DINSTALL_PYTHON_EXAMPLES=OFF  \
-       -DINSTALL_TO_MANGLED_PATHS=OFF \
-       -DWITH_1394=OFF           \
-       -DWITH_ANDROID_CAMERA=OFF \
-       -DWITH_AVFOUNDATION=OFF   \
-       -DWITH_CARBON=OFF         \
-       -DWITH_EIGEN=OFF          \
-       -DWITH_IMAGEIO=OFF        \
-       -DWITH_JASPER=OFF         \
-       -DWITH_OPENEXR=OFF        \
-       -DWITH_OPENGL=OFF         \
-       -DWITH_OPENNI=OFF         \
-       -DWITH_QUICKTIME=OFF      \
-       -DWITH_UNICAP=OFF         \
-       -DWITH_VIDEOINPUT=OFF     \
+       -DINSTALL_TO_MANGLED_PATHS=OFF
+
+# Disabled features (mostly because they are not available in Buildroot), but
+# - eigen: OpenCV does not use it, not take any benefit from it.
+OPENCV_CONF_OPT += \
+       -DWITH_1394=OFF    \
+       -DWITH_EIGEN=OFF   \
+       -DWITH_IMAGEIO=OFF \
+       -DWITH_OPENEXR=OFF \
+       -DWITH_OPENGL=OFF  \
+       -DWITH_OPENNI=OFF  \
+       -DWITH_UNICAP=OFF  \
        -DWITH_XINE=OFF
 
 OPENCV_DEPENDENCIES += zlib