2022-11-02 15:34:06 +00:00
|
|
|
# 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
|
|
|
|
|
2022-11-04 22:46:41 +00:00
|
|
|
add_proto_library(widevine_protos STATIC
|
|
|
|
widevine_common_encryption.proto
|
|
|
|
widevine_pssh_data.proto)
|
2022-11-02 15:34:06 +00:00
|
|
|
|
|
|
|
add_library(media_base STATIC
|
|
|
|
aes_cryptor.cc
|
|
|
|
aes_decryptor.cc
|
|
|
|
aes_encryptor.cc
|
|
|
|
aes_pattern_cryptor.cc
|
2022-11-04 22:46:41 +00:00
|
|
|
audio_stream_info.cc
|
|
|
|
audio_timestamp_helper.cc
|
|
|
|
bit_reader.cc
|
|
|
|
bit_writer.cc
|
|
|
|
buffer_reader.cc
|
|
|
|
buffer_writer.cc
|
|
|
|
byte_queue.cc
|
|
|
|
cc_stream_filter.cc
|
|
|
|
common_pssh_generator.cc
|
|
|
|
container_names.cc
|
|
|
|
decrypt_config.cc
|
|
|
|
decryptor_source.cc
|
|
|
|
http_key_fetcher.cc
|
|
|
|
id3_tag.cc
|
|
|
|
key_fetcher.cc
|
|
|
|
key_source.cc
|
|
|
|
language_utils.cc
|
|
|
|
media_handler.cc
|
|
|
|
media_sample.cc
|
|
|
|
muxer.cc
|
|
|
|
muxer_options.cc
|
|
|
|
muxer_util.cc
|
|
|
|
offset_byte_queue.cc
|
|
|
|
playready_key_source.cc
|
|
|
|
playready_pssh_generator.cc
|
|
|
|
protection_system_specific_info.cc
|
|
|
|
proto_json_util.cc
|
|
|
|
pssh_generator.cc
|
|
|
|
pssh_generator_util.cc
|
|
|
|
raw_key_source.cc
|
|
|
|
request_signer.cc
|
2022-11-02 15:34:06 +00:00
|
|
|
rsa_key.cc
|
2022-11-04 22:46:41 +00:00
|
|
|
stream_info.cc
|
|
|
|
text_muxer.cc
|
|
|
|
text_sample.cc
|
|
|
|
text_stream_info.cc
|
|
|
|
text_track_config.cc
|
|
|
|
video_stream_info.cc
|
|
|
|
video_util.cc
|
|
|
|
widevine_key_source.cc
|
|
|
|
widevine_pssh_generator.cc)
|
2022-11-02 15:34:06 +00:00
|
|
|
|
|
|
|
target_link_libraries(media_base
|
|
|
|
absl::base
|
2022-11-04 22:46:41 +00:00
|
|
|
absl::flags
|
|
|
|
absl::str_format
|
2022-11-02 15:34:06 +00:00
|
|
|
absl::strings
|
2022-11-04 22:46:41 +00:00
|
|
|
file
|
2022-11-02 15:34:06 +00:00
|
|
|
glog
|
2022-11-04 22:46:41 +00:00
|
|
|
hex_parser
|
|
|
|
mbedtls
|
|
|
|
status
|
|
|
|
widevine_protos
|
|
|
|
LibXml2)
|
2022-11-02 15:34:06 +00:00
|
|
|
|
2022-11-04 22:46:41 +00:00
|
|
|
add_library(media_handler_test_base STATIC
|
|
|
|
media_handler_test_base.cc)
|
|
|
|
target_link_libraries(media_handler_test_base
|
|
|
|
absl::strings
|
|
|
|
glog
|
|
|
|
gmock)
|
2022-11-02 15:34:06 +00:00
|
|
|
|
|
|
|
add_executable(media_base_unittest
|
|
|
|
aes_cryptor_unittest.cc
|
|
|
|
aes_pattern_cryptor_unittest.cc
|
2022-11-04 22:46:41 +00:00
|
|
|
audio_timestamp_helper_unittest.cc
|
|
|
|
bit_reader_unittest.cc
|
|
|
|
bit_writer_unittest.cc
|
|
|
|
buffer_writer_unittest.cc
|
|
|
|
container_names_unittest.cc
|
|
|
|
decryptor_source_unittest.cc
|
|
|
|
http_key_fetcher_unittest.cc
|
|
|
|
id3_tag_unittest.cc
|
|
|
|
muxer_util_unittest.cc
|
|
|
|
offset_byte_queue_unittest.cc
|
|
|
|
producer_consumer_queue_unittest.cc
|
|
|
|
protection_system_specific_info_unittest.cc
|
|
|
|
pssh_generator_unittest.cc
|
|
|
|
raw_key_source_unittest.cc
|
2022-11-02 15:34:06 +00:00
|
|
|
rsa_key_unittest.cc
|
|
|
|
test/rsa_test_data.cc
|
2022-11-04 22:46:41 +00:00
|
|
|
video_util_unittest.cc
|
|
|
|
widevine_key_source_unittest.cc)
|
2022-11-02 15:34:06 +00:00
|
|
|
target_link_libraries(media_base_unittest
|
2022-11-04 22:46:41 +00:00
|
|
|
file
|
|
|
|
file_test_util
|
2022-11-02 15:34:06 +00:00
|
|
|
media_base
|
|
|
|
gmock
|
|
|
|
gtest
|
|
|
|
gtest_main
|
2023-07-14 01:55:48 +00:00
|
|
|
test_data_util
|
|
|
|
test_web_server)
|
2022-11-02 15:34:06 +00:00
|
|
|
add_test(NAME media_base_unittest COMMAND media_base_unittest)
|