GN: Prepare to remove webrtc_base target

Keep the webrtc_base target temporarily while waiting for
Chromium to pick up this revision. Then we'll update Chromium
and remove the webrtc_base target for real.

This should have been a part of https://code.google.com/p/webrtc/source/detail?r=7140

R=pbos@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/33979004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@8117 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
kjellander@webrtc.org 2015-01-21 20:22:33 +00:00
parent c78d81ae89
commit c429b824b3
3 changed files with 18 additions and 10 deletions

View File

@ -198,7 +198,7 @@ source_set("webrtc") {
deps = [
":webrtc_common",
"base:webrtc_base",
"base:rtc_base",
"common_audio",
"common_video",
"modules/audio_coding",

View File

@ -10,7 +10,7 @@ import("//build/config/crypto.gni")
import("//build/config/ui.gni")
import("../build/webrtc.gni")
config("webrtc_base_config") {
config("rtc_base_config") {
include_dirs = [
"//third_party/jsoncpp/overrides/include",
"//third_party/jsoncpp/source/include",
@ -22,12 +22,12 @@ config("webrtc_base_config") {
"USE_WEBRTC_DEV_BRANCH",
]
# TODO(henrike): issue 3307, make webrtc_base build without disabling
# TODO(henrike): issue 3307, make rtc_base build without disabling
# these flags.
cflags_cc = [ "-Wno-non-virtual-dtor" ]
}
config("webrtc_base_chromium_config") {
config("rtc_base_chromium_config") {
defines = [
"NO_MAIN_THREAD_WRAPPING",
]
@ -126,7 +126,15 @@ static_library("rtc_base_approved") {
]
}
static_library("webrtc_base") {
# Temporary target until Chromium's use of webrtc_base is updated to rtc_base.
# TODO(kjellander): Remove when this is rolled into Chromium's DEPS.
group("webrtc_base") {
deps = [
":rtc_base",
]
}
static_library("rtc_base") {
cflags = []
cflags_cc = []
libs = []
@ -136,12 +144,12 @@ static_library("webrtc_base") {
configs += [
"..:common_config",
":webrtc_base_config",
":rtc_base_config",
]
public_configs = [
"..:common_inherited_config",
":webrtc_base_config",
":rtc_base_config",
]
defines = [
@ -310,7 +318,7 @@ static_library("webrtc_base") {
"../../boringssl/src/include",
]
public_configs += [ ":webrtc_base_chromium_config" ]
public_configs += [ ":rtc_base_chromium_config" ]
} else {
sources += [
"asyncinvoker.cc",
@ -441,7 +449,7 @@ static_library("webrtc_base") {
configs -= [ "//build/config/clang:find_bad_constructs" ]
}
# TODO(henrike): issue 3307, make webrtc_base build with the Chromium default
# TODO(henrike): issue 3307, make rtc_base build with the Chromium default
# compiler settings.
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]

View File

@ -127,8 +127,8 @@ source_set("desktop_capture") {
}
deps = [
"../../base:rtc_base_approved",
"../../system_wrappers",
"../../base:webrtc_base",
]
if (use_desktop_capture_differ_sse2) {