diff --git a/recipes/quickjs/conda-forge.yml b/recipes/quickjs/conda-forge.yml new file mode 100644 index 0000000000000..4d6497a053a2a --- /dev/null +++ b/recipes/quickjs/conda-forge.yml @@ -0,0 +1,7 @@ +bot: + automerge: true +build_platform: + linux_aarch64: linux_64 + linux_ppc64le: linux_64 + osx_arm64: osx_64 +test: native_and_emulated diff --git a/recipes/quickjs/recipe.yaml b/recipes/quickjs/recipe.yaml new file mode 100644 index 0000000000000..b20b54206bf6e --- /dev/null +++ b/recipes/quickjs/recipe.yaml @@ -0,0 +1,56 @@ +context: + version: "2025.09.13" + commit: f1139494d18a2053630c5ed3384a42bb70db3c53 + +package: + name: quickjs + version: ${{ version }} + +source: + url: https://github.com/bellard/quickjs/archive/${{ commit }}.tar.gz + sha256: 0364fd5136857117c8204c2f0c203b71b25b9f025dc1a0605ea51f0fd7f92511 + +build: + number: 0 + skip: + - win + script: + - make -j${CPU_COUNT} CC="${CC}" PREFIX="${PREFIX}" + - make test CC="${CC}" + - make install PREFIX="${PREFIX}" + +requirements: + build: + - ${{ compiler('c') }} + - ${{ stdlib('c') }} + - make + +tests: + - script: + - qjs -e "console.log('hello')" + - package_contents: + bin: + - qjs + - qjsc + include: + - quickjs/quickjs.h + - quickjs/quickjs-libc.h + files: + - lib/quickjs/libquickjs.a + +about: + homepage: https://bellard.org/quickjs/ + summary: A small and embeddable JavaScript engine + description: | + QuickJS is a small and embeddable JavaScript engine. It supports the + ES2023 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. + license: MIT + license_file: LICENSE + repository: https://github.com/bellard/quickjs + +extra: + recipe-maintainers: + - chrisburr