From patchwork Wed Feb 3 06:51:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hirokazu Honda X-Patchwork-Id: 11112 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 872F6BD160 for ; Wed, 3 Feb 2021 06:51:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id EB7436843A; Wed, 3 Feb 2021 07:51:42 +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="CzVQsThw"; dkim-atps=neutral Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 71CA760304 for ; Wed, 3 Feb 2021 07:51:41 +0100 (CET) Received: by mail-pj1-x1035.google.com with SMTP id e9so3998160pjj.0 for ; Tue, 02 Feb 2021 22:51:41 -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=jCP/TsMRAChzaNVhq0/nnBXvKrc6sRRXJ+5UekrExfY=; b=CzVQsThwgBwv0GLqnsLcadk77CuAWkO7PoNTKx7FUuy23omE3CidtOBvy/xz33Ps7m 4dr8grOz6K3ikaiZoRcoDX5hkwmaIRxMzd13Fz+qOmifgNz7mq1M0xj+WfYiNSOY60Gy bHCYAiGtNsApjEzSUyMdHr46nMidLBL5zPd6Y= 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=jCP/TsMRAChzaNVhq0/nnBXvKrc6sRRXJ+5UekrExfY=; b=Q+FyDnGKErKM8jCR7FZYGGWtp+U3sVpbT0PxqqtJNqQ/Ib4qH/0Nz+YzHbkMATFiiH b7cwDQIO63fDC4oJqFH0MmEHJddGUxw8qJue1ubu4t7UsVVOFgZcLZic63H/H5peUtHZ k4S5drzhaoQtsEpBp3FTLKhfB9zaQihGK0gTysvnqVETQfhtzYp64RMhhuNhjHE04ehI dj7TFYUV1cVutsX13BKP5GXLapwUfv9n/xDmBc6CihFPIiy65jovMVVzKbUgfLxB8iMi kVyq1eik8i+e0RqW3JBfyDC7lBHhVnO/Kdl2fJogLzZZZQCq2+SkXj6mUf5ldvPMRXc9 N00A== X-Gm-Message-State: AOAM532nr0QCEgk/CSNRkE2e+1bGBQGLIT83C/QPnMzlloQZ3ORwwEzA I9aYEwR2LdTbD7a7tIyHgwv4X+Rtzul61g== X-Google-Smtp-Source: ABdhPJzLHWx/WF5csArKPsQ8Bo+kapPKx1Hwka97z2042E+0OXXExXBroK1EsbAaR2sH7b37OMullQ== X-Received: by 2002:a17:902:f54e:b029:de:19f9:c45f with SMTP id h14-20020a170902f54eb02900de19f9c45fmr1811843plf.48.1612335099289; Tue, 02 Feb 2021 22:51:39 -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 i62sm978301pfe.84.2021.02.02.22.51.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 22:51:38 -0800 (PST) From: Hirokazu Honda To: libcamera-devel@lists.libcamera.org Date: Wed, 3 Feb 2021 06:51:26 +0000 Message-Id: <20210203065128.1738003-1-hiroh@chromium.org> X-Mailer: git-send-email 2.30.0.365.g02bc693789-goog MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 0/2] Add libyuv to subprojects and download_subprojects option 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" The first patch adds libyuv to subprojects. It downloads the libyuv directory to the subprojects directory and the code is built with. When I tried building libcamera with the patch in ChromiumOS built development, I noticed the wrap-based download is prohibited. It is reasonable to avoid a network issue. For such an environment, the meson option, download_subprojects, is introduced in the second patch. If it is false, the local library is used for the build. Fortunately, ChromiumOS has the ebuild for libyuv library. Hirokazu Honda (2): subprojects: Add libyuv and built if -Dandroid=enabled meson: Add download_subprojects option README.rst | 2 +- meson.build | 2 +- meson_options.txt | 5 +++++ src/android/meson.build | 21 +++++++++++++++++++++ subprojects/.gitignore | 1 + subprojects/libyuv.wrap | 4 ++++ 6 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 subprojects/.gitignore create mode 100644 subprojects/libyuv.wrap --- 2.30.0.365.g02bc693789-goog