Skip to content

Commit

Permalink
cleanup ispc port
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 25, 2024
1 parent 80a8a51 commit cbf2ecb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
23 changes: 10 additions & 13 deletions cmake/vcpkg_ports/ispc/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
set (ISPC_VERSION "1.18.0")
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)

if (APPLE)
set(ISPC_OSSUFFIX "macOS.tar.gz")
elseif(WIN32)
if (VCPKG_TARGET_IS_WINDOWS)
set(ISPC_OSSUFFIX "windows.zip")
set(ISPC_SHA "97d5d7bba9933f2bcda7374c738ff8a48371487df1720b803767cc9f6fffeaf06424f713360356e7ba57ca7766a1caefe01133a5657cde59ab0bde0e35988409")
else()
elseif (VCPKG_TARGET_IS_LINUX)
set(ISPC_OSSUFFIX "linux.tar.gz")
set(ISPC_SHA "88f971211f069123a67da7fecdc34ebcf9a04e972928c6d6417c1d0bf4ec5eb3041d3a89df3b241d34cef16f667a9b753b9db4395fca02b75580a34de525a421")
endif()

set (ISPC_FILENAME "ispc-v${ISPC_VERSION}-${ISPC_OSSUFFIX}")
else ()
message(FATAL_ERROR "Unsupported OS!")
endif ()

set(ISPC_URL "https://github.com/ispc/ispc/releases/download/v${ISPC_VERSION}/${ISPC_FILENAME}")
set(ISPC_FILENAME "ispc-v${VERSION}-${ISPC_OSSUFFIX}")
set(ISPC_URL "https://github.com/ispc/ispc/releases/download/v${VERSION}/${ISPC_FILENAME}")

vcpkg_download_distfile(
ISPC_ARCHIVE_PATH
Expand All @@ -30,10 +29,8 @@ vcpkg_copy_tools(
SEARCH_DIR "${ISPC_DIR}/bin"
TOOL_NAMES ispc
)
if (WIN32)
if (VCPKG_TARGET_IS_WINDOWS)
file(INSTALL ${ISPC_DIR}/bin/ispcrt.dll DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
endif()

set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
endif ()

file(INSTALL ${ISPC_DIR}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
12 changes: 1 addition & 11 deletions cmake/vcpkg_ports/ispc/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,5 @@
"version": "1.18.0",
"description": "Intel Implicit SPMD Program Compiler",
"homepage": "https://ispc.github.io",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
"license": "BSD-3-Clause"
}

0 comments on commit cbf2ecb

Please sign in to comment.