py: meson: Use libcamera_private dependency
We define -DLIBCAMERA_BASE_PRIVATE to get access to libcamera private headers, but the correct way to do this is to have a meson dependency to libcamera_private. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
36ea10a564
commit
418cbde04b
@@ -60,7 +60,7 @@ pycamera_sources += custom_target('py_gen_formats',
|
||||
command : [gen_py_formats, '-o', '@OUTPUT@', '@INPUT@'])
|
||||
|
||||
pycamera_deps = [
|
||||
libcamera_public,
|
||||
libcamera_private,
|
||||
py3_dep,
|
||||
pybind11_dep,
|
||||
]
|
||||
@@ -69,7 +69,6 @@ pycamera_args = [
|
||||
'-fvisibility=hidden',
|
||||
'-Wno-shadow',
|
||||
'-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT',
|
||||
'-DLIBCAMERA_BASE_PRIVATE',
|
||||
]
|
||||
|
||||
destdir = get_option('libdir') / ('python' + py3_dep.version()) / 'site-packages' / 'libcamera'
|
||||
|
||||
Reference in New Issue
Block a user