mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 14:18:59 +08:00
a615e65e78
* [openexr] Update to v3.1.7 * [openexr] Update baseline
45 lines
1.3 KiB
CMake
45 lines
1.3 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO AcademySoftwareFoundation/openexr
|
|
REF v3.1.7
|
|
SHA512 f72f5e728f10c06fca0172c9b4c1df752225c3aed7384b4eaa502f92f8547bb1df93fe96d4d132a81eb32b729cb9fd615be825aa6c5de78481d3038c0d47c4d5
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS OPTIONS
|
|
FEATURES
|
|
tools OPENEXR_BUILD_TOOLS
|
|
tools OPENEXR_INSTALL_TOOLS
|
|
)
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
${OPTIONS}
|
|
-DBUILD_TESTING=OFF
|
|
-DOPENEXR_INSTALL_EXAMPLES=OFF
|
|
-DBUILD_DOCS=OFF
|
|
OPTIONS_DEBUG
|
|
-DOPENEXR_BUILD_TOOLS=OFF
|
|
-DOPENEXR_INSTALL_TOOLS=OFF
|
|
)
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OpenEXR)
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
if(OPENEXR_INSTALL_TOOLS)
|
|
vcpkg_copy_tools(
|
|
TOOL_NAMES exrenvmap exrheader exrinfo exrmakepreview exrmaketiled exrmultipart exrmultiview exrstdattr exr2aces
|
|
AUTO_CLEAN
|
|
)
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
)
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|