blob: 6ebbfb9d6b63f9ad2f9472561b51ee1bccacc699 [file] [log] [blame]
ilnikd60d06a2017-04-05 03:02:20 -07001# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("../../webrtc.gni")
10if (is_android) {
11 import("//build/config/android/config.gni")
12 import("//build/config/android/rules.gni")
13}
14
15rtc_source_set("video_codecs_api") {
Per Kjellandera7f2d842018-01-10 15:54:53 +000016 visibility = [ "*" ]
ilnikd60d06a2017-04-05 03:02:20 -070017 sources = [
Niels Möllerbe682d42018-03-27 08:31:45 +020018 "sdp_video_format.cc",
andersc063f0c02017-09-11 11:50:51 -070019 "sdp_video_format.h",
Niels Möller802506c2018-05-31 10:44:51 +020020 "video_codec.h",
Niels Möllerbe682d42018-03-27 08:31:45 +020021 "video_decoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070022 "video_decoder.h",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020023 "video_decoder_factory.h",
mflodman351424e2017-08-10 02:43:14 -070024 "video_encoder.cc",
ilnikd60d06a2017-04-05 03:02:20 -070025 "video_encoder.h",
Niels Möller0a8f4352018-05-18 11:37:23 +020026 "video_encoder_config.cc",
27 "video_encoder_config.h",
Magnus Jedvertd4b0c052017-09-14 10:24:54 +020028 "video_encoder_factory.h",
ilnikd60d06a2017-04-05 03:02:20 -070029 ]
30
31 deps = [
kwiberg84f6a3f2017-09-05 08:43:13 -070032 "..:optional",
ilnikd60d06a2017-04-05 03:02:20 -070033 "../..:webrtc_common",
nisseea3a7982017-05-15 02:42:11 -070034 "../../common_video",
Patrik Höglunda8005cf2017-12-13 16:05:42 +010035 "../../rtc_base:checks",
ehmaldonadof6a861a2017-07-19 10:40:47 -070036 "../../rtc_base:rtc_base_approved",
Erik Språngec475652018-05-15 15:12:55 +020037 "../video:video_bitrate_allocation",
Niels Möllerc6ce9c52018-05-11 11:15:30 +020038 "../video:video_frame",
ilnikd60d06a2017-04-05 03:02:20 -070039 ]
40}
Anders Carlsson67537952018-05-03 11:28:29 +020041
42rtc_static_library("builtin_video_decoder_factory") {
43 visibility = [ "*" ]
44 allow_poison = [
45 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
46 "software_video_codecs",
47 ]
48 sources = [
49 "builtin_video_decoder_factory.cc",
50 "builtin_video_decoder_factory.h",
51 ]
52
53 deps = [
54 ":video_codecs_api",
55 "../../media:rtc_internal_video_codecs",
56 "../../rtc_base:ptr_util",
57 ]
58}
59
60rtc_static_library("builtin_video_encoder_factory") {
61 visibility = [ "*" ]
62 allow_poison = [
63 "audio_codecs", # TODO(bugs.webrtc.org/8396): Remove.
64 "software_video_codecs",
65 ]
66 sources = [
67 "builtin_video_encoder_factory.cc",
68 "builtin_video_encoder_factory.h",
69 ]
70
71 deps = [
72 ":video_codecs_api",
73 "../../media:rtc_internal_video_codecs",
74 "../../media:rtc_media_base",
75 "../../rtc_base:ptr_util",
76 ]
77}