diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-07 20:36:25 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-08 19:34:03 +0200 |
commit | 61aa357a95dcb52537fba85fab58038ae9d6a97a (patch) | |
tree | 6e0651aa8973512f8f7a554d99ab8e1502cbbda5 | |
parent | 434bbe75dc61f00c90e19cbdfef8e2c928e8478c (diff) |
libcamera: meson: Make libatomic and libdl dependencies reusable
libcamera.so links against libatomic and libdl, and handles those
dependencies directly in the shared_object() call. More components
within libcamera will need those dependencies, extract them to named
variables to make them reusable.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r-- | src/libcamera/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 1b69bc0d..87fa09cd 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -58,6 +58,8 @@ includes = [ subdir('pipeline') subdir('proxy') +libatomic = cc.find_library('atomic', required : false) +libdl = cc.find_library('dl') libudev = dependency('libudev', required : false) if libudev.found() @@ -93,8 +95,8 @@ version_cpp = vcs_tag(command : [gen_version, meson.build_root()], libcamera_sources += version_cpp libcamera_deps = [ - cc.find_library('atomic', required: false), - cc.find_library('dl'), + libatomic, + libdl, libudev, dependency('threads'), ] |