[openimageio] Add feature python

This commit is contained in:
JackBoosY 2020-01-12 20:39:49 -08:00
parent 8fd3e75c01
commit 22419c5ed1
2 changed files with 10 additions and 2 deletions

View File

@ -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

View File

@ -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}