diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-24 23:24:37 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-25 16:10:53 +0100 |
commit | b96ab21cdbf49eef43c428b6e13b6e32bfb28f87 (patch) | |
tree | deef50a3dae137f6ed75775c30628ad9ca97ec7c /include | |
parent | ec7afef665a87eb389a5a4cb9ff35e9c24bbcc29 (diff) |
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 <paul.elder@ideasonboard.com>
Reviewed-by: Hirokazu Honda<hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/meson.build | 1 | ||||
-rw-r--r-- | include/libcamera/internal/source_paths.h | 19 |
2 files changed, 20 insertions, 0 deletions
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 <string> + +namespace libcamera::utils { + +std::string libcameraBuildPath(); +std::string libcameraSourcePath(); + +} /* namespace libcamera::utils */ + +#endif /* __LIBCAMERA_INTERNAL_SOURCE_PATHS_H__ */ |