early-access version 2853
This commit is contained in:
23
externals/vcpkg/ports/comms-ublox/fix-comms.patch
vendored
Executable file
23
externals/vcpkg/ports/comms-ublox/fix-comms.patch
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e2b69fe..aff5917 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -66,6 +66,7 @@ endif ()
|
||||
######################################################################
|
||||
|
||||
# Use external CommsChampion project or compile it in place
|
||||
+if(FALSE)
|
||||
set (CC_EXTERNAL_TGT "comms_champion_external")
|
||||
if (OPT_BUILD_TEST OR OPT_BUILD_PLUGIN)
|
||||
set (external_cc_needed TRUE)
|
||||
@@ -107,6 +108,10 @@ elseif (external_cc_needed)
|
||||
find_package(CommsChampion NO_MODULE)
|
||||
set (cc_compile_file "${OPT_CC_MAIN_INSTALL_DIR}/lib/LibComms/cmake/CC_Compile.cmake")
|
||||
endif ()
|
||||
+else()
|
||||
+ find_package(LibComms CONFIG REQUIRED)
|
||||
+ set(cc_compile_file "${LibComms_DIR}/CC_Compile.cmake")
|
||||
+endif()
|
||||
|
||||
if (EXISTS ${cc_compile_file})
|
||||
# Set compiler flags
|
||||
30
externals/vcpkg/ports/comms-ublox/portfile.cmake
vendored
Executable file
30
externals/vcpkg/ports/comms-ublox/portfile.cmake
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
#header-only library
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO commschamp/cc.ublox.generated
|
||||
REF v0.20.2
|
||||
SHA512 5672d964ea3e505837e44a5fd928069a219a5731764cb54bfe8609e39c6c6dd0059660bcde317c6c60cd1bd8d1f7942d2faa022095bf651817568291bc6a7569
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
fix-comms.patch
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DOPT_BUILD_TEST=OFF
|
||||
-DOPT_BUILD_PLUGIN=OFF
|
||||
-DOPT_NO_COMMS=ON
|
||||
-DOPT_EXTERNALS_UPDATE_DISCONNECTED=ON
|
||||
)
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/ublox/cmake TARGET_PATH share/ublox)
|
||||
# currently this is only a header only library. after moving lib/ublox to share this lib path will be empty
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
# Handle copyright
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
10
externals/vcpkg/ports/comms-ublox/vcpkg.json
vendored
Executable file
10
externals/vcpkg/ports/comms-ublox/vcpkg.json
vendored
Executable file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "comms-ublox",
|
||||
"version-semver": "0.20.2",
|
||||
"description": "UBLOX (UBX) protocol definition, generated out of cc.ublox.commsdsl",
|
||||
"homepage": "https://commschamp.github.io/",
|
||||
"documentation": "https://github.com/commschamp/cc.ublox.generated",
|
||||
"dependencies": [
|
||||
"comms"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user