From: Thomas Preston Date: Wed, 20 Nov 2019 17:39:26 +0000 Subject: [Buildroot] [RFC PATCH v3 12/30] package/libcef: Add option to build cefsimple. In-Reply-To: <20191120173944.130142-1-thomas.preston@codethink.co.uk> References: <20191120173944.130142-1-thomas.preston@codethink.co.uk> Message-ID: <20191120173944.130142-13-thomas.preston@codethink.co.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net This primitive browser is an example application which uses libcef. Cc: Patrick Glaser Cc: Jon duSaint Cc: Enis Lavery Signed-off-by: Michael Drake Signed-off-by: Thomas Preston --- package/libcef/Config.in | 9 +++++++++ package/libcef/libcef.mk | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/package/libcef/Config.in b/package/libcef/Config.in index 6f091af5dd..d904c79e52 100644 --- a/package/libcef/Config.in +++ b/package/libcef/Config.in @@ -86,3 +86,12 @@ config BR2_PACKAGE_LIBCEF Google Chromium web browser. https://bitbucket.org/chromiumembedded/cef + +if BR2_PACKAGE_LIBCEF + +config BR2_PACKAGE_LIBCEF_CEFSIMPLE + bool "Enable libcef example application cefsimple." + help + Enables libcef example application cefsimple. + +endif diff --git a/package/libcef/libcef.mk b/package/libcef/libcef.mk index 0555ba4590..fb40d0e40a 100644 --- a/package/libcef/libcef.mk +++ b/package/libcef/libcef.mk @@ -208,6 +208,15 @@ 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/lib \ + $(@D)/$(LIBCEF_BUILD_OUTPUT_DIR)/cefsimple +endef +LIBCEF_POST_INSTALL_TARGET_HOOKS += LIBCEF_INSTALL_CEFSIMPLE +endif + # To build libcef, the CEF project source must be extracted in a # `cef` directory inside the Chromium source tree. We override # the buildroot default extract commands to get the desired source -- 2.20.1