mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
47c0b1ce40
* New Port : libigl-triangle * Update ci.baseline.txt for libigl-triangle port * Update ports/libigl-triangle/CONTROL Unnecessary Port-Version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/libigl-triangle/portfile.cmake Unnecessary inclusion of vcpkg_common_functions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/libigl-triangle/portfile.cmake Use README from source as the copyright file Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Updates to libigl-translate port * Update libigl-triangle port * Update ports/libigl-triangle/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Update ports/libigl-triangle/portfile.cmake Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Make the header copy properly and add CMake targets * Utilize original sources for triangle library and rename to triangle * Build triangle executable and add it to tools * Fix Linux build which requires linking to m library for math functions * Update scripts/ci.baseline.txt Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Instead of defining INT_PTR, use uintptr_t from stdint.h Also, define FLOAT and VOID in the header so the user of the library does not have to define them * Make sure the port works and can be used * Remove the use of the SINGLE define for switching the REAL define to be float or double. Also make the define for VOID be void rather than replacing all VOID with void in order to reduce the patch size. Co-authored-by: Nathan Mercer <nmercer@intermap.com> Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
vcpkg_download_distfile(ARCHIVE_FILE
|
|
URLS "http://www.netlib.org/voronoi/triangle.zip"
|
|
FILENAME "triangle.zip"
|
|
SHA512 c9c1ac527c4bf836ed877b1c5495abf9fd2c453741f4c9698777e23cde939ebf0dd73c84cec64f35a93ca01bff4b86ce32ec559da33e570a0744a764e46d2186
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
NO_REMOVE_ONE_LEVEL
|
|
ARCHIVE ${ARCHIVE_FILE}
|
|
PATCHES
|
|
"enable_64bit_architecture.patch"
|
|
)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/exports.def DESTINATION ${SOURCE_PATH})
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/tools")
|
|
|
|
file(INSTALL ${SOURCE_PATH}/README DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|