1DOLLY 72PACKAGE quickjs3REQUIRES HOST runtime@045# QuickJS-ng from its pinned checkout, unchanged, as upstream's CMakeLists.txt6# builds it: the engine as a library (-lquickjs, <quickjs.h>) and upstream's7# qjs, the engine with its own std, os and bjson modules and nothing of Node.8# EMSCRIPTEN is upstream's switch for a target without threads: there is no9# os.Worker, and os.exec fails because nothing here forks.10FROM /v0.1.4/Dollyfile-system-tools 7f6c86fcc73e544e7007646eba2718bbc4d43b7f0516d9558e2dc500b1a05a801112REQUIRES HEADER libc13REQUIRES TOOL   ar14REQUIRES TOOL   cc15REQUIRES TOOL   cp16REQUIRES TOOL   make17REQUIRES TOOL   mkdir18REQUIRES TOOL   tar1920SOURCE /v0.1.4/dist/static/default/quickjs.tar 9fd1cf2a32d292362acf460b48b2332e1e4a8dd49e603b62ad9ba87bc1205af8 /tmp/quickjs.tar21SLOP tar -xf /tmp/quickjs.tar -C /2223FILE /tmp/quickjs.mk24    .RECIPEPREFIX := >25    SOURCE := /usr/src/quickjs26    ENGINE := dtoa libregexp libunicode quickjs27    COMMAND := qjs quickjs-libc gen/repl gen/standalone28    CFLAGS := -O2 -std=gnu11 -funsigned-char -DEMSCRIPTEN=1 -D_GNU_SOURCE -DQUICKJS_NG_BUILD -DNDEBUG29    objects = $(addprefix $(SOURCE)/,$(addsuffix .o,$(1)))30    all: /usr/bin/qjs31    $(SOURCE)/%.o: $(SOURCE)/%.c32    >cc $(CFLAGS) -c $< -o $@33    /usr/lib/libquickjs.a: $(call objects,$(ENGINE))34    >ar rcs $@ $^35    /usr/bin/qjs: $(call objects,$(COMMAND)) /usr/lib/libquickjs.a36    >cc $^ -o $@37SLOP make -j4 -f /tmp/quickjs.mk38SLOP cp /usr/src/quickjs/quickjs.h /usr/include/quickjs.h3940SLOP test "$(qjs -e 'console.log(6 * 7)')" = 4241# qjs --help ends with status 1.42SLOP mkdir -p /usr/share/man/cat143SLOP qjs --help > /usr/share/man/cat1/qjs.1 || test -s /usr/share/man/cat1/qjs.14445EXPORTS TOOL   qjs46EXPORTS LIB    quickjs /usr/lib/libquickjs.a47EXPORTS HEADER quickjs /usr/include/quickjs.h48FILE /usr/share/man/cat1/qjs.149FILE /usr/share/licenses/quickjs-ng/LICENSE50