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

Unified Diff: webrtc/media/BUILD.gn

Issue 2471573003: Split out target rtc_media_base from rtc_media (Closed)
Patch Set: Rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/BUILD.gn
diff --git a/webrtc/media/BUILD.gn b/webrtc/media/BUILD.gn
index 590450bd296f0ab0ff97ab4e63e86b9a08ea423d..695cb8d5d0ffcd855f1e27fb6c99012cccae2144 100644
--- a/webrtc/media/BUILD.gn
+++ b/webrtc/media/BUILD.gn
@@ -12,6 +12,7 @@ import("../build/webrtc.gni")
group("media") {
public_deps = [
":rtc_media",
+ ":rtc_media_base",
]
}
@@ -41,7 +42,7 @@ if (is_linux && rtc_use_gtk) {
}
}
-rtc_static_library("rtc_media") {
+rtc_static_library("rtc_media_base") {
defines = []
libs = []
deps = []
@@ -81,6 +82,38 @@ rtc_static_library("rtc_media") {
"base/videoframe.h",
"base/videosourcebase.cc",
"base/videosourcebase.h",
+ ]
+
+ configs += [ ":rtc_media_warnings_config" ]
+
+ if (!build_with_chromium && is_clang) {
+ # Suppress warnings from the Chromium Clang plugin (bugs.webrtc.org/163).
+ suppressed_configs += [ "//build/config/clang:find_bad_constructs" ]
+ }
+
+ include_dirs = []
+ 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" ]
+ }
+
+ deps += [
+ "..:webrtc_common",
+ "../base:rtc_base_approved",
+ "../p2p",
+ ]
+}
+
+rtc_static_library("rtc_media") {
+ defines = []
+ libs = []
+ deps = []
+ sources = [
"engine/internalencoderfactory.cc",
"engine/internalencoderfactory.h",
"engine/nullwebrtcvideoengine.h",
@@ -166,15 +199,14 @@ rtc_static_library("rtc_media") {
public_configs += [ ":gtk-lib" ]
}
deps += [
+ ":rtc_media_base",
"..:webrtc_common",
"../api:call_api",
"../base:rtc_base_approved",
"../call",
"../modules/audio_mixer:audio_mixer_impl",
"../modules/video_coding",
- "../p2p",
"../system_wrappers",
- "../video",
"../voice_engine",
]
}
« no previous file with comments | « no previous file | webrtc/media/base/codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698