Skip to content

Commit

Permalink
[openimageio] Add feature python
Browse files Browse the repository at this point in the history
  • Loading branch information
JackBoosY committed Jan 13, 2020
1 parent 8fd3e75 commit 22419c5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ports/openimageio/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: openimageio
Version: 2.1.9.0
Homepage: https://github.com/OpenImageIO/oiio
Description: A library for reading and writing images, and a bunch of related classes, utilities, and application
Build-Depends: libjpeg-turbo, tiff, libpng, openexr, pybind11, boost-thread, boost-smart-ptr, boost-foreach, boost-regex, boost-type-traits, boost-static-assert, boost-unordered, boost-config, boost-algorithm, boost-filesystem, boost-system, boost-thread, boost-asio, boost-random, robin-map, boost-stacktrace
Build-Depends: libjpeg-turbo, tiff, libpng, openexr, boost-thread, boost-smart-ptr, boost-foreach, boost-regex, boost-type-traits, boost-static-assert, boost-unordered, boost-config, boost-algorithm, boost-filesystem, boost-system, boost-thread, boost-asio, boost-random, robin-map, boost-stacktrace

Feature: libraw
Build-Depends: libraw
Expand Down Expand Up @@ -40,5 +40,9 @@ Feature: webp
Build-Depends: libwebp
Description: Enable libwebp support for openimageio

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

Feature: tools
Description: Build openimageio tools
6 changes: 5 additions & 1 deletion ports/openimageio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
opencv USE_OPENCV
openjpeg USE_OPENJPEG
webp USE_WEBP
python USE_PYTHON
tools OIIO_BUILD_TOOLS
)

vcpkg_find_acquire_program(PYTHON3)
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
vcpkg_add_to_path("${PYTHON3_DIR}")

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
Expand All @@ -48,7 +53,6 @@ vcpkg_configure_cmake(
-DHIDE_SYMBOLS=ON
-DUSE_DCMTK=OFF
-DUSE_NUKE=OFF
-DUSE_PYTHON=OFF
-DUSE_QT=OFF
-DUSE_PTEX=OFF
-DLINKSTATIC=${LINKSTATIC}
Expand Down

0 comments on commit 22419c5

Please sign in to comment.