-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[sbp] new port #19335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[sbp] new port #19335
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| # Windows shared libraries are not supported yet | ||
| # See https://github.com/swift-nav/libsbp/issues/1062 | ||
| if(VCPKG_TARGET_IS_WINDOWS) | ||
| vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
| endif() | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO swift-nav/libsbp | ||
| REF v3.4.10 | ||
| SHA512 bbdcefad9ff8995759b577790bcffb94355bd0ee29f259fa8d51f54907e252b55871dc5a841e21d23e661fd5b33109761eb20b66c2fb73e9e7de8a34cc8d6528 | ||
| HEAD_REF master | ||
| PATCHES | ||
| "win32-install-fix.patch" | ||
| ) | ||
|
|
||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH CMAKE_EXTRA_MODS | ||
| REPO swift-nav/cmake | ||
| REF 373d4fcafbbc0c208dc9ecb278d36ed8c9448eda | ||
| SHA512 afefc8c7a3fb43ee65b9b8733968a5836938460abbf1bc9e8330f83c3ac4a5819f71a36dcb034004296161c592f4d61545ba10016d6666e7eaf1dca556d99e2e | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| # Copy cmake files to expected location | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/CCache.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/SwiftCmakeOptions.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/CompileOptions.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/LanguageStandards.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/ClangFormat.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/ClangTidy.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/CodeCoverage.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
| file(INSTALL ${CMAKE_EXTRA_MODS}/TestTargets.cmake DESTINATION ${SOURCE_PATH}/c/cmake/common) | ||
|
|
||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}/c" | ||
| OPTIONS | ||
| -Dlibsbp_ENABLE_TESTS=OFF | ||
| -Dlibsbp_ENABLE_DOCS=OFF | ||
| ) | ||
|
|
||
| vcpkg_cmake_install() | ||
| file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| { | ||
| "name": "sbp", | ||
| "version-semver": "3.4.10", | ||
| "description": "Swift Navigation Binary Protocol (SBP) is a binary protocol for communicating GNSS data used by Piksi devices.", | ||
| "homepage": "https://github.com/swift-nav/libsbp", | ||
| "documentation": "https://support.swiftnav.com/support/solutions/articles/44001850782-swift-binary-protocol", | ||
| "supports": "!uwp", | ||
|
jayvdb marked this conversation as resolved.
Outdated
|
||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| commit 6023d12ca2df861b134b345151d2463a963e50c4 | ||
| Author: Rodrigo Reichert <rodrigo.reichert@swift-nav.com> | ||
| Date: Wed Aug 4 13:24:43 2021 +1000 | ||
|
|
||
| ESD-2166 Fix windows install dll directory (#1061) | ||
|
|
||
| diff --git a/c/src/CMakeLists.txt b/c/src/CMakeLists.txt | ||
| index b00fa523..1019683f 100644 | ||
| --- a/c/src/CMakeLists.txt | ||
| +++ b/c/src/CMakeLists.txt | ||
| @@ -27,9 +27,13 @@ if (MINGW) | ||
| endif() | ||
| endif() | ||
|
|
||
| -install(TARGETS sbp | ||
| - EXPORT sbp-export | ||
| - DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) | ||
| +install( | ||
| + TARGETS sbp | ||
| + EXPORT sbp-export | ||
| + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} | ||
| + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| +) | ||
| install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/libsbp/" DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/libsbp") | ||
|
|
||
| export(EXPORT sbp-export |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "755e76e1852508e6ffd88cdf7351415d41abf7af", | ||
| "version-semver": "3.4.10", | ||
| "port-version": 0 | ||
| } | ||
| ] | ||
| } |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.