aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/quickjs-ng
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/quickjs-ng
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/quickjs-ng')
-rw-r--r--vcpkg/ports/quickjs-ng/portfile.cmake30
-rw-r--r--vcpkg/ports/quickjs-ng/usage4
-rw-r--r--vcpkg/ports/quickjs-ng/vcpkg.json17
3 files changed, 51 insertions, 0 deletions
diff --git a/vcpkg/ports/quickjs-ng/portfile.cmake b/vcpkg/ports/quickjs-ng/portfile.cmake
new file mode 100644
index 0000000..cbe18bc
--- /dev/null
+++ b/vcpkg/ports/quickjs-ng/portfile.cmake
@@ -0,0 +1,30 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO quickjs-ng/quickjs
+ REF v${VERSION}
+ SHA512 e099502b50b2483b29fcad16c21e03164cba86181a90b2957774117138a0c7af32a0649f1468d18c20b33725fb30418314b49be54d3a7ad2b838e5578018c61d
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/quickjs PACKAGE_NAME qjs)
+
+vcpkg_copy_tools(
+ TOOL_NAMES qjs qjsc
+ AUTO_CLEAN
+)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/quickjs-ng/usage b/vcpkg/ports/quickjs-ng/usage
new file mode 100644
index 0000000..836e8a6
--- /dev/null
+++ b/vcpkg/ports/quickjs-ng/usage
@@ -0,0 +1,4 @@
+quickjs-ng provides CMake targets:
+
+ find_package(qjs CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE qjs)
diff --git a/vcpkg/ports/quickjs-ng/vcpkg.json b/vcpkg/ports/quickjs-ng/vcpkg.json
new file mode 100644
index 0000000..605e838
--- /dev/null
+++ b/vcpkg/ports/quickjs-ng/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "quickjs-ng",
+ "version": "0.10.1",
+ "description": "QuickJS, the Next Generation: a mighty JavaScript engine. A small and embeddable JavaScript engine supporting the latest ECMAScript specification.",
+ "homepage": "https://github.com/quickjs-ng/quickjs",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}