Skip to content

Commit

Permalink
[openimageio] Add dependency for feature tools (#17909)
Browse files Browse the repository at this point in the history
* [openimageio] Add dependency for feature tool

* Update version files

* Update vcpkg.json

* Update versions/o-/openimageio.json

* Add dependency for tools

* Re-update versions/o-/openimageio.json
  • Loading branch information
NancyLi1013 committed May 21, 2021
1 parent 1493595 commit d746e8f
Show file tree
Hide file tree
Showing 5 changed files with 123 additions and 61 deletions.
48 changes: 0 additions & 48 deletions ports/openimageio/CONTROL

This file was deleted.

25 changes: 13 additions & 12 deletions ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ else()
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
libraw USE_LIBRAW
opencolorio USE_OCIO
ffmpeg USE_FFMPEG
field3d USE_FIELD3D
freetype USE_FREETYPE
gif USE_GIF
opencv USE_OPENCV
openjpeg USE_OPENJPEG
webp USE_WEBP
pybind11 USE_PYTHON
tools OIIO_BUILD_TOOLS
FEATURES
libraw USE_LIBRAW
opencolorio USE_OCIO
ffmpeg USE_FFMPEG
field3d USE_FIELD3D
freetype USE_FREETYPE
gif USE_GIF
opencv USE_OPENCV
openjpeg USE_OPENJPEG
webp USE_WEBP
pybind11 USE_PYTHON
tools OIIO_BUILD_TOOLS
)

vcpkg_find_acquire_program(PYTHON3)
Expand Down Expand Up @@ -77,7 +78,7 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/OpenImageIO TARGET_PATH share/Op

if("tools" IN_LIST FEATURES)
vcpkg_copy_tools(
TOOL_NAMES iconvert idiff igrep iinfo maketx oiiotool
TOOL_NAMES iconvert idiff igrep iinfo maketx oiiotool iv
AUTO_CLEAN
)
endif()
Expand Down
104 changes: 104 additions & 0 deletions ports/openimageio/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"name": "openimageio",
"version": "2.2.10.0",
"port-version": 1,
"description": "A library for reading and writing images, and a bunch of related classes, utilities, and application.",
"homepage": "https://github.com/OpenImageIO/oiio",
"dependencies": [
"boost-algorithm",
"boost-asio",
"boost-config",
"boost-filesystem",
"boost-foreach",
"boost-random",
"boost-regex",
"boost-smart-ptr",
"boost-stacktrace",
"boost-static-assert",
"boost-system",
"boost-thread",
"boost-type-traits",
"fmt",
"libheif",
"libjpeg-turbo",
"libpng",
"openexr",
"robin-map",
"tiff",
"zlib"
],
"features": {
"ffmpeg": {
"description": "Enable ffmpeg support for openimageio",
"dependencies": [
{
"name": "ffmpeg",
"features": [
"avresample"
]
}
]
},
"field3d": {
"description": "Enable field3D support for openimageio",
"dependencies": [
"field3d"
]
},
"freetype": {
"description": "Enable freetype support for openimageio",
"dependencies": [
"freetype"
]
},
"gif": {
"description": "Enable giflib support for openimageio",
"dependencies": [
"giflib"
]
},
"libraw": {
"description": "Enable RAW image files support",
"dependencies": [
"libraw"
]
},
"opencolorio": {
"description": "Enable opencolorio support for openimageio",
"dependencies": [
"opencolorio"
]
},
"opencv": {
"description": "Enable opencv support for openimageio",
"dependencies": [
"opencv"
]
},
"openjpeg": {
"description": "Enable openjpeg support for openimageio",
"dependencies": [
"openjpeg"
]
},
"pybind11": {
"description": "Enable Python bindings support for openimageio",
"dependencies": [
"pybind11"
]
},
"tools": {
"description": "Build openimageio tools",
"dependencies": [
"opengl",
"qt5-base"
]
},
"webp": {
"description": "Enable libwebp support for openimageio",
"dependencies": [
"libwebp"
]
}
}
}
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -4522,7 +4522,7 @@
},
"openimageio": {
"baseline": "2.2.10.0",
"port-version": 0
"port-version": 1
},
"openjpeg": {
"baseline": "2.3.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/o-/openimageio.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2c57516ef37256b8b87a41801732e11b3ae1380c",
"version": "2.2.10.0",
"port-version": 1
},
{
"git-tree": "f3b1e2083feeb5968429f3349acaa46fa71f3054",
"version-string": "2.2.10.0",
Expand Down

0 comments on commit d746e8f

Please sign in to comment.