OLD | NEW |
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
8 | 8 |
9 import("../webrtc.gni") | 9 import("../webrtc.gni") |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 "../api:video_frame_api", | 66 "../api:video_frame_api", |
67 ] | 67 ] |
68 | 68 |
69 if (rtc_build_libyuv) { | 69 if (rtc_build_libyuv) { |
70 deps += [ "$rtc_libyuv_dir" ] | 70 deps += [ "$rtc_libyuv_dir" ] |
71 public_deps += [ "$rtc_libyuv_dir" ] | 71 public_deps += [ "$rtc_libyuv_dir" ] |
72 } else { | 72 } else { |
73 # Need to add a directory normally exported by libyuv. | 73 # Need to add a directory normally exported by libyuv. |
74 include_dirs += [ "$rtc_libyuv_dir/include" ] | 74 include_dirs += [ "$rtc_libyuv_dir/include" ] |
75 } | 75 } |
76 | |
77 if (is_ios || is_mac) { | |
78 sources += [ | |
79 "corevideo_frame_buffer.cc", | |
80 "include/corevideo_frame_buffer.h", | |
81 ] | |
82 libs = [ "CoreVideo.framework" ] | |
83 } | |
84 } | 76 } |
85 | 77 |
86 if (rtc_include_tests) { | 78 if (rtc_include_tests) { |
87 common_video_resources = [ "//resources/foreman_cif.yuv" ] | 79 common_video_resources = [ "//resources/foreman_cif.yuv" ] |
88 | 80 |
89 if (is_ios) { | 81 if (is_ios) { |
90 bundle_data("common_video_unittests_bundle_data") { | 82 bundle_data("common_video_unittests_bundle_data") { |
91 testonly = true | 83 testonly = true |
92 sources = common_video_resources | 84 sources = common_video_resources |
93 outputs = [ | 85 outputs = [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 if (is_android) { | 127 if (is_android) { |
136 deps += [ "//testing/android/native_test:native_test_support" ] | 128 deps += [ "//testing/android/native_test:native_test_support" ] |
137 shard_timeout = 900 | 129 shard_timeout = 900 |
138 } | 130 } |
139 | 131 |
140 if (is_ios) { | 132 if (is_ios) { |
141 deps += [ ":common_video_unittests_bundle_data" ] | 133 deps += [ ":common_video_unittests_bundle_data" ] |
142 } | 134 } |
143 } | 135 } |
144 } | 136 } |
OLD | NEW |