From b96ab21cdbf49eef43c428b6e13b6e32bfb28f87 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Thu, 24 Jun 2021 23:24:37 +0100 Subject: libcamera: Separate source and build path helpers The libcameraSourcePath and libcameraBuildPath helper functions are internal and specific to libcamera needs while operating with the meson build system. In preparation for the upcoming move of utils to a common library, move these helpers out of utils and into their own build unit. Reviewed-by: Paul Elder Reviewed-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- include/libcamera/internal/meson.build | 1 + include/libcamera/internal/source_paths.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 include/libcamera/internal/source_paths.h (limited to 'include') diff --git a/include/libcamera/internal/meson.build b/include/libcamera/internal/meson.build index f019cfb3..205b36a9 100644 --- a/include/libcamera/internal/meson.build +++ b/include/libcamera/internal/meson.build @@ -39,6 +39,7 @@ libcamera_internal_headers = files([ 'process.h', 'pub_key.h', 'semaphore.h', + 'source_paths.h', 'sysfs.h', 'thread.h', 'timer.h', diff --git a/include/libcamera/internal/source_paths.h b/include/libcamera/internal/source_paths.h new file mode 100644 index 00000000..111c25b0 --- /dev/null +++ b/include/libcamera/internal/source_paths.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021, Google Inc. + * + * source_paths.h - Identify libcamera source and build paths + */ +#ifndef __LIBCAMERA_INTERNAL_SOURCE_PATHS_H__ +#define __LIBCAMERA_INTERNAL_SOURCE_PATHS_H__ + +#include + +namespace libcamera::utils { + +std::string libcameraBuildPath(); +std::string libcameraSourcePath(); + +} /* namespace libcamera::utils */ + +#endif /* __LIBCAMERA_INTERNAL_SOURCE_PATHS_H__ */ -- cgit v1.2.1