small-package/quickjspp/Makefile

44 lines
1009 B
Makefile
Raw Normal View History

2021-09-24 23:37:27 +08:00
# SPDX-License-Identifier: GPL-3.0-only
#
# Copyright (C) 2021 ImmortalWrt.org
include $(TOPDIR)/rules.mk
PKG_NAME:=quickjspp
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/ftk/quickjspp.git
2021-12-04 09:01:13 +08:00
PKG_SOURCE_DATE:=2021-11-30
PKG_SOURCE_VERSION:=dcfe28cab7805c22a172dc5bd0d4aad353ea3fc9
2021-09-24 23:37:27 +08:00
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/quickjspp
SECTION:=lib
CATEGORY:=Libraries
URL:=https://github.com/ftk/quickjspp
TITLE:=QuickJS wrapper for C++
DEPENDS:=+libatomic +libpthread
2022-01-03 20:32:16 +08:00
BUILDONLY:=1
2021-09-24 23:37:27 +08:00
endef
define Package/quickjspp/description
QuickJSPP is QuickJS wrapper for C++. It allows you to easily embed
Javascript engine into your program.
endef
2021-12-04 09:01:13 +08:00
CMAKE_OPTIONS += \
-DBUILD_TESTING=OFF \
-DCMAKE_EXE_LINKER_FLAGS="-latomic" \
-DCMAKE_REQUIRED_LIBRARIES=stdc++fs
2021-09-24 23:37:27 +08:00
$(eval $(call BuildPackage,quickjspp))