[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 Source: openimageio
Version: 2019-08-08-2 Version: 2019-08-08-3
Homepage: https://github.com/OpenImageIO/oiio Homepage: https://github.com/OpenImageIO/oiio
Description: A library for reading and writing images, and a bunch of related classes, utilities, and application 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 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 Feature: libraw
Build-Depends: libraw Build-Depends: libraw
Description: Enable RAW image files support 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) set(LINKSTATIC OFF)
endif() endif()
# Features vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
set(USE_LIBRAW OFF) libraw USE_LIBRAW
if("libraw" IN_LIST FEATURES) opencolorio USE_OCIO
set(USE_LIBRAW ON) )
endif()
vcpkg_configure_cmake( vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH} SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA PREFER_NINJA
OPTIONS OPTIONS ${FEATURE_OPTIONS}
-DOIIO_BUILD_TOOLS=OFF -DOIIO_BUILD_TOOLS=OFF
-DOIIO_BUILD_TESTS=OFF -DOIIO_BUILD_TESTS=OFF
-DHIDE_SYMBOLS=ON -DHIDE_SYMBOLS=ON
@ -42,9 +41,7 @@ vcpkg_configure_cmake(
-DUSE_FIELD3D=OFF -DUSE_FIELD3D=OFF
-DUSE_FREETYPE=OFF -DUSE_FREETYPE=OFF
-DUSE_GIF=OFF -DUSE_GIF=OFF
-DUSE_LIBRAW=${USE_LIBRAW}
-DUSE_NUKE=OFF -DUSE_NUKE=OFF
-DUSE_OCIO=OFF
-DUSE_OPENCV=OFF -DUSE_OPENCV=OFF
-DUSE_OPENJPEG=OFF -DUSE_OPENJPEG=OFF
-DUSE_OPENSSL=OFF -DUSE_OPENSSL=OFF