Skip to content

Commit

Permalink
WIP CI
Browse files Browse the repository at this point in the history
  • Loading branch information
philippewarren committed Dec 17, 2024
1 parent 872ea8d commit 16dee40
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions 3rdParty/webrtc_native/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,23 +164,29 @@ if(APPLE)
# Create libyuv and boringssl archives
file(GLOB boringssl_OBJETS ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/boringssl/boringssl/*.o)
file(GLOB libyuv_OBJETS ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libyuv/libyuv_internal/*.o)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libboringssl.a
COMMAND libtool -static -o libboringssl.a ${boringssl_OBJETS}
DEPENDS ${boringssl_LIBRARY}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party
VERBATIM
)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libyuv_internal.a
COMMAND libtool -static -o libyuv_internal.a ${libyuv_OBJETS}
DEPENDS ${libyuv_LIBRARY}
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party
VERBATIM
)

install(FILES ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libboringssl.a DESTINATION lib)
install(FILES ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libyuv_internal.a DESTINATION lib)
# add_custom_command(
# OUTPUT ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libboringssl.a
# COMMAND libtool -static -o libboringssl.a ${boringssl_OBJETS}
# DEPENDS ${boringssl_LIBRARY}
# WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party
# VERBATIM
# )
# add_custom_command(
# OUTPUT ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libyuv_internal.a
# COMMAND libtool -static -o libyuv_internal.a ${libyuv_OBJETS}
# DEPENDS ${libyuv_LIBRARY}
# WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party
# VERBATIM
# )

add_library(boringssl_archive STATIC ${boringssl_OBJETS})
add_library(libyuv_archive STATIC ${libyuv_OBJETS})

install(TARGETS boringssl_archive DESTINATION lib)
install(TARGETS libyuv_archive DESTINATION lib)

# install(FILES ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libboringssl.a DESTINATION lib)
# install(FILES ${CMAKE_CURRENT_LIST_DIR}/webrtc/src/out/${CMAKE_BUILD_TYPE}/obj/third_party/libyuv_internal.a DESTINATION lib)
else()
install(FILES ${boringssl_LIBRARY} DESTINATION lib)
install(FILES ${libyuv_LIBRARY} DESTINATION lib)
Expand Down

0 comments on commit 16dee40

Please sign in to comment.