52 lines
1.0 KiB
CMake
52 lines
1.0 KiB
CMake
|
|
||
|
# Copyright 2016 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(hls_builder
|
||
|
base/hls_notifier.h
|
||
|
base/master_playlist.cc
|
||
|
base/master_playlist.h
|
||
|
base/media_playlist.cc
|
||
|
base/media_playlist.h
|
||
|
base/simple_hls_notifier.cc
|
||
|
base/simple_hls_notifier.h
|
||
|
base/tag.cc
|
||
|
base/tag.h
|
||
|
public/hls_params.h
|
||
|
)
|
||
|
|
||
|
target_link_libraries(hls_builder
|
||
|
file
|
||
|
media_base
|
||
|
widevine_protos
|
||
|
manifest_base
|
||
|
mpd_media_info_proto
|
||
|
absl::flags
|
||
|
absl::strings
|
||
|
absl::str_format
|
||
|
glog
|
||
|
)
|
||
|
|
||
|
add_executable(hls_unittest
|
||
|
base/master_playlist_unittest.cc
|
||
|
base/media_playlist_unittest.cc
|
||
|
base/mock_media_playlist.cc
|
||
|
base/mock_media_playlist.h
|
||
|
base/simple_hls_notifier_unittest.cc
|
||
|
)
|
||
|
|
||
|
target_link_libraries(hls_unittest
|
||
|
file
|
||
|
file_test_util
|
||
|
test_data_util
|
||
|
absl::flags
|
||
|
hls_builder
|
||
|
gmock
|
||
|
gtest
|
||
|
gtest_main)
|
||
|
|
||
|
add_test(NAME hls_unittest COMMAND hls_unittest)
|