Files

54 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2023-01-28 01:28:48 +08:00
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=quickjspp
2023-04-23 09:28:00 +08:00
PKG_RELEASE:=1
2023-01-28 01:28:48 +08:00
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ftk/quickjspp.git
2024-06-21 04:17:56 +08:00
PKG_SOURCE_DATE:=2023-12-21
PKG_SOURCE_VERSION:=0c00c48895919fc02da3f191a2da06addeb07f09
2025-08-06 20:53:43 +08:00
PKG_MIRROR_HASH:=34cb61901a593c2315b542ccbfbb78307136553956e2c35582ac4ad6ac592df4
2023-01-28 01:28:48 +08:00
PKG_MAINTAINER:=Tianling Shen <cnsztl@immortalwrt.org>
PKG_BUILD_PARALLEL:=1
CMAKE_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/libquickjs
SECTION:=lib
CATEGORY:=Libraries
URL:=https://bellard.org/quickjs/
TITLE:=A small and embeddable Javascript engine
# mips(el) & glibc require it
DEPENDS:=+libatomic
endef
define Package/libquickjs/description
QuickJS is a small and embeddable Javascript engine. It supports the
ES2020 specification including modules, asynchronous generators,
proxies and BigInt.
It optionally supports mathematical extensions such as big decimal
floating point numbers (BigDecimal), big binary floating point
numbers (BigFloat) and operator overloading.
endef
CMAKE_OPTIONS+= \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTING=OFF \
-DCMAKE_EXE_LINKER_FLAGS="-latomic"
define Package/libquickjs/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libquickjs.so $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libquickjs))