mirror of https://github.com/microsoft/vcpkg.git
[gauche] New port
This commit is contained in:
parent
30ef65cad9
commit
a397b384eb
|
|
@ -0,0 +1,34 @@
|
|||
# The library exports no symbols explicitly, so a shared build would produce an
|
||||
# import library with nothing in it on Windows.
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO Project-OSRM/gauche-rs
|
||||
REF "v${VERSION}"
|
||||
SHA512 eefae5bed6bfab30af646f182eaebafbf9120e4cd4ad0bb9b50c36bbcb5760c2378d28f468494e7acbc89a304edb64e39af96c3de7239d3a3f810411443cbce3
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
# The CMake project lives in cpp/ but compiles the transpiled C sources from the
|
||||
# sibling c/ directory, so the whole repository has to be extracted.
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}/cpp"
|
||||
OPTIONS
|
||||
-DGAUCHE_BUILD_EXAMPLES=OFF
|
||||
-DGAUCHE_ENABLE_LTO=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gauche)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# The library embeds w2c2's header-only runtime, which is separately licensed.
|
||||
vcpkg_install_copyright(FILE_LIST
|
||||
"${SOURCE_PATH}/LICENSE"
|
||||
"${SOURCE_PATH}/c/w2c2/LICENSE"
|
||||
)
|
||||
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
gauche provides CMake targets:
|
||||
|
||||
find_package(gauche CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE gauche::gauche_cpp)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "gauche",
|
||||
"version": "0.1.0",
|
||||
"description": "Left-hand traffic area classifier for point, line, and bbox queries over OSM driving-side data",
|
||||
"homepage": "https://github.com/Project-OSRM/gauche-rs",
|
||||
"license": "BSD-2-Clause AND MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -3348,6 +3348,10 @@
|
|||
"baseline": "2018-01-04",
|
||||
"port-version": 4
|
||||
},
|
||||
"gauche": {
|
||||
"baseline": "0.1.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"gaussianlib": {
|
||||
"baseline": "2024-11-03",
|
||||
"port-version": 0
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f0a562df5a14132b336fe2ddca648c6b84d842d6",
|
||||
"version": "0.1.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue