Skip to content

Commit

Permalink
Merge branch 'main' into port/glslang
Browse files Browse the repository at this point in the history
  • Loading branch information
luncliff authored Oct 5, 2024
2 parents 235a506 + 85cd010 commit 3191edd
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
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 @@ -76,6 +76,7 @@
"supports": "x64 & windows",
"dependencies": [
"glslang",
"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 @@ -188,6 +188,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
}
]
}

0 comments on commit 3191edd

Please sign in to comment.