From patchwork Thu Feb 4 01:27:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11126 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 03B04BD162 for ; Thu, 4 Feb 2021 01:27:41 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7947B613E9; Thu, 4 Feb 2021 02:27:40 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="ITRCQKGs"; dkim-atps=neutral Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8DD5560302 for ; Thu, 4 Feb 2021 02:27:38 +0100 (CET) Received: by mail-pj1-x102c.google.com with SMTP id nm1so751257pjb.3 for ; Wed, 03 Feb 2021 17:27:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+qlBnJ9yJaf+NVX7a2nKVbc3oBLmE7Y3/QNA8vicZ3E=; b=ITRCQKGsurGCJJpD/29/dPJgqij5eZv43l/5r1OBXpJjADgHzVjqtTO0UtOtgkbnSl V6BqVZipYFxJWfdgOl9XTonL8ltx/PfPQfXVw2mbhfFFreLViuTLqQGUjvAZmAj+Y8Ne qHtdY5QhBdtIxofEbEy+6g3PkvNYvhlKjx9OQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=+qlBnJ9yJaf+NVX7a2nKVbc3oBLmE7Y3/QNA8vicZ3E=; b=XMaIDQoi/sSQoec7vp5IMru9hlCY9hEWuQP99kNExIji4Fr+AnHACnXgbLVuwgtUqU SfvFIH8V6tRGMMQ0lTWKH8QZRC76Q54GIU9RlvGgCRiqTVD5MUuTgmh0zTPuWbe0S6f/ dDwqyq4xgVsxAD6pygXa2G2PHgnRC1V7F5akFH21C3UrNV+7vIjGK0uCh8ugqgambnAu lrff2w74TNxXhSS6RgOWXKzBNGXVr3nwXTXu6K1NwkuS3e0z/ChQ349hJtJxErf5pADJ 8li/lLSNk2SidwPxUTxXduBFl5jmgVPFlfBMnqK75EZ6bEtEk7uTPSsEXYWx/RtRN+x4 d4lw== X-Gm-Message-State: AOAM5315XOtK7b7rKpGDLzpjRe70Qb0xaVbhExcma2hYnf1E2NiWv0DH nFuU+VE6HS/Zarei2zUJ0Y0KUkHL4wjpaLNn X-Google-Smtp-Source: ABdhPJz7b5vpHFwOJ4AG9javWLf2BiZA9ntXy+8Dl4ny8nxozyF/zD3v3xu1AmyYnIr1Wcp351WsTg== X-Received: by 2002:a17:90b:e8b:: with SMTP id fv11mr6093256pjb.210.1612402056679; Wed, 03 Feb 2021 17:27:36 -0800 (PST) Received: from hiroh.c.googlers.com.com (128.141.236.35.bc.googleusercontent.com. [35.236.141.128]) by smtp.gmail.com with ESMTPSA id j26sm3300936pfa.35.2021.02.03.17.27.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Feb 2021 17:27:35 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Thu, 4 Feb 2021 01:27:29 +0000 Message-Id: <20210204012731.1942112-1-hiroh@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v4 0/2] Introduce libyuv to subprojects X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch series enables using libyuv library in libcamera. As a libyuv doesn't likely exist as a native library, the libyuv code is downloaded into subprojects and is built with. For the environment where the wrap-based solution is prohibited, the meson file first tries building a local libyuv library first, and if it fails, does the wra-based download solution. Change in v4 - Adopt the fallback solution suggested by Laurent - Revert the meson option solution. Hirokazu Honda (2): subprojects: Add libyuv and built if -Dandroid=enabled android: Try build with a local libyuv first README.rst | 2 +- meson.build | 2 +- src/android/meson.build | 23 +++++++++++++++++++++++ subprojects/.gitignore | 1 + subprojects/libyuv.wrap | 4 ++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 subprojects/.gitignore create mode 100644 subprojects/libyuv.wrap Reviewed-by: Laurent Pinchart --- 2.30.0.365.g02bc693789-goog