aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-ggml
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/scripts/test_ports/vcpkg-ci-ggml
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-ggml')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-ggml/portfile.cmake14
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-ggml/vcpkg.json128
2 files changed, 142 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-ggml/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-ggml/portfile.cmake
new file mode 100644
index 0000000..7a16fdb
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-ggml/portfile.cmake
@@ -0,0 +1,14 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ggml-org/ggml
+ REF v0.9.1
+ SHA512 c31aeaaba328cd217f34191f1ce87720bb34dc39dc036f2ba8c92710636706f5be2cfcf86dc8c38ec737b020908da0e136447de10e7d9e6db698c812e7d21ae3
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}/examples/test-cmake"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-ggml/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-ggml/vcpkg.json
new file mode 100644
index 0000000..caddf96
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-ggml/vcpkg.json
@@ -0,0 +1,128 @@
+{
+ "name": "vcpkg-ci-ggml",
+ "version-string": "ci",
+ "description": "Port to validate ggml",
+ "homepage": "https://github.com/microsoft/vcpkg",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "$comment": "Lacks default (CPU) backend on arm64 windows",
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ {
+ "name": "vulkan",
+ "platform": "windows & arm64"
+ }
+ ]
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ {
+ "name": "blas",
+ "platform": "!(windows & static)"
+ },
+ {
+ "$comment": "Lacks pkg-config link libs for static builds",
+ "name": "cuda",
+ "platform": "windows & x64 & !uwp & !xbox & !static"
+ },
+ {
+ "name": "metal",
+ "platform": "osx"
+ },
+ {
+ "name": "opencl",
+ "platform": "!arm32"
+ },
+ {
+ "name": "openmp",
+ "platform": "!osx"
+ },
+ {
+ "name": "vulkan",
+ "platform": "!x86"
+ }
+ ],
+ "features": {
+ "blas": {
+ "description": "Enable BLAS support",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "blas"
+ ]
+ }
+ ]
+ },
+ "cuda": {
+ "description": "Enable CUDA support",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "cuda"
+ ]
+ }
+ ]
+ },
+ "metal": {
+ "description": "Enable Metal support",
+ "supports": "osx",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "metal"
+ ]
+ }
+ ]
+ },
+ "opencl": {
+ "description": "Enable OpenCL support",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "opencl"
+ ]
+ }
+ ]
+ },
+ "openmp": {
+ "description": "Enable OpenMP support",
+ "supports": "!osx",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "openmp"
+ ]
+ }
+ ]
+ },
+ "vulkan": {
+ "description": "Enable Vulkan support",
+ "supports": "!x86",
+ "dependencies": [
+ {
+ "name": "ggml",
+ "default-features": false,
+ "features": [
+ "vulkan"
+ ]
+ }
+ ]
+ }
+ }
+}