Move glog_init.h
This commit is contained in:
@@ -40,10 +40,6 @@ include(${PRO_DIR}/cmake/Common.cmake)
|
||||
|
||||
set(OUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/_output")
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
# samples above device layer
|
||||
|
||||
add_subdirectory(device)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
#include <opencv2/imgproc/imgproc.hpp>
|
||||
|
||||
#include "glog_init.h" // NOLINT
|
||||
#include "mynteye/glog_init.h"
|
||||
|
||||
#include "device/context.h"
|
||||
#include "device/device.h"
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
#ifndef MYNTEYE_GLOG_INIT_H_ // NOLINT
|
||||
#define MYNTEYE_GLOG_INIT_H_
|
||||
#pragma once
|
||||
|
||||
#include <glog/logging.h>
|
||||
|
||||
struct glog_init {
|
||||
glog_init(int /*argc*/, char *argv[]) {
|
||||
// FLAGS_logtostderr = true;
|
||||
FLAGS_alsologtostderr = true;
|
||||
FLAGS_colorlogtostderr = true;
|
||||
|
||||
FLAGS_log_dir = ".";
|
||||
FLAGS_max_log_size = 1024;
|
||||
FLAGS_stop_logging_if_full_disk = true;
|
||||
|
||||
// FLAGS_v = 2;
|
||||
|
||||
google::InitGoogleLogging(argv[0]);
|
||||
|
||||
VLOG(2) << __func__;
|
||||
}
|
||||
|
||||
~glog_init() {
|
||||
VLOG(2) << __func__;
|
||||
google::ShutdownGoogleLogging();
|
||||
}
|
||||
};
|
||||
|
||||
#endif // MYNTEYE_GLOG_INIT_H_ NOLINT
|
||||
@@ -7,12 +7,11 @@
|
||||
#include <iostream>
|
||||
#include <mutex>
|
||||
|
||||
#include "mynteye/glog_init.h"
|
||||
#include "mynteye/mynteye.h"
|
||||
#include "mynteye/types.h"
|
||||
#include "uvc/uvc.h"
|
||||
|
||||
#include "glog_init.h" // NOLINT
|
||||
|
||||
struct frame {
|
||||
const void *data = nullptr;
|
||||
~frame() {
|
||||
|
||||
Reference in New Issue
Block a user