aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/test_ports/vcpkg-ci-openimageio
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-openimageio
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/test_ports/vcpkg-ci-openimageio')
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-openimageio/portfile.cmake4
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/CMakeLists.txt7
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp7
-rw-r--r--vcpkg/scripts/test_ports/vcpkg-ci-openimageio/vcpkg.json48
4 files changed, 66 insertions, 0 deletions
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/portfile.cmake b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/portfile.cmake
new file mode 100644
index 0000000..bc78596
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/portfile.cmake
@@ -0,0 +1,4 @@
+set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
+
+vcpkg_cmake_configure(SOURCE_PATH "${CURRENT_PORT_DIR}/project")
+vcpkg_cmake_build()
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/CMakeLists.txt b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/CMakeLists.txt
new file mode 100644
index 0000000..09db055
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/CMakeLists.txt
@@ -0,0 +1,7 @@
+cmake_minimum_required(VERSION 3.7)
+project(vcpkg-ci-openimageio CXX)
+
+add_executable(main main.cpp)
+
+find_package(OpenImageIO CONFIG REQUIRED)
+target_link_libraries(main PRIVATE OpenImageIO::OpenImageIO)
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp
new file mode 100644
index 0000000..c0f900e
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/project/main.cpp
@@ -0,0 +1,7 @@
+#include <OpenImageIO/imageio.h>
+
+int main(int, char**)
+{
+ auto inp = OIIO::ImageInput::open("none");
+ return inp ? 0 : 1;
+}
diff --git a/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/vcpkg.json b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/vcpkg.json
new file mode 100644
index 0000000..73d989b
--- /dev/null
+++ b/vcpkg/scripts/test_ports/vcpkg-ci-openimageio/vcpkg.json
@@ -0,0 +1,48 @@
+{
+ "name": "vcpkg-ci-openimageio",
+ "version-string": "ci",
+ "port-version": 1,
+ "description": "OpenImageIO testing within CI.",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "openimageio",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ],
+ "default-features": [
+ "openimageio-features"
+ ],
+ "features": {
+ "openimageio-features": {
+ "description": "Enable OpenImageIO features",
+ "dependencies": [
+ {
+ "name": "openimageio",
+ "default-features": false,
+ "features": [
+ "ffmpeg",
+ "freetype",
+ "gif",
+ "libheif",
+ "libraw",
+ "opencolorio",
+ "opencv",
+ "openjpeg",
+ {
+ "name": "pybind11",
+ "platform": "!(windows & static) & !uwp & !mingw"
+ },
+ "tools",
+ "viewer",
+ "webp"
+ ]
+ }
+ ]
+ }
+ }
+}