mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 11:42:40 +01:00
media-libs/libcamera: run python_optimize only when USE=python
This commit is contained in:
@@ -80,13 +80,14 @@ src_configure() {
|
|||||||
local emesonargs=(
|
local emesonargs=(
|
||||||
-Dandroid=disabled
|
-Dandroid=disabled
|
||||||
$(meson_feature app cam)
|
$(meson_feature app cam)
|
||||||
|
# Building documentation is broken
|
||||||
# $(meson_feature doc documentation)
|
# $(meson_feature doc documentation)
|
||||||
-Ddocumentation=disabled
|
-Ddocumentation=disabled
|
||||||
$(meson_feature gstreamer)
|
$(meson_feature gstreamer)
|
||||||
$(meson_feature python pycamera)
|
$(meson_feature python pycamera)
|
||||||
$(meson_feature qt6 qcam)
|
$(meson_feature qt6 qcam)
|
||||||
$(meson_feature udev)
|
$(meson_feature udev)
|
||||||
# depend on libyuv
|
# Depend on libyuv
|
||||||
#$(meson_use test)
|
#$(meson_use test)
|
||||||
-Dtest=false
|
-Dtest=false
|
||||||
-Dpipelines=imx8-isi,ipu3,mali-c55,rkisp1,rpi/vc4,simple,uvcvideo,vimc
|
-Dpipelines=imx8-isi,ipu3,mali-c55,rkisp1,rpi/vc4,simple,uvcvideo,vimc
|
||||||
@@ -98,5 +99,7 @@ src_configure() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
meson_src_install
|
meson_src_install
|
||||||
|
if use python; then
|
||||||
python_optimize "${D}/$(python_get_sitedir)/libcamera"
|
python_optimize "${D}/$(python_get_sitedir)/libcamera"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user