2019-10-30 14:10:20 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO libigl/libigl
|
2021-10-15 08:49:18 +08:00
|
|
|
REF e60423e28c86b6aa2a3f6eb0112e8fd881f96777 #2.3.0
|
|
|
|
SHA512 3fecb710825e58745c1d67eab694ee365a5b86151a5a1ca3758c1000c124059d38dbc78e8c6e941be6d85a716f928ed8fea42bb6007b8e24da0123332c2c96da
|
2019-10-30 14:10:20 +08:00
|
|
|
HEAD_REF master
|
2020-08-25 03:49:35 +08:00
|
|
|
PATCHES
|
|
|
|
fix-dependency.patch
|
2020-09-10 02:45:05 +08:00
|
|
|
install-extra-headers.patch
|
2020-11-12 08:48:07 +08:00
|
|
|
fix-config.patch
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-10-15 08:49:18 +08:00
|
|
|
FEATURES
|
|
|
|
embree LIBIGL_WITH_EMBREE
|
|
|
|
opengl LIBIGL_WITH_OPENGL
|
|
|
|
glfw LIBIGL_WITH_OPENGL_GLFW
|
|
|
|
imgui LIBIGL_WITH_OPENGL_GLFW_IMGUI
|
|
|
|
#png LIBIGL_WITH_PNG # Disable this feature due to issue https://github.com/libigl/libigl/issues/1199
|
|
|
|
xml LIBIGL_WITH_XML
|
|
|
|
#python LIBIGL_WITH_PYTHON # Python binding are in the process of being redone.
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
|
|
|
|
2021-10-15 08:49:18 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-10-30 14:10:20 +08:00
|
|
|
OPTIONS ${FEATURE_OPTIONS}
|
|
|
|
-DLIBIGL_BUILD_PYTHON=OFF
|
|
|
|
-DLIBIGL_EXPORT_TARGETS=ON
|
2021-02-09 10:26:40 +08:00
|
|
|
-DLIBIGL_USE_STATIC_LIBRARY=OFF # Header-only mode
|
2019-10-30 14:10:20 +08:00
|
|
|
-DLIBIGL_WITH_COMISO=OFF
|
|
|
|
-DLIBIGL_WITH_TETGEN=OFF
|
|
|
|
-DLIBIGL_WITH_TRIANGLE=OFF
|
|
|
|
-DLIBIGL_WITH_PREDICATES=OFF
|
|
|
|
-DLIBIGL_BUILD_TUTORIALS=OFF
|
2020-08-02 07:12:24 +08:00
|
|
|
-DLIBIGL_WITH_PNG=OFF
|
|
|
|
-DLIBIGL_BUILD_TESTS=OFF
|
|
|
|
-DPYTHON_EXECUTABLE=${PYTHON2}
|
2021-10-15 08:49:18 +08:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
PYTHON_EXECUTABLE
|
2019-10-30 14:10:20 +08:00
|
|
|
)
|
|
|
|
|
2021-10-15 08:49:18 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-10-30 14:10:20 +08:00
|
|
|
|
2021-10-15 08:49:18 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/libigl/cmake)
|
2019-10-30 14:10:20 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-02-09 10:26:40 +08:00
|
|
|
# libigl is a header-only library.
|
2021-10-15 08:49:18 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2019-10-30 14:10:20 +08:00
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.GPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|