mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-30 01:05:13 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
0d155c70be
commit
32600acc60
14258 files changed
+3954570
No files matched your search
@@ -0,0 +1,53 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-only
|
||||
#
|
||||
# Copyright (C) 2021 ImmortalWrt.org
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=quickjspp
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/ftk/quickjspp.git
|
||||
PKG_SOURCE_DATE:=2023-12-21
|
||||
PKG_SOURCE_VERSION:=01cdd3047ced48265b127790848a0ca88204f2c7
|
||||
PKG_MIRROR_HASH:=skip
|
||||
|
||||
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))
|
||||
@@ -0,0 +1,15 @@
|
||||
--- a/quickjs/quickjs.c
|
||||
+++ b/quickjs/quickjs.c
|
||||
@@ -76,6 +76,12 @@
|
||||
#define CONFIG_STACK_CHECK
|
||||
#endif
|
||||
|
||||
+#ifndef FE_UPWARD
|
||||
+#define FE_UPWARD 0x800
|
||||
+#endif
|
||||
+#ifndef FE_DOWNWARD
|
||||
+#define FE_DOWNWARD 0x400
|
||||
+#endif
|
||||
|
||||
/* dump object free */
|
||||
//#define DUMP_FREE
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/quickjs/CMakeLists.txt
|
||||
+++ b/quickjs/CMakeLists.txt
|
||||
@@ -22,6 +22,6 @@ endif()
|
||||
include(GNUInstallDirs)
|
||||
install(TARGETS quickjs
|
||||
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/quickjs
|
||||
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}/quickjs
|
||||
- LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/quickjs
|
||||
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||
)
|
||||
Reference in new issue
Block a user