This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new cf359dad2 graphics/libyuv: gate JPEG support on CONFIG_LIBJPEG 
[skip-cmake-parity]
cf359dad2 is described below

commit cf359dad2bfc5e8b680b0166034cfb981b21d6a4
Author: liuying75 <[email protected]>
AuthorDate: Mon Nov 2 20:29:52 2026 +0800

    graphics/libyuv: gate JPEG support on CONFIG_LIBJPEG [skip-cmake-parity]
    
    The libyuv JPEG path was gated on CONFIG_LIB_JPEG_TURBO, which no Kconfig 
entry defines, and pointed the include path at an external/libjpeg-turbo tree 
that this repository does not carry. The guard was therefore always false and 
libyuv was always built without HAVE_JPEG, so MJpegDecoder was compiled out.
    
    Gate on CONFIG_LIBJPEG instead. graphics/libjpeg already exports its 
include directory through Make.defs, so the explicit include path is not needed.
    
    CMake parity is skipped because graphics/libjpeg has no CMakeLists.txt of 
its own and is therefore absent from CMake builds; there is no libjpeg target 
for the CMake side of libyuv to depend on. The original CMake stanza is left 
untouched.
    
    Signed-off-by: liuying75 <[email protected]>
---
 graphics/libyuv/Makefile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/graphics/libyuv/Makefile b/graphics/libyuv/Makefile
index b17f3b0c3..92ba520dd 100644
--- a/graphics/libyuv/Makefile
+++ b/graphics/libyuv/Makefile
@@ -28,10 +28,11 @@ CXXEXT := .cc
 CXXFLAGS += -Wno-shadow -Wno-undef
 CXXSRCS = $(wildcard $(SRCDIR)/source/*.cc)
 
-# Enable JPEG support when libjpeg or libjpeg-turbo is available
-ifeq ($(CONFIG_LIB_JPEG_TURBO),y)
+# Enable JPEG support when libjpeg is enabled.  libjpeg already exports its
+# include directory through graphics/libjpeg/Make.defs.
+
+ifeq ($(CONFIG_LIBJPEG),y)
 CXXFLAGS += -DHAVE_JPEG
-CXXFLAGS += ${INCDIR_PREFIX}$(APPDIR)/external/libjpeg-turbo/libjpeg-turbo
 endif
 
 libyuv.tar.gz:

Reply via email to