From patchwork Thu Oct 17 15:29:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Drake X-Patchwork-Id: 1178742 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=codethink.co.uk Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46vCn61Nv0z9sQq for ; Fri, 18 Oct 2019 02:30:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D7B21886EF; Thu, 17 Oct 2019 15:30:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i8Up2dPXVw2G; Thu, 17 Oct 2019 15:30:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 076A2886CF; Thu, 17 Oct 2019 15:30:15 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id DC6591BF568 for ; Thu, 17 Oct 2019 15:29:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id D9D818699B for ; Thu, 17 Oct 2019 15:29:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id no5DKt_Wzh0p for ; Thu, 17 Oct 2019 15:29:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from imap1.codethink.co.uk (imap1.codethink.co.uk [176.9.8.82]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 398D086901 for ; Thu, 17 Oct 2019 15:29:43 +0000 (UTC) Received: from [167.98.27.226] (helo=ts007-build.ts007.codethink.co.uk) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1iL7if-0002Zy-1D; Thu, 17 Oct 2019 16:29:41 +0100 From: Michael Drake To: buildroot@buildroot.org Date: Thu, 17 Oct 2019 16:29:14 +0100 Message-Id: <20191017152929.49153-16-michael.drake@codethink.co.uk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191017152929.49153-1-michael.drake@codethink.co.uk> References: <20191017152929.49153-1-michael.drake@codethink.co.uk> MIME-Version: 1.0 Subject: [Buildroot] [RFC PATCH v2 15/30] package/libcef: Add option to build cefclient and cefsimple. X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jon duSaint , Michael Drake , Patrick Glaser , Thomas Preston , Enis Lavery Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Thomas Preston Cc: Patrick Glaser Cc: Jon duSaint Cc: Enis Lavery Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- package/libcef/Config.in | 10 ++++++++++ package/libcef/libcef.mk | 18 ++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/package/libcef/Config.in b/package/libcef/Config.in index 85a993bb93..7bdaf17ffd 100644 --- a/package/libcef/Config.in +++ b/package/libcef/Config.in @@ -58,6 +58,16 @@ config BR2_PACKAGE_LIBCEF if BR2_PACKAGE_LIBCEF +config BR2_PACKAGE_LIBCEF_CEFSIMPLE + bool "Enable libcef example application cefsimple." + help + Enables libcef example application cefsimple. + +config BR2_PACKAGE_LIBCEF_CEFCLIENT + bool "Enable libcef example application cefclient." + help + Enables libcef example application cefclient. + config BR2_PACKAGE_LIBCEF_TARGET_ARCH string default "arm" if BR2_arm diff --git a/package/libcef/libcef.mk b/package/libcef/libcef.mk index fe69cabb2c..b20c003a90 100644 --- a/package/libcef/libcef.mk +++ b/package/libcef/libcef.mk @@ -204,6 +204,24 @@ else LIBCEF_GN_DEFINES += use_pulseaudio=false endif +ifeq ($(BR2_PACKAGE_LIBCEF_CEFSIMPLE),y) +LIBCEF_BUILD_TARGETS += cefsimple +define LIBCEF_INSTALL_CEFSIMPLE + $(INSTALL) -m 0755 -D -t $(TARGET_DIR)/usr/bin \ + $(@D)/$(LIBCEF_BUILD_OUTPUT_DIR)/cefsimple +endef +LIBCEF_POST_INSTALL_TARGET_HOOKS += LIBCEF_INSTALL_CEFSIMPLE +endif + +ifeq ($(BR2_PACKAGE_LIBCEF_CEFCLIENT),y) +LIBCEF_BUILD_TARGETS += cefclient +define LIBCEF_INSTALL_CEFCLIENT + $(INSTALL) -m 0755 -D -t $(TARGET_DIR)/usr/bin \ + $(@D)/$(LIBCEF_BUILD_OUTPUT_DIR)/cefclient +endef +LIBCEF_POST_INSTALL_TARGET_HOOKS += LIBCEF_INSTALL_CEFCLIENT +endif + define LIBCEF_EXTRACT_CMDS # Extract Chromium source code tar -C $(@D) \