mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 11:39:01 +08:00
[openimageio] Change feature name python to pybind11, add vcpkg_copy_tool_dependencies
This commit is contained in:
parent
2ae9ee4955
commit
e97271e2e8
@ -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
|
@ -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 ()
|
||||
|
@ -37,7 +37,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
opencv USE_OPENCV
|
||||
openjpeg USE_OPENJPEG
|
||||
webp USE_WEBP
|
||||
python USE_PYTHON
|
||||
pybind11 USE_PYTHON
|
||||
tools OIIO_BUILD_TOOLS
|
||||
)
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user