aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/portfile.cmake9
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/CMakeLists.txt14
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/main.cxx7
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/vcpkg.json17
4 files changed, 47 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/portfile.cmake
new file mode 100644
index 0000000..0122f05
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/portfile.cmake
@@ -0,0 +1,9 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_find_acquire_program(PKGCONFIG)
+set(ENV{PKG_CONFIG} "${PKGCONFIG}")
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${CURRENT_PORT_DIR}/project"
+)
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/CMakeLists.txt
new file mode 100644
index 0000000..a9e3405
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/CMakeLists.txt
@@ -0,0 +1,14 @@
+cmake_minimum_required(VERSION 3.16)
+project(whisper-cpp-test)
+
+find_package(whisper CONFIG REQUIRED)
+
+add_executable(test-cmake main.cxx)
+add_library(imported::whisper ALIAS whisper)
+target_link_libraries(test-cmake PRIVATE imported::whisper)
+
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(whisper-cpp whisper REQUIRED IMPORTED_TARGET)
+
+add_executable(test-pkconfig main.cxx)
+target_link_libraries(test-pkconfig PRIVATE PkgConfig::whisper-cpp)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/main.cxx b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/main.cxx
new file mode 100644
index 0000000..c9228dd
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/project/main.cxx
@@ -0,0 +1,7 @@
+#include <whisper.h>
+
+int main()
+{
+ auto context_params = whisper_context_default_params();
+ return 0;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/vcpkg.json
new file mode 100644
index 0000000..8f653d4
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-whisper-cpp/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "vcpkg-ci-whisper-cpp",
+ "version-string": "ci",
+ "description": "Port to validate whisper-cpp",
+ "homepage": "https://github.com/microsoft/vcpkg",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "whisper-cpp",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}