diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/flashlight-sequence | |
Diffstat (limited to 'vcpkg/ports/flashlight-sequence')
| -rw-r--r-- | vcpkg/ports/flashlight-sequence/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/flashlight-sequence/vcpkg.json | 28 |
2 files changed, 61 insertions, 0 deletions
diff --git a/vcpkg/ports/flashlight-sequence/portfile.cmake b/vcpkg/ports/flashlight-sequence/portfile.cmake new file mode 100644 index 0000000..3e591dd --- /dev/null +++ b/vcpkg/ports/flashlight-sequence/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO flashlight/sequence + REF v${VERSION} + SHA512 215bb4988fbdd31573965c3c5d88d40b247cbca49f092dcdb89b5f2ca422d5774e941de843433fd3effd8f09569a7e0c2cc61364b5f0a210f156933e4c00f16b + HEAD_REF main +) + +vcpkg_check_features( + OUT_FEATURE_OPTIONS FEATURE_OPTIONS + FEATURES + openmp FL_SEQUENCE_USE_OPENMP + cuda FL_SEQUENCE_USE_CUDA +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DFL_SEQUENCE_BUILD_TESTS=OFF + -DFL_SEQUENCE_BUILD_STANDALONE=OFF + ${FEATURE_OPTIONS} + OPTIONS_DEBUG + "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share/${PORT}" + OPTIONS_RELEASE + "-DFL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/${PORT}" +) +vcpkg_cmake_install() +vcpkg_cmake_config_fixup() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/flashlight-sequence/vcpkg.json b/vcpkg/ports/flashlight-sequence/vcpkg.json new file mode 100644 index 0000000..96db8ea --- /dev/null +++ b/vcpkg/ports/flashlight-sequence/vcpkg.json @@ -0,0 +1,28 @@ +{ + "name": "flashlight-sequence", + "version": "0.0.1", + "description": "Flashlight Sequence is a library containing fast implementations of sequence loss algorithms.", + "homepage": "https://github.com/flashlight/sequence", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "cuda": { + "description": "Build CUDA components", + "dependencies": [ + "cuda" + ] + }, + "openmp": { + "description": "Build with OpenMP" + } + } +} |