From patchwork Mon Apr 1 11:03:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kieran Bingham X-Patchwork-Id: 826 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8A5F8600F9 for ; Mon, 1 Apr 2019 13:03:27 +0200 (CEST) Received: from Q.imgcgcw.net (unknown [147.50.13.10]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 63C8A2F9; Mon, 1 Apr 2019 13:03:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1554116606; bh=/vil8dN3zB7nipsDP2qBuW5qyuDdGzC31qnaHicPqQ0=; h=From:To:Cc:Subject:Date:From; b=k3JfDYRXyHOQZ1KW66FsGRbvly1MPKP6BQ+uyOP/rp+6roaFtsOWkobApGr4mLerP BWQL2vOTOj2dYaP1KDdzO4ejFyMLegbl+WMy1ip4GMhqOm926TTH1sWvW8bqrJ81Zd FRXnE4kM6JYOLwBEEhKaf+15cY6MpFereimMqgeY= From: Kieran Bingham To: LibCamera Devel Date: Mon, 1 Apr 2019 18:03:11 +0700 Message-Id: <20190401110315.4148-1-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] Cleanup and non-GNU C library support X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Apr 2019 11:03:27 -0000 Two cleanups to the meson build and options, followed by two fixes to repair compilation on toolchains which use non-GNU C Libraries. The utils component is expanded to provide it's own .cpp file and associated documentation is added along with it. Kieran Bingham (4): meson: Re-order the optional components meson: options: Document the options libcamera: utils: Use internal basename implementation. libcamera: utils: Use internal secure_getenv() implementation meson.build | 11 +++--- meson_options.txt | 9 +++-- src/libcamera/include/utils.h | 4 +++ src/libcamera/log.cpp | 6 ++-- src/libcamera/meson.build | 1 + src/libcamera/utils.cpp | 66 +++++++++++++++++++++++++++++++++++ 6 files changed, 88 insertions(+), 9 deletions(-) create mode 100644 src/libcamera/utils.cpp