Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1557)

Unified Diff: webrtc/api/BUILD.gn

Issue 2517173004: Move VideoFrame and related declarations to webrtc/api/video. (Closed)
Patch Set: Rebased. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/BUILD.gn
diff --git a/webrtc/api/BUILD.gn b/webrtc/api/BUILD.gn
index dabfb4b2f90113b6cdcc1ea6de8b9a88ef33c716..0ba0638c1e8b6f0f64909e82c30220c8ef527bf0 100644
--- a/webrtc/api/BUILD.gn
+++ b/webrtc/api/BUILD.gn
@@ -368,6 +368,34 @@ rtc_source_set("transport_api") {
"call/transport.h",
]
}
+
+rtc_source_set("video_frame_api") {
+ sources = [
+ "video/i420_buffer.cc",
+ "video/i420_buffer.h",
+ "video/video_frame.cc",
+ "video/video_frame.h",
+ "video/video_frame_buffer.h",
+ "video/video_rotation.h",
+ ]
+
+ deps = [
+ "../base:rtc_base_approved",
+ ]
+
+ # TODO(nisse): This logic is duplicated in multiple places.
+ # Define in a single place.
+ if (rtc_build_libyuv) {
+ deps += [ "$rtc_libyuv_dir" ]
+ public_deps = [
+ "$rtc_libyuv_dir",
+ ]
+ } else {
+ # Need to add a directory normally exported by libyuv.
+ include_dirs = [ "$rtc_libyuv_dir/include" ]
+ }
+}
+
if (rtc_include_tests) {
config("peerconnection_unittests_config") {
# The warnings below are enabled by default. Since GN orders compiler flags

Powered by Google App Engine
This is Rietveld 408576698