mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 05:53:03 +08:00
[flashlight-text] New port (#31859)
* [flashlight-text] New port * Format and fix vcpkg.json, x-add-version * Export dll symbols on Windows * Only pass opt to export all symbols on Windows * Update version database * Rename flag * Update version database * Update ports/flashlight-text/portfile.cmake Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com> * Update ports/flashlight-text/vcpkg.json Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com> * Update version * Update to v0.0.4, remove CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS * Update version database * Use in portfile * Update version database * Fix CMake config install location * Update package version * Omit config fixup arg * Update version --------- Co-authored-by: jim wang <122244446+jimwang118@users.noreply.github.com>
This commit is contained in:
parent
282e4f61d4
commit
faac1ea237
33
ports/flashlight-text/portfile.cmake
Normal file
33
ports/flashlight-text/portfile.cmake
Normal file
@ -0,0 +1,33 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO flashlight/text
|
||||
REF v${VERSION}
|
||||
SHA512 d9ed9b687c441e356b19a035ecef1abc76d90e3e0d8a9c32899bd7a81e379a9ae51bc6d68e7bae10cf83b87ec76289afbd81909d70799ca8d24f996e8667ad85
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_check_features(
|
||||
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
kenlm FL_TEXT_USE_KENLM
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DFL_TEXT_BUILD_TESTS=OFF
|
||||
-DFL_TEXT_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")
|
25
ports/flashlight-text/vcpkg.json
Normal file
25
ports/flashlight-text/vcpkg.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "flashlight-text",
|
||||
"version": "0.0.4",
|
||||
"description": "Flashlight Text is a library for tokenization, beam search, and text processing.",
|
||||
"homepage": "https://github.com/flashlight/text",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"kenlm": {
|
||||
"description": "Build with KenLM",
|
||||
"dependencies": [
|
||||
"kenlm"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -2516,6 +2516,10 @@
|
||||
"baseline": "0.3",
|
||||
"port-version": 6
|
||||
},
|
||||
"flashlight-text": {
|
||||
"baseline": "0.0.4",
|
||||
"port-version": 0
|
||||
},
|
||||
"flat": {
|
||||
"baseline": "2022-08-30",
|
||||
"port-version": 0
|
||||
|
14
versions/f-/flashlight-text.json
Normal file
14
versions/f-/flashlight-text.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "fdf18ae36763962256b235eec31becbe02f2534d",
|
||||
"version": "0.0.4",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "6386901fa48bce946fdc5775a1c1b784e0a97175",
|
||||
"version": "0.0.3",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user