diff --git a/proto b/proto index 34bce6d61d..01a546d4f8 160000 --- a/proto +++ b/proto @@ -1 +1 @@ -Subproject commit 34bce6d61dba5f72b602bdbd31f04fceff093881 +Subproject commit 01a546d4f83e06ecde6a005bfbbbd067aaa49ac5 diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 45d8c7bde9..3117454e97 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -14,7 +14,11 @@ if (SUPERBUILD) build_target(liblzma) if(NOT BUILD_WITHOUT_CURL) - build_target(openssl) + if(ANDROID) + build_target(boringssl) + else() + build_target(openssl) + endif() if(NOT IOS) build_target(zlib-ng) @@ -25,7 +29,11 @@ if (SUPERBUILD) if(BUILD_MAVSDK_SERVER) if (BUILD_WITHOUT_CURL) - build_target(openssl) + if(ANDROID) + build_target(boringssl) + else() + build_target(openssl) + endif() endif() build_target(cares) diff --git a/third_party/boringssl/CMakeLists.txt b/third_party/boringssl/CMakeLists.txt new file mode 100644 index 0000000000..748a126bed --- /dev/null +++ b/third_party/boringssl/CMakeLists.txt @@ -0,0 +1,46 @@ +cmake_minimum_required(VERSION 3.10.2) + +project(external-boringssl) +include(ExternalProject) + +list(APPEND CMAKE_ARGS + "-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}" + "-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}" + "-DCMAKE_POSITION_INDEPENDENT_CODE=ON" + "-DBUILD_SHARED_LIBS=OFF" + ) + +if(ANDROID) + list(APPEND CMAKE_ARGS + "-DANDROID_ABI:STRING=${ANDROID_ABI}" + "-DANDROID_STL:STRING=${ANDROID_STL}" + "-DANDROID_PLATFORM=${ANDROID_PLATFORM}" + ) +elseif(IOS) + list(APPEND CMAKE_ARGS + "-DIOS_PLATFORM=${IOS_PLATFORM}" + ) +endif() + +if (IOS) + list(APPEND CMAKE_ARGS + "-DOPENSSL_NO_ASM=ON" # https://github.com/grpc/grpc/issues/9440 + ) +else() + list(APPEND CMAKE_ARGS + "-DOPENSSL_NO_ASM=OFF" + ) +endif() + +message(STATUS "Preparing external project \"boringssl\" with args:") +foreach(CMAKE_ARG ${CMAKE_ARGS}) + message(STATUS "-- ${CMAKE_ARG}") +endforeach() + +ExternalProject_add( + boringssl + URL https://github.com/google/boringssl/releases/download/0.20241203.0/boringssl-0.20241203.0.tar.gz + URL_MD5 3320699951028ba64150b5296bc9d0e6 + PREFIX boringssl + CMAKE_ARGS "${CMAKE_ARGS}" + ) diff --git a/third_party/grpc/CMakeLists.txt b/third_party/grpc/CMakeLists.txt index 66786f2640..ebb16090a6 100644 --- a/third_party/grpc/CMakeLists.txt +++ b/third_party/grpc/CMakeLists.txt @@ -53,7 +53,7 @@ endforeach() ExternalProject_add( grpc - URL https://github.com/grpc/grpc/archive/v1.61.1.tar.gz + URL https://github.com/grpc/grpc/archive/v1.61.3.tar.gz PREFIX grpc CMAKE_ARGS "${CMAKE_ARGS}" )