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 } |
76 } | 84 } |
77 | 85 |
78 if (rtc_include_tests) { | 86 if (rtc_include_tests) { |
79 common_video_resources = [ "//resources/foreman_cif.yuv" ] | 87 common_video_resources = [ "//resources/foreman_cif.yuv" ] |
80 | 88 |
81 if (is_ios) { | 89 if (is_ios) { |
82 bundle_data("common_video_unittests_bundle_data") { | 90 bundle_data("common_video_unittests_bundle_data") { |
83 testonly = true | 91 testonly = true |
84 sources = common_video_resources | 92 sources = common_video_resources |
85 outputs = [ | 93 outputs = [ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 if (is_android) { | 135 if (is_android) { |
128 deps += [ "//testing/android/native_test:native_test_support" ] | 136 deps += [ "//testing/android/native_test:native_test_support" ] |
129 shard_timeout = 900 | 137 shard_timeout = 900 |
130 } | 138 } |
131 | 139 |
132 if (is_ios) { | 140 if (is_ios) { |
133 deps += [ ":common_video_unittests_bundle_data" ] | 141 deps += [ ":common_video_unittests_bundle_data" ] |
134 } | 142 } |
135 } | 143 } |
136 } | 144 } |
OLD | NEW |