If the ANDROID symbol is defined, done by Android toolchain by default,
include the android-config.h header file instead of the autogenerated
config.h header file.
Android build system is completely different from autoconf and make, and
is not capable, without some hacks, to generate the config.h header
file.
Signed-off-by: Hans-Christian Egtvedt <hegtvedt@cisco.com>
[hans.verkuil@cisco.com: moved config(-android).h include to v4l2-ctl.h]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
17 files changed:
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
+
+#include "v4l2-ctl.h"
#ifdef HAVE_SYS_KLOG_H
#include <sys/klog.h>
#endif
-#include <linux/videodev2.h>
-
#include <list>
#include <vector>
#include <map>
-#include <string>
#include <algorithm>
-#include "v4l2-ctl.h"
-
typedef std::map<unsigned, std::vector<struct v4l2_ext_control> > class2ctrls_map;
typedef std::map<std::string, struct v4l2_queryctrl> ctrl_qmap;
#include <ctype.h>
#include <errno.h>
#include <sys/ioctl.h>
-#include <linux/videodev2.h>
-#include <linux/v4l2-subdev.h>
-#include <string>
#include "v4l2-ctl.h"
+#include <linux/v4l2-subdev.h>
+
enum format {
HEX,
RAW,
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-#include <linux/videodev2.h>
#include <linux/fb.h>
-#include <string>
#include <vector>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/mman.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-
-#include <string>
#include "v4l2-ctl.h"
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
-#include <string>
-
-#include <linux/videodev2.h>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
-
-#include <linux/videodev2.h>
-#include <string>
#include "v4l2-ctl.h"
#include <sys/time.h>
#include <dirent.h>
#include <math.h>
-#include <config.h>
+
+#include "v4l2-ctl.h"
#ifdef HAVE_SYS_KLOG_H
#include <sys/klog.h>
#endif
-#include <linux/videodev2.h>
-
#include <list>
#include <vector>
#include <map>
-#include <string>
#include <algorithm>
-
-#include "v4l2-ctl.h"
-
char options[OptLast];
static int app_result;
#ifndef _V4L2_CTL_H
#define _V4L2_CTL_H
+#ifdef ANDROID
+#include <android-config.h>
+#else
+#include <config.h>
+#endif
+
+#include <string>
+
+#include <linux/videodev2.h>
+
#ifndef NO_LIBV4L2
#include <libv4l2.h>
#else
#include <sys/ioctl.h>
#include <sys/time.h>
#include <math.h>
+
+#ifdef ANDROID
+#include <android-config.h>
+#else
#include <config.h>
+#endif
#ifdef HAVE_SYS_KLOG_H
#include <sys/klog.h>