Skip to content

[quickjs-ng] New port #46855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions ports/quickjs-ng/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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")
4 changes: 4 additions & 0 deletions ports/quickjs-ng/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
quickjs-ng provides CMake targets:

find_package(qjs CONFIG REQUIRED)
target_link_libraries(main PRIVATE qjs)
17 changes: 17 additions & 0 deletions ports/quickjs-ng/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8148,6 +8148,10 @@
"baseline": "1.15.1",
"port-version": 9
},
"quickjs-ng": {
"baseline": "0.10.1",
"port-version": 0
},
"quill": {
"baseline": "10.0.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/q-/quickjs-ng.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "e7b0e61f6029cc44b81a9b7ee40e8195e963a999",
"version": "0.10.1",
"port-version": 0
}
]
}