Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ports/openimageio/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ Description: Enable RAW image files support

Feature: opencolorio
Build-Depends: opencolorio
Description: Enable opencolorio support for openimageio
Description: Enable opencolorio support for openimageio

Feature: python3
Build-Depends: python3, pybind11
Description: Build OpenImageIO Python 3 bindings
19 changes: 15 additions & 4 deletions ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include(vcpkg_common_definitions)
include(vcpkg_common_functions)

vcpkg_from_github(
Expand Down Expand Up @@ -30,14 +31,25 @@ endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
libraw USE_LIBRAW
opencolorio USE_OCIO
opencolorio USE_OCIO
)

if("python3" IN_LIST FEATURES)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS_PYTHON
python3 USE_PYTHON
)

vcpkg_find_acquire_program(PYTHON3)

get_filename_component(PYTHON3_DIR ${PYTHON3} PATH)
vcpkg_add_to_path(${PYTHON3_DIR})
endif()


vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS ${FEATURE_OPTIONS}
-DOIIO_BUILD_TOOLS=OFF
OPTIONS ${FEATURE_OPTIONS} ${FEATURE_OPTIONS_PYTHON}
-DOIIO_BUILD_TESTS=OFF
-DHIDE_SYMBOLS=ON
-DUSE_DICOM=OFF
Expand All @@ -50,7 +62,6 @@ vcpkg_configure_cmake(
-DUSE_OPENJPEG=OFF
-DUSE_OPENSSL=OFF
-DUSE_PTEX=OFF
-DUSE_PYTHON=OFF
-DUSE_QT=OFF
-DUSE_WEBP=OFF
-DBUILDSTATIC=${BUILDSTATIC}
Expand Down