You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: Simplify MMAL check
This commit is contained in:
13
configure
vendored
13
configure
vendored
@@ -4678,13 +4678,12 @@ enabled libx265 && require_pkg_config x265 x265.h x265_api_get &&
|
|||||||
enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode -lxavs
|
enabled libxavs && require libxavs "stdint.h xavs.h" xavs_encoder_encode -lxavs
|
||||||
enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
|
enabled libxvid && require libxvid xvid.h xvid_global -lxvidcore
|
||||||
enabled mmal && { check_lib interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host ||
|
enabled mmal && { check_lib interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host ||
|
||||||
{ ! enabled cross_compile && {
|
{ ! enabled cross_compile &&
|
||||||
add_cflags -isystem/opt/vc/include/ -isystem/opt/vc/include/interface/vmcs_host/linux -isystem/opt/vc/include/interface/vcos/pthreads -fgnu89-inline ;
|
add_cflags -isystem/opt/vc/include/ -isystem/opt/vc/include/interface/vmcs_host/linux -isystem/opt/vc/include/interface/vcos/pthreads -fgnu89-inline &&
|
||||||
add_extralibs -L/opt/vc/lib/ -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host ;
|
add_ldflags -L/opt/vc/lib/ &&
|
||||||
check_lib interface/mmal/mmal.h mmal_port_connect ; }
|
check_lib interface/mmal/mmal.h mmal_port_connect -lmmal_core -lmmal_util -lmmal_vc_client -lbcm_host; } ||
|
||||||
check_lib interface/mmal/mmal.h mmal_port_connect ; } ||
|
die "ERROR: mmal not found" &&
|
||||||
die "ERROR: mmal not found"; }
|
check_func_headers interface/mmal/mmal.h "MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS"; }
|
||||||
enabled mmal && check_func_headers interface/mmal/mmal.h "MMAL_PARAMETER_VIDEO_MAX_NUM_CALLBACKS"
|
|
||||||
enabled omx_rpi && enable omx
|
enabled omx_rpi && enable omx
|
||||||
enabled omx && { check_header OMX_Core.h ||
|
enabled omx && { check_header OMX_Core.h ||
|
||||||
{ ! enabled cross_compile && enabled omx_rpi && {
|
{ ! enabled cross_compile && enabled omx_rpi && {
|
||||||
|
Reference in New Issue
Block a user