-
Notifications
You must be signed in to change notification settings - Fork 507
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: port media/event to CMake (#1222)
Rebasing #1155 and applying some fixes. Had to comment out the `mpd_notify_muxer_listener_unittest` because it depends on `MockMpdNotifier` from `mpd/base` which has not been ported yet. Can bring this test back once that has been ported. Related to #1047 --------- Co-authored-by: Carlos Bentzen <[email protected]> Co-authored-by: Joey Parrish <[email protected]>
- Loading branch information
1 parent
3a551f4
commit 8d3b2c6
Showing
24 changed files
with
167 additions
and
154 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,54 @@ | ||
# Copyright 2022 Google LLC. All rights reserved. | ||
# | ||
# Use of this source code is governed by a BSD-style | ||
# license that can be found in the LICENSE file or at | ||
# https://developers.google.com/open-source/licenses/bsd | ||
|
||
add_library(media_event STATIC | ||
combined_muxer_listener.cc | ||
hls_notify_muxer_listener.cc | ||
mpd_notify_muxer_listener.cc | ||
multi_codec_muxer_listener.cc | ||
muxer_listener_factory.cc | ||
muxer_listener_internal.cc | ||
vod_media_info_dump_muxer_listener.cc | ||
) | ||
|
||
target_link_libraries(media_event | ||
file | ||
mpd_media_info_proto | ||
media_base | ||
codecs | ||
) | ||
|
||
add_library(mock_muxer_listener STATIC | ||
mock_muxer_listener.cc | ||
) | ||
|
||
target_link_libraries(mock_muxer_listener | ||
gmock | ||
media_event | ||
) | ||
|
||
add_executable(media_event_unittest | ||
hls_notify_muxer_listener_unittest.cc | ||
muxer_listener_internal_unittest.cc | ||
# TODO(cmake): Re-enable when mpd/base is ported (needs MockMpdNotifier) | ||
# mpd_notify_muxer_listener_unittest.cc | ||
multi_codec_muxer_listener_unittest.cc | ||
muxer_listener_test_helper.cc | ||
vod_media_info_dump_muxer_listener_unittest.cc | ||
) | ||
|
||
target_link_libraries(media_event_unittest | ||
file | ||
file_test_util | ||
mpd_media_info_proto | ||
gmock | ||
gtest | ||
gtest_main | ||
media_event | ||
mock_muxer_listener | ||
) | ||
|
||
add_test(NAME media_event_unittest COMMAND media_event_unittest) |
This file contains 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 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 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 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 was deleted.
Oops, something went wrong.
This file contains 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 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
Oops, something went wrong.