From 85cd0106878f99be0418e05996ee1ef721b33b87 Mon Sep 17 00:00:00 2001 From: PARK DongHa Date: Sun, 6 Oct 2024 00:13:59 +0900 Subject: [PATCH] [smol-v] create a new port (#284) * [smol-v] create a new port * https://github.com/aras-p/smol-v/commit/1de5258f0d55b160be5fabb1e3c88ef3dac19eba * ci: test smol-v --- ports/smol-v/CMakeLists.txt | 15 +++++++++++++++ ports/smol-v/portfile.cmake | 20 ++++++++++++++++++++ ports/smol-v/vcpkg.json | 22 ++++++++++++++++++++++ test/self-hosted.json | 1 + versions/baseline.json | 4 ++++ versions/s-/smol-v.json | 9 +++++++++ 6 files changed, 71 insertions(+) create mode 100644 ports/smol-v/CMakeLists.txt create mode 100644 ports/smol-v/portfile.cmake create mode 100644 ports/smol-v/vcpkg.json create mode 100644 versions/s-/smol-v.json diff --git a/ports/smol-v/CMakeLists.txt b/ports/smol-v/CMakeLists.txt new file mode 100644 index 00000000..c7daf664 --- /dev/null +++ b/ports/smol-v/CMakeLists.txt @@ -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} +) diff --git a/ports/smol-v/portfile.cmake b/ports/smol-v/portfile.cmake new file mode 100644 index 00000000..49212e06 --- /dev/null +++ b/ports/smol-v/portfile.cmake @@ -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") diff --git a/ports/smol-v/vcpkg.json b/ports/smol-v/vcpkg.json new file mode 100644 index 00000000..6ff4f288 --- /dev/null +++ b/ports/smol-v/vcpkg.json @@ -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" + } + } +} diff --git a/test/self-hosted.json b/test/self-hosted.json index 279801bc..25403bd3 100644 --- a/test/self-hosted.json +++ b/test/self-hosted.json @@ -75,6 +75,7 @@ "description": "Install Vulkan related ports", "supports": "x64 & windows", "dependencies": [ + "smol-v", "vulkan", "vulkan-headers" ] diff --git a/versions/baseline.json b/versions/baseline.json index 55a7e4f8..61898453 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -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 diff --git a/versions/s-/smol-v.json b/versions/s-/smol-v.json new file mode 100644 index 00000000..2b107b68 --- /dev/null +++ b/versions/s-/smol-v.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "eda5ade4b972b0331c7ad4e8aa65e6c849ef2d21", + "version-date": "2024-09-26", + "port-version": 0 + } + ] +}