Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] duktape: new package
Date: Sun, 3 Dec 2017 23:42:33 +0100	[thread overview]
Message-ID: <20171203234233.1393250e@windsurf.home> (raw)
In-Reply-To: <20171103195343.29670-1-fontaine.fabrice@gmail.com>

Hello,

On Fri,  3 Nov 2017 20:53:43 +0100, Fabrice Fontaine wrote:
> Duktape is an embeddable Javascript engine, with a focus on
> portability and compact footprint.
> 
> Duktape is easy to integrate into a C/C++ project: add duktape.c,
> duktape.h, and duk_config.h to your build, and use the Duktape API
> to call Ecmascript functions from C code and vice versa.
> 
> http://www.duktape.org
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

In addition to the comments already made by Peter and me, I have one
more comment below.


> +# For static library, nothing is provided by duktape so build and install it
> +ifeq ($(BR2_STATIC_LIBS)$(BR2_SHARED_STATIC_LIBS),y)
> +define DUKTAPE_BUILD_STATIC
> +	$(TARGET_CC) $(TARGET_CFLAGS) -c $(@D)/src/duktape.c \
> +		-o $(@D)/libduktape.a
> +	$(TARGET_CC) $(TARGET_CFLAGS) -g -c $(@D)/src/duktape.c \
> +		-o $(@D)/libduktaped.a
> +endef
> +
> +define DUKTAPE_INSTALL_STATIC
> +	$(INSTALL) -m 0644 -D $(@D)/libduktape.a \
> +		$(STAGING_DIR)/usr/lib/libduktape.a
> +	$(INSTALL) -m 0644 -D $(@D)/libduktaped.a \
> +		$(STAGING_DIR)/usr/lib/libduktaped.a
> +endef
> +endif

Is duktape build system doesn't support building/installing a static
library, then just don't support it (or submit a patch upstream to add
that support). In the mean time, make the package depends
on !BR2_STATIC_LIBS and just don't support static library building.

I'll mark your patch as Changes Requested in patchwork.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

      parent reply	other threads:[~2017-12-03 22:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-03 19:53 [Buildroot] [PATCH 1/1] duktape: new package Fabrice Fontaine
2017-11-03 21:35 ` Thomas Petazzoni
2017-11-03 22:20   ` Fabrice Fontaine
2017-11-13 20:55     ` Peter Korsgaard
2017-12-03 22:42 ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171203234233.1393250e@windsurf.home \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox