summaryrefslogtreecommitdiff
path: root/meson_options.txt
blob: badace151bb62bc9e38f8d52bd00952cd5e79155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-License-Identifier: CC0-1.0

option('android',
        type : 'boolean',
        value : false,
        description : 'Compile libcamera with Android Camera3 HAL interface')

option('documentation',
        type : 'boolean',
        description : 'Generate the project documentation')

option('gstreamer',
        type : 'feature',
        value : 'auto',
        description : 'Compile libcamera GStreamer plugin')

option('pipelines',
        type : 'array',
        choices : ['ipu3', 'raspberrypi', 'rkisp1', 'simple', 'uvcvideo', 'vimc'],
        description : 'Select which pipeline handlers to include')

option('test',
        type : 'boolean',
        description: 'Compile and include the tests')

option('v4l2',
        type : 'boolean',
        value : false,
        description : 'Compile the V4L2 compatibility layer')
mp;id=f1776100f55e70320a8938586bc8bf2f242addd4'>plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2020, Laurent Pinchart <laurent.pinchart@ideasonboard.com>
 *
 * message_handler.cpp - qcam - Log message handling
 */

#include "message_handler.h"

QtMessageHandler MessageHandler::handler_ = nullptr;
bool MessageHandler::verbose_ = false;

MessageHandler::MessageHandler(bool verbose)
{
	verbose_ = verbose;
	handler_ = qInstallMessageHandler(&MessageHandler::handleMessage);
}

void MessageHandler::handleMessage(QtMsgType type,
				   const QMessageLogContext &context,
				   const QString &msg)
{
	if (type == QtDebugMsg && !verbose_)
		return;

	handler_(type, context, msg);
}