diff options
| author | JackBoosY <yuzaiyang@beyondsoft.com> | 2020-01-12 20:39:49 -0800 |
|---|---|---|
| committer | JackBoosY <yuzaiyang@beyondsoft.com> | 2020-01-12 20:40:59 -0800 |
| commit | 22419c5ed1b7843b2c1653112dc7fde7eefbc701 (patch) | |
| tree | 9abc48217b19fb6f574318a52aae43e21cdb73b5 | |
| parent | 8fd3e75c01d01c31b989f36173cd035508e09bee (diff) | |
| download | vcpkg-22419c5ed1b7843b2c1653112dc7fde7eefbc701.tar.gz vcpkg-22419c5ed1b7843b2c1653112dc7fde7eefbc701.zip | |
[openimageio] Add feature python
| -rw-r--r-- | ports/openimageio/CONTROL | 6 | ||||
| -rw-r--r-- | ports/openimageio/portfile.cmake | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/ports/openimageio/CONTROL b/ports/openimageio/CONTROL index 2f357834d..9cec72c8c 100644 --- a/ports/openimageio/CONTROL +++ b/ports/openimageio/CONTROL @@ -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 @@ -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
\ No newline at end of file diff --git a/ports/openimageio/portfile.cmake b/ports/openimageio/portfile.cmake index c0e58b20a..43ee950c2 100644 --- a/ports/openimageio/portfile.cmake +++ b/ports/openimageio/portfile.cmake @@ -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 @@ -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} |
