mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 00:55:07 +03:00
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>
This commit is contained in:
parent
434bbe75dc
commit
61aa357a95
1 changed files with 4 additions and 2 deletions
|
@ -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'),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue