Skip to content

Commit

Permalink
[openimageio] Change feature name python to pybind11, add vcpkg_copy_…
Browse files Browse the repository at this point in the history
…tool_dependencies
  • Loading branch information
JackBoosY committed Jan 20, 2020
1 parent 2ae9ee4 commit e97271e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ports/openimageio/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ Feature: webp
Build-Depends: libwebp
Description: Enable libwebp support for openimageio

Feature: python
Feature: pybind11
Build-Depends: pybind11
Description: Enable pybind11 support for openimageio
Description: Enable Python bindings support for openimageio

Feature: tools
Description: Build openimageio tools
2 changes: 1 addition & 1 deletion ports/openimageio/fix-tools-path.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 9e54f67..d9c9437 100644
endif ()
set_target_properties (${_target_NAME} PROPERTIES FOLDER "Tools")
- install_targets (${_target_NAME})
+ install(TARGETS ${_target_NAME} RUNTIME DESTINATION tools)
+ install(TARGETS ${_target_NAME} RUNTIME DESTINATION tools/openimageio)
else ()
message (STATUS "${ColorRed}Disabling ${_target_NAME} ${ColorReset}")
endif ()
24 changes: 14 additions & 10 deletions ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ else()
endif()

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
libraw USE_LIBRAW
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
python USE_PYTHON
tools OIIO_BUILD_TOOLS
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 @@ -67,6 +67,10 @@ vcpkg_copy_pdbs()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/OpenImageIO)

if ("tools" IN_LIST FEATURES)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/openimageio)
endif()

# Clean
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/doc
${CURRENT_PACKAGES_DIR}/debug/doc
Expand Down

0 comments on commit e97271e

Please sign in to comment.