Skip to content
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

[smol-v] create a new port #284

Merged
merged 2 commits into from
Oct 5, 2024
Merged
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
15 changes: 15 additions & 0 deletions ports/smol-v/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.22)
project(smol-v CXX)
include(GNUInstallDirs)

add_library(smol-v
source/smolv.h
source/smolv.cpp
)

install(TARGETS smol-v
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(FILES source/smolv.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
20 changes: 20 additions & 0 deletions ports/smol-v/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO aras-p/smol-v
REF 1de5258f0d55b160be5fabb1e3c88ef3dac19eba
SHA512 6a829de84c5e6c68a5efd78c8a2ae192db4a1ea97e8529d405b1e46391e3955c3779d2b12c47eee881edc7f1ba63ce8662077caf12b566680451ee2a1ad7f698
HEAD_REF main
)
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")

vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()

file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/share"
)

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt")
22 changes: 22 additions & 0 deletions ports/smol-v/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "smol-v",
"version-date": "2024-09-26",
"description": "SMOL-V: like Vulkan/Khronos SPIR-V, but smaller",
"homepage": "https://github.com/aras-p/smol-v",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"tools": {
"description": "Build cpuinfo command-line tools"
}
}
}
1 change: 1 addition & 0 deletions test/self-hosted.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"description": "Install Vulkan related ports",
"supports": "x64 & windows",
"dependencies": [
"smol-v",
"vulkan",
"vulkan-headers"
]
Expand Down
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@
"baseline": "2024-03-22",
"port-version": 0
},
"smol-v": {
"baseline": "2024-09-26",
"port-version": 0
},
"sse2neon": {
"baseline": "2024-08-17",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/s-/smol-v.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "eda5ade4b972b0331c7ad4e8aa65e6c849ef2d21",
"version-date": "2024-09-26",
"port-version": 0
}
]
}
Loading