duktape: call python2 to generate files

This commit is contained in:
CN_SZTL 2020-08-12 15:35:23 +08:00
parent 76860e876d
commit 969613e938
No known key found for this signature in database
GPG Key ID: 6850B6345C862176
2 changed files with 5 additions and 396802 deletions

View File

@ -22,6 +22,8 @@ PKG_MAINTAINER:=CN_SZTL <cnsztl@project-openwrt.eu.org>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python2
PKG_FIXUP:=autoreconf
PKG_USE_MIPS16:=0
PKG_BUILD_PARALLEL:=1
@ -56,6 +58,9 @@ endef
define Build/Compile
( \
cd $(PKG_BUILD_DIR); \
mkdir dist; \
$(STAGING_DIR_HOSTPKG)/bin/pip2 install PyYAML; \
$(STAGING_DIR_HOSTPKG)/bin/python2 util/dist.py; \
cd dist/source/src; \
$(TARGET_CC) -c -O3 -o duktape.o duktape.c; \
$(TARGET_CC) -c -O3 -o duk_module_node.o -I. ../extras/module-node/duk_module_node.c; \

File diff suppressed because it is too large Load Diff