Use Node JS for building duktape library (#248)

* Use Node JS for building duktape library

* Remove Python 2 dependency

* Inherit PATH from environment in Actions

Remove build cache of the msys2 installation in Travis CI.

* Remove old command
This commit is contained in:
Tindy X authored and GitHub committed 2020-09-19 03:05:26 +08:00
1 parent 629b1bf222
commit c0b62062d9
3 files changed
+19 -13

No files matched your search

+4 -5
View File
@@ -15,10 +15,9 @@ cd ..
git clone https://github.com/svaarala/duktape --depth=1
cd duktape
pip2 install PyYAML
mkdir dist
python2 util/dist.py
cd dist/source/src
make -C src-tools
node src-tools/index.js dist --output-directory dist
cd dist/src
gcc -c -O3 -o duktape.o duktape.c
gcc -c -O3 -o duk_module_node.o -I. ../extras/module-node/duk_module_node.c
ar cr libduktape.a duktape.o
@@ -26,7 +25,7 @@ ar cr libduktape_module.a duk_module_node.o
install -m0644 ./*.a "$MINGW_PREFIX/lib"
install -m0644 ./duk*.h "$MINGW_PREFIX/include"
install -m0644 ../extras/module-node/duk_module_node.h "$MINGW_PREFIX/include"
cd ../../../..
cd ../../..
git clone https://github.com/Tencent/rapidjson --depth=1
cd rapidjson