2019-09-27 05:31:55 +08:00
|
|
|
vcpkg_buildpath_length_warning(37)
|
2019-03-27 17:40:19 +08:00
|
|
|
|
2017-07-10 13:36:14 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO alembic/alembic
|
2023-05-19 02:23:27 +08:00
|
|
|
REF "${VERSION}"
|
|
|
|
SHA512 89a480970eb09893112bf650011ede852205d1fa3718680a3983392bbcf3eb3f22f4ec01f42d12bfcaf655ce43d7d6f583b764ec03f4c5a84023359502b3636e
|
2017-07-10 13:36:14 +08:00
|
|
|
HEAD_REF master
|
2017-07-30 08:19:13 +08:00
|
|
|
PATCHES
|
2021-11-05 06:32:49 +08:00
|
|
|
fix-runtime-destination.patch
|
2017-07-27 01:36:27 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
|
2020-07-28 08:43:23 +08:00
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
hdf5 USE_HDF5
|
|
|
|
)
|
2020-05-01 08:45:43 +08:00
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-30 08:19:13 +08:00
|
|
|
OPTIONS
|
2021-11-05 06:32:49 +08:00
|
|
|
-DALEMBIC_SHARED_LIBS=${ALEMBIC_SHARED_LIBS}
|
|
|
|
-DUSE_TESTS=OFF
|
|
|
|
${FEATURE_OPTIONS}
|
2023-05-19 02:23:27 +08:00
|
|
|
-DALEMBIC_DEBUG_WARNINGS_AS_ERRORS=OFF
|
2017-07-10 13:36:14 +08:00
|
|
|
)
|
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-07-10 13:36:14 +08:00
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
|
2017-07-10 13:36:14 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-07-28 06:50:29 +08:00
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
|
|
|
|
if(USE_HDF5)
|
|
|
|
list(APPEND TOOLS abcconvert)
|
2020-05-01 08:45:43 +08:00
|
|
|
endif()
|
|
|
|
|
2021-11-05 06:32:49 +08:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES ${TOOLS}
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
2020-05-01 08:45:43 +08:00
|
|
|
|
2023-05-19 02:23:27 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|