-
Notifications
You must be signed in to change notification settings - Fork 3
RDKEMW-11934 : Fix build failure in MAC #64
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
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
8f0792a
Add taglib compatibility header
rekhap2kandhavelan 03052c7
Add include path for taglib compatibility header and resolve sssl pac…
rekhap2kandhavelan 19b30cd
Update FakeGStreamer.cpp
rekhap2kandhavelan 8b48ce8
Update scripts/install_gstreamer.sh
rekhap2kandhavelan 71b8104
Update test/utests/tests/GstPlayer/CMakeLists.txt
rekhap2kandhavelan d2589b1
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan d1e5351
Update scripts/taglib_compat.h
rekhap2kandhavelan 226ed3f
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 42fd35f
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan e8bd8c0
Update test/utests/tests/GstPlayer/CMakeLists.txt
rekhap2kandhavelan 85ec78a
Update scripts/taglib_compat.h
rekhap2kandhavelan ca743e0
resolve conflict
rkandh015 6328160
Update CMakeLists.txt
rekhap2kandhavelan 99b156d
Update test/utests/tests/PluginsTests/CMakeLists.txt
rekhap2kandhavelan 025076e
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 1a7bf29
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan c6de14e
Update scripts/install_gstreamer.sh
rekhap2kandhavelan 225061f
Update scripts/taglib_compat.h
rekhap2kandhavelan 6a4b3b1
Update scripts/install_subtec.sh
rekhap2kandhavelan d2d123b
Update scripts/install_subtec.sh
rekhap2kandhavelan cc7ce25
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 3942ded
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 6045701
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan abe935b
Update test/utests/mocks/MockGstUtils.h
rekhap2kandhavelan 6c7d6ad
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 95b6cc7
Addressed copilot review
rekhap2kandhavelan e044d63
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan a606813
Update scripts/install_gstreamer.sh
rekhap2kandhavelan a0d1955
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan f5926b2
Update CMakeLists.txt
rekhap2kandhavelan a356d1c
Update CMakeLists.txt
rekhap2kandhavelan 3d04d8c
Update install_gstreamer.sh
rekhap2kandhavelan a14be93
Update install_subtec.sh
rekhap2kandhavelan 8133c5f
Update test/utests/tests/PluginsTests/CMakeLists.txt
rekhap2kandhavelan a248a60
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan 344ec4a
Update test/utests/tests/GstPlayer/CMakeLists.txt
rekhap2kandhavelan 004c310
Update test/utests/tests/GstPlayer/CMakeLists.txt
rekhap2kandhavelan 119dcf0
Update test/utests/tests/PluginsTests/CMakeLists.txt
rekhap2kandhavelan 0565c4c
Update scripts/taglib_compat.h
rekhap2kandhavelan b613a33
Update test/utests/tests/PluginsTests/CMakeLists.txt
rekhap2kandhavelan 2832cdd
Update scripts/install_subtec.sh
rekhap2kandhavelan 2e288b7
Update test/utests/mocks/MockGStreamer.h
rekhap2kandhavelan 6d327d1
Update test/utests/fakes/FakeGstUtils.cpp
rekhap2kandhavelan ba53f3e
Update test/utests/fakes/FakeGStreamer.cpp
rekhap2kandhavelan fe65678
Update FakeGStreamer.cpp
rekhap2kandhavelan 9f61afd
Update ClearKeyDrmSessionTests.cpp
rekhap2kandhavelan 9e7b480
Update install_subtec.sh
rekhap2kandhavelan 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
Some comments aren't visible on the classic Files Changed page.
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
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,34 @@ | ||
|
|
||
| #pragma once | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
|
|
||
| #include <taglib/taglib.h> | ||
|
|
||
| // Determine if we are building against TagLib 2.x or later. | ||
| // Some TagLib distributions define TAGLIB_VERSION, others define | ||
| // TAGLIB_MAJOR_VERSION, so we support both here. | ||
| #ifndef TAGLIB_IS_V2_OR_LATER | ||
| #if (defined(TAGLIB_VERSION) && (TAGLIB_VERSION >= 0x020000)) || \ | ||
| (defined(TAGLIB_MAJOR_VERSION) && (TAGLIB_MAJOR_VERSION >= 2)) | ||
| #define TAGLIB_IS_V2_OR_LATER 1 | ||
| #endif | ||
| #endif | ||
|
|
||
| #if defined(TAGLIB_IS_V2_OR_LATER) | ||
| namespace TagLib { | ||
| using uint = unsigned int; | ||
| } | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| #endif | ||
|
|
||
| // TagLib 2.x: createFrame signature changed. | ||
| // Old code uses createFrame(ByteVector, TagLib::uint) | ||
| // New API expects createFrame(ByteVector, const Header*) | ||
| #if defined(TAGLIB_IS_V2_OR_LATER) | ||
| #ifndef GST_TAGLIB_CREATEFRAME_COMPAT | ||
| #define GST_TAGLIB_CREATEFRAME_COMPAT 1 | ||
|
rekhap2kandhavelan marked this conversation as resolved.
|
||
| #ifdef createFrame | ||
| #undef createFrame | ||
| #endif | ||
| #define createFrame(DATA, VERSION) \ | ||
| createFrame((DATA), (const TagLib::ID3v2::Header*)nullptr) | ||
| #endif | ||
| #endif | ||
|
rekhap2kandhavelan marked this conversation as resolved.
rekhap2kandhavelan marked this conversation as resolved.
|
||
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 |
|---|---|---|
|
|
@@ -100,4 +100,66 @@ | |
|
|
||
| endfunction() | ||
|
|
||
|
|
||
| # ---- Make find_package(OpenSSL) use a Homebrew keg, not /lib & /include ---- | ||
| # Honor *Root variables* for find_package (e.g., OpenSSL_ROOT): | ||
| if (POLICY CMP0074) | ||
| cmake_policy(SET CMP0074 NEW) | ||
| endif() | ||
|
|
||
| # If the user hasn't provided a root, pick one Homebrew keg. | ||
| if (APPLE AND NOT OPENSSL_ROOT_DIR AND NOT DEFINED ENV{OPENSSL_ROOT_DIR}) | ||
| foreach(_ossl_ver "3.5" "3.4" "3") | ||
| if (EXISTS "/opt/homebrew/opt/openssl@${_ossl_ver}") | ||
| set(OPENSSL_ROOT_DIR "/opt/homebrew/opt/openssl@${_ossl_ver}" CACHE PATH "" FORCE) | ||
| break() | ||
| elseif (EXISTS "/usr/local/opt/openssl@${_ossl_ver}") | ||
| set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl@${_ossl_ver}" CACHE PATH "" FORCE) | ||
| break() | ||
| endif() | ||
| endforeach() | ||
| endif() | ||
|
|
||
| # Help CMake search that prefix first | ||
| if (OPENSSL_ROOT_DIR) | ||
| list(PREPEND CMAKE_PREFIX_PATH "${OPENSSL_ROOT_DIR}") | ||
| # Also set OpenSSL_ROOT (recognized due to CMP0074 NEW) | ||
| set(OpenSSL_ROOT "${OPENSSL_ROOT_DIR}" CACHE PATH "" FORCE) | ||
| endif() | ||
|
|
||
| # Ask for components so CMake tries to form imported targets | ||
| find_package(OpenSSL REQUIRED COMPONENTS Crypto SSL) | ||
|
|
||
| # --- Fallback: if imported targets are still missing, create them explicitly --- | ||
| if (NOT TARGET OpenSSL::Crypto OR NOT TARGET OpenSSL::SSL) | ||
| message(WARNING "FindOpenSSL did not define imported targets; creating fallback targets.") | ||
| if (NOT OPENSSL_INCLUDE_DIR OR NOT OPENSSL_CRYPTO_LIBRARY OR NOT OPENSSL_SSL_LIBRARY) | ||
| message(FATAL_ERROR | ||
| "OpenSSL variables are incomplete.\n" | ||
| "OPENSSL_ROOT_DIR='${OPENSSL_ROOT_DIR}'\n" | ||
| "OPENSSL_INCLUDE_DIR='${OPENSSL_INCLUDE_DIR}'\n" | ||
| "OPENSSL_CRYPTO_LIBRARY='${OPENSSL_CRYPTO_LIBRARY}'\n" | ||
| "OPENSSL_SSL_LIBRARY='${OPENSSL_SSL_LIBRARY}'\n" | ||
| "Tip: configure with -DOPENSSL_ROOT_DIR=<brew keg> and explicit *_LIBRARY paths." | ||
| ) | ||
| endif() | ||
|
Check failure on line 145 in test/utests/CMakeLists.txt
|
||
|
|
||
| add_library(OpenSSL::Crypto UNKNOWN IMPORTED) | ||
| set_target_properties(OpenSSL::Crypto PROPERTIES | ||
| IMPORTED_LOCATION "${OPENSSL_CRYPTO_LIBRARY}" | ||
| INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}" | ||
| ) | ||
|
|
||
| add_library(OpenSSL::SSL UNKNOWN IMPORTED) | ||
| set_target_properties(OpenSSL::SSL PROPERTIES | ||
| IMPORTED_LOCATION "${OPENSSL_SSL_LIBRARY}" | ||
| INTERFACE_INCLUDE_DIRECTORIES "${OPENSSL_INCLUDE_DIR}" | ||
| ) | ||
| endif() | ||
|
|
||
| # Diagnostics (helpful while debugging) | ||
| message(STATUS "OpenSSL include: ${OPENSSL_INCLUDE_DIR}") | ||
| message(STATUS "OpenSSL crypto : ${OPENSSL_CRYPTO_LIBRARY}") | ||
| message(STATUS "OpenSSL ssl : ${OPENSSL_SSL_LIBRARY}") | ||
|
|
||
| add_subdirectory(tests) | ||
Oops, something went wrong.
Oops, something went wrong.
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.