2020-11-06 23:51:14 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# quickjs
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-05 07:44:41 +01:00
|
|
|
QUICKJS_VERSION = 2020-11-08
|
2020-11-06 23:51:14 +01:00
|
|
|
QUICKJS_SOURCE = quickjs-$(QUICKJS_VERSION).tar.xz
|
|
|
|
QUICKJS_SITE = https://bellard.org/quickjs
|
|
|
|
QUICKJS_LICENSE = MIT
|
|
|
|
QUICKJS_INSTALL_STAGING = YES
|
|
|
|
|
2021-01-03 21:19:59 +01:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
|
|
QUICKJS_EXTRA_LIBS += -latomic
|
|
|
|
endif
|
|
|
|
|
2020-11-06 23:51:14 +01:00
|
|
|
define QUICKJS_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
CROSS_PREFIX="$(TARGET_CROSS)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
all
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QUICKJS_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
CROSS_PREFIX="$(TARGET_CROSS)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
DESTDIR=$(STAGING_DIR) \
|
|
|
|
STRIP=/bin/true \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define QUICKJS_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
|
|
|
CROSS_PREFIX="$(TARGET_CROSS)" \
|
2021-01-03 21:19:59 +01:00
|
|
|
EXTRA_LIBS="$(QUICKJS_EXTRA_LIBS)" \
|
2020-11-06 23:51:14 +01:00
|
|
|
DESTDIR=$(TARGET_DIR) \
|
|
|
|
STRIP=/bin/true \
|
|
|
|
prefix=/usr \
|
|
|
|
install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|