Skip to content

Commit

Permalink
amazon-kvs-webrtc-sdk: upgrade git -> new
Browse files Browse the repository at this point in the history
  • Loading branch information
aws-iot-embedded-linux-ci authored and thomas-roos committed Sep 4, 2023
1 parent a2cf4fb commit 7642ef3
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ PROVIDES += "aws/amazon-kvs-webrtc-sdk"
BRANCH = "master"
SRC_URI = "\
git://github.com/awslabs/amazon-kinesis-video-streams-webrtc-sdk-c.git;protocol=https;branch=${BRANCH} \
file://disable_build_deps.patch \
"

SRCREV = "b2b05c8982beed62e4c589d2890621bf98638153"
SRCREV = "67468849fc7bf0acaedd74714a635155ce1a83e3"

UPSTREAM_CHECK_COMMITS = "1"

Expand Down
44 changes: 44 additions & 0 deletions recipes-sdk/amazon-kvs-webrtc-sdk/files/disable_build_deps.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
Index: git/CMake/Dependencies/libkvsCommonLws-CMakeLists.txt
===================================================================
--- git.orig/CMake/Dependencies/libkvsCommonLws-CMakeLists.txt
+++ git/CMake/Dependencies/libkvsCommonLws-CMakeLists.txt
@@ -4,20 +4,22 @@ project(libkvsCommonLws-download NONE)

include(ExternalProject)

-ExternalProject_Add(libkvsCommonLws-download
- GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-producer-c.git
- GIT_TAG 7d1b76f53680c1e23afb6f35f0cca97ccdb35e3f
- PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
- CMAKE_ARGS
- -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
- -DBUILD_COMMON_LWS=ON
- -DBUILD_COMMON_CURL=OFF
- -DBUILD_DEPENDENCIES=FALSE
- -DOPEN_SRC_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
- -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
- -DUSE_OPENSSL=${USE_OPENSSL}
- -DUSE_MBEDTLS=${USE_MBEDTLS}
- -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
- BUILD_ALWAYS TRUE
- TEST_COMMAND ""
-)
+if(BUILD_DEPENDENCIES)
+ ExternalProject_Add(libkvsCommonLws-download
+ GIT_REPOSITORY https://github.com/awslabs/amazon-kinesis-video-streams-producer-c.git
+ GIT_TAG 7d1b76f53680c1e23afb6f35f0cca97ccdb35e3f
+ PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
+ CMAKE_ARGS
+ -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
+ -DBUILD_COMMON_LWS=ON
+ -DBUILD_COMMON_CURL=OFF
+ -DBUILD_DEPENDENCIES=FALSE
+ -DOPEN_SRC_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
+ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+ -DUSE_OPENSSL=${USE_OPENSSL}
+ -DUSE_MBEDTLS=${USE_MBEDTLS}
+ -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
+ BUILD_ALWAYS TRUE
+ TEST_COMMAND ""
+ )
+endif()

0 comments on commit 7642ef3

Please sign in to comment.