mirror of https://github.com/microsoft/vcpkg.git
[typecast-ai] Add new port (version 1.0.1) (#49851)
This commit is contained in:
parent
a7c451bd6c
commit
e238b4b4a4
|
|
@ -0,0 +1,38 @@
|
|||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO neosapience/typecast-sdk
|
||||
REF "v${VERSION}"
|
||||
SHA512 327c92a7d3f557b1dbad55f0016d263079802afb6d30cdafc7b781e72fedbf93cb7bc3c1d7b13d319480060cd565628387df243939334fb450940b835bce369b
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
# The C SDK is in the typecast-c subdirectory
|
||||
set(SOURCE_PATH "${SOURCE_PATH}/typecast-c")
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DTYPECAST_BUILD_SHARED=${BUILD_SHARED}
|
||||
-DTYPECAST_BUILD_STATIC=${BUILD_STATIC}
|
||||
-DTYPECAST_BUILD_EXAMPLES=OFF
|
||||
-DTYPECAST_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/typecast)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
# Handle copyright
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
"name": "typecast-ai",
|
||||
"version": "1.0.1",
|
||||
"description": "Text-to-Speech API client library for Typecast AI. Pure C with optional C++ wrapper.",
|
||||
"homepage": "https://github.com/neosapience/typecast-sdk",
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "curl",
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -10096,6 +10096,10 @@
|
|||
"baseline": "2023.8",
|
||||
"port-version": 2
|
||||
},
|
||||
"typecast-ai": {
|
||||
"baseline": "1.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"tvision": {
|
||||
"baseline": "2024-05-22",
|
||||
"port-version": 1
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6cef434a0a33511912255ef73a5c080488b133ae",
|
||||
"version": "1.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue