Skip to content
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

feat: port media/base #1127

Merged
merged 32 commits into from
Nov 4, 2022
Merged

Conversation

joeyparrish
Copy link
Member

@joeyparrish joeyparrish commented Nov 2, 2022

This removes all chromium dependencies from media/base/ and completes the build system in CMake.

The ClosureThread class and its classes were removed, as they were specific to chromium base. ClosureThread has been replaced by std::thread.

The byte-swapping utilities in network_util.cc have been removed and replaced with absl.

generate_unique_temp_path() was split out of file_unittest.cc into file_test_util.cc, where other test suites could make use of it.

WARN_UNUSED_RESULT was replaced with the C++ standard attribute [[nodiscard]].

The base::Clock interface was replaced with a typedef for a function pointer that returns the current time.

This re-enables the tests in http_key_fetcher_unittest.cc by using httpbin.org.

Issue #1047 (CMake porting)
Issue #346 (absl porting)

This removes all chromium dependencies from media/base/ and completes
the build system in CMake.

The ClosureThread class and its classes were removed, as they were
specific to chromium base.  ClosureThread has been replaced by
std::thread.

The byte-swapping utilities in network_util.cc have been removed and
replaced with absl.

generate_unique_temp_path() was split out of file_unittest.cc into
file_test_util.cc, where other test suites could make use of it.

WARN_UNUSED_RESULT was replaced with the C++ standard attribute
[[nodiscard]].

The base::Clock interface was replaced with a typedef for a function
pointer that returns the current time.

This re-enables the tests in http_key_fetcher_unittest.cc by using
httpbin.org.
This does not depend on absl, which frees macros.h from any library
deps that would make the CMake dependency tree more complicated.  This
also fixes build errors in some environments.
This appears to fix some issues with crashing compilers on arm64 and
docker builds.  This may be caused by resource constraints in those
environments.
@joeyparrish
Copy link
Member Author

This includes the changes in PR #1132 and #1133. With that, builds are (finally) all passing.

Copy link
Contributor

@kqyang kqyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

packager/media/base/macros.h Show resolved Hide resolved
packager/media/base/playready_pssh_generator.cc Outdated Show resolved Hide resolved
@joeyparrish joeyparrish merged commit b1095f6 into shaka-project:cmake Nov 4, 2022
@joeyparrish joeyparrish deleted the media-base branch November 4, 2022 22:46
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 24, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants