__nodiscard was introduced for compatibility with C++14. In C++17, there is an official attribute: [[nodiscard]]. Moreover, some libc implementations (like bionic) already define the __nodiscard macro [1]. Since: - libcamera builds with cpp_std=c++17 - [[nodiscard]] is already used in the android HAL (exif) We should replace all usage __nodiscard of by [[nodiscard]] for consistency. Do the replacement and remove the no longer used compiler.h. [1] https://android-review.googlesource.com/c/platform/bionic/+/3254860 Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
41 lines
807 B
Meson
41 lines
807 B
Meson
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
libcamera_base_include_dir = libcamera_include_dir / 'base'
|
|
|
|
libcamera_base_public_headers = files([
|
|
'bound_method.h',
|
|
'class.h',
|
|
'flags.h',
|
|
'object.h',
|
|
'shared_fd.h',
|
|
'signal.h',
|
|
'span.h',
|
|
'unique_fd.h',
|
|
])
|
|
|
|
libcamera_base_private_headers = files([
|
|
'backtrace.h',
|
|
'event_dispatcher.h',
|
|
'event_dispatcher_poll.h',
|
|
'event_notifier.h',
|
|
'file.h',
|
|
'log.h',
|
|
'memfd.h',
|
|
'message.h',
|
|
'mutex.h',
|
|
'private.h',
|
|
'semaphore.h',
|
|
'thread.h',
|
|
'thread_annotations.h',
|
|
'timer.h',
|
|
'utils.h',
|
|
])
|
|
|
|
libcamera_base_headers = [
|
|
libcamera_base_public_headers,
|
|
libcamera_base_private_headers,
|
|
]
|
|
|
|
install_headers(libcamera_base_public_headers,
|
|
subdir : libcamera_base_include_dir)
|