2019-09-27 05:31:55 +08:00
|
|
|
vcpkg_buildpath_length_warning(37)
|
2019-03-27 09:40:19 +00:00
|
|
|
|
2017-07-09 22:36:14 -07:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO alembic/alembic
|
2023-05-19 02:23:27 +08:00
|
|
|
REF "${VERSION}"
|
2024-12-24 01:45:15 +08:00
|
|
|
SHA512 02b7bf5782e83efb08a8653f130b02565fa997e857dbd8d0523e1b218ff58d929fbf9690db0980e8101a31f01a67341b6000af8794538890ef7d759fe0289e2f
|
2017-07-09 22:36:14 -07:00
|
|
|
HEAD_REF master
|
2017-07-27 02:36:27 +09:00
|
|
|
)
|
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ALEMBIC_SHARED_LIBS)
|
2020-07-28 02:43:23 +02:00
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
hdf5 USE_HDF5
|
|
|
|
)
|
2020-05-01 02:45:43 +02:00
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-07-30 09:19:13 +09:00
|
|
|
OPTIONS
|
2021-11-04 23:32:49 +01: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-09 22:36:14 -07:00
|
|
|
)
|
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
vcpkg_cmake_install()
|
2017-07-09 22:36:14 -07:00
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Alembic)
|
2017-07-09 22:36:14 -07:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
2021-07-28 00:50:29 +02:00
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
set(TOOLS abcdiff abcecho abcechobounds abcls abcstitcher abctree)
|
|
|
|
if(USE_HDF5)
|
|
|
|
list(APPEND TOOLS abcconvert)
|
2020-05-01 02:45:43 +02:00
|
|
|
endif()
|
|
|
|
|
2021-11-04 23:32:49 +01:00
|
|
|
vcpkg_copy_tools(
|
|
|
|
TOOL_NAMES ${TOOLS}
|
|
|
|
AUTO_CLEAN
|
|
|
|
)
|
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
2020-05-01 02:45:43 +02:00
|
|
|
|
2023-05-19 02:23:27 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|