[openimageio] Add opencolorio as feature (#8210)

This commit is contained in:
NancyLi1013 2019-09-17 09:31:20 -07:00 committed by Curtis J Bezault
parent 731628c913
commit baed10c1a4
2 changed files with 10 additions and 9 deletions

View File

@ -1,5 +1,5 @@
Source: openimageio
Version: 2019-08-08-2
Version: 2019-08-08-3
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, 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
@ -7,3 +7,7 @@ Build-Depends: libjpeg-turbo, tiff, libpng, openexr, boost-thread, boost-smart-p
Feature: libraw
Build-Depends: libraw
Description: Enable RAW image files support
Feature: opencolorio
Build-Depends: opencolorio
Description: Enable opencolorio support for openimageio

View File

@ -24,16 +24,15 @@ else()
set(LINKSTATIC OFF)
endif()
# Features
set(USE_LIBRAW OFF)
if("libraw" IN_LIST FEATURES)
set(USE_LIBRAW ON)
endif()
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
libraw USE_LIBRAW
opencolorio USE_OCIO
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
OPTIONS ${FEATURE_OPTIONS}
-DOIIO_BUILD_TOOLS=OFF
-DOIIO_BUILD_TESTS=OFF
-DHIDE_SYMBOLS=ON
@ -42,9 +41,7 @@ vcpkg_configure_cmake(
-DUSE_FIELD3D=OFF
-DUSE_FREETYPE=OFF
-DUSE_GIF=OFF
-DUSE_LIBRAW=${USE_LIBRAW}
-DUSE_NUKE=OFF
-DUSE_OCIO=OFF
-DUSE_OPENCV=OFF
-DUSE_OPENJPEG=OFF
-DUSE_OPENSSL=OFF