Index: webrtc/base/BUILD.gn |
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn |
index 411e84863dd71382e4556afcd1895bde8092c8f7..fe6d6d256e62f1a3c4484a49e1bbf3495c7c0af0 100644 |
--- a/webrtc/base/BUILD.gn |
+++ b/webrtc/base/BUILD.gn |
@@ -132,6 +132,7 @@ static_library("rtc_base_approved") { |
"md5.h", |
"md5digest.cc", |
"md5digest.h", |
+ "mod_ops.h", |
"optional.h", |
"platform_file.cc", |
"platform_file.h", |
@@ -142,6 +143,8 @@ static_library("rtc_base_approved") { |
"random.h", |
"rate_statistics.cc", |
"rate_statistics.h", |
+ "ratetracker.cc", |
+ "ratetracker.h", |
"refcount.h", |
"safe_conversions.h", |
"safe_conversions_impl.h", |
@@ -184,7 +187,9 @@ static_library("rtc_base") { |
cflags = [] |
cflags_cc = [] |
libs = [] |
- deps = [] |
+ deps = [ |
+ "..:webrtc_common", |
+ ] |
public_deps = [ |
":rtc_base_approved", |
] |
@@ -257,7 +262,6 @@ static_library("rtc_base") { |
"ipaddress.cc", |
"ipaddress.h", |
"linked_ptr.h", |
- "mathutils.h", |
perkj_webrtc
2016/04/05 07:08:12
intentionally removed?
kjellander_webrtc
2016/04/05 07:21:38
Yes, base.gyp only lists this for non-Chromium bui
|
"messagedigest.cc", |
"messagedigest.h", |
"messagehandler.cc", |
@@ -281,12 +285,8 @@ static_library("rtc_base") { |
"proxyinfo.h", |
"ratelimiter.cc", |
"ratelimiter.h", |
- "ratetracker.cc", |
- "ratetracker.h", |
"rtccertificate.cc", |
"rtccertificate.h", |
- "scoped_autorelease_pool.h", |
- "scoped_autorelease_pool.mm", |
"sha1.cc", |
"sha1.h", |
"sha1digest.cc", |
@@ -339,22 +339,7 @@ static_library("rtc_base") { |
"worker.h", |
] |
- if (is_posix) { |
- sources += [ |
- "ifaddrs-android.h", |
- "ifaddrs_converter.cc", |
- "unixfilesystem.cc", |
- "unixfilesystem.h", |
- ] |
- } |
- |
if (build_with_chromium) { |
- deps += [ "..:webrtc_common" ] |
- |
- if (is_mac) { |
- sources += [ "macifaddrs_converter.cc" ] |
- } |
- |
if (is_win) { |
sources += [ "../../webrtc_overrides/webrtc/base/win32socketinit.cc" ] |
} |
@@ -374,8 +359,6 @@ static_library("rtc_base") { |
"callback.h", |
"callback.h.pump", |
"fileutils_mock.h", |
- "genericslot.h", |
perkj_webrtc
2016/04/05 07:08:12
why removed?
kjellander_webrtc
2016/04/05 07:21:38
They don't exist (removed in https://webrtc-codere
|
- "genericslot.h.pump", |
"httpserver.cc", |
"httpserver.h", |
"json.cc", |
@@ -403,6 +386,7 @@ static_library("rtc_base") { |
"sec_buffer.h", |
"sslconfig.h", |
"sslroots.h", |
+ "testbase64.h", |
perkj_webrtc
2016/04/05 07:08:12
intentionally added?
kjellander_webrtc
2016/04/05 07:21:38
Yes, to match base.gyp
|
"testclient.cc", |
"testclient.h", |
"transformadapter.cc", |
@@ -416,7 +400,16 @@ static_library("rtc_base") { |
"windowpickerfactory.h", |
] |
- deps += [ "..:webrtc_common" ] |
+ if (is_linux) { |
+ sources += [ |
+ "dbus.cc", |
+ "dbus.h", |
+ "libdbusglibsymboltable.cc", |
+ "libdbusglibsymboltable.h", |
+ "linuxfdwalk.c", |
+ "linuxfdwalk.h", |
+ ] |
+ } |
if (is_posix) { |
sources += [ |
@@ -429,17 +422,6 @@ static_library("rtc_base") { |
] |
} |
- if (is_linux) { |
- sources += [ |
- "dbus.cc", |
- "dbus.h", |
- "libdbusglibsymboltable.cc", |
- "libdbusglibsymboltable.h", |
- "linuxfdwalk.c", |
- "linuxfdwalk.h", |
- ] |
- } |
- |
if (is_mac) { |
sources += [ |
"macasyncsocket.cc", |
@@ -516,14 +498,15 @@ static_library("rtc_base") { |
] |
} |
- if (is_ios) { |
- all_dependent_configs = [ ":ios_config" ] |
- |
+ if (is_ios || is_mac) { |
sources += [ |
"maccocoathreadhelper.h", |
"maccocoathreadhelper.mm", |
"macconversion.cc", |
"macconversion.h", |
+ "macifaddrs_converter.cc", |
+ "scoped_autorelease_pool.h", |
+ "scoped_autorelease_pool.mm", |
] |
} |
@@ -551,10 +534,6 @@ static_library("rtc_base") { |
if (is_mac) { |
sources += [ |
- "maccocoathreadhelper.h", |
- "maccocoathreadhelper.mm", |
- "macconversion.cc", |
- "macconversion.h", |
"macutils.cc", |
"macutils.h", |
] |
@@ -598,11 +577,19 @@ static_library("rtc_base") { |
defines += [ "_CRT_NONSTDC_NO_DEPRECATE" ] |
} |
- if (is_posix && is_debug) { |
- # The Chromium build/common.gypi defines this for all posix |
- # _except_ for ios & mac. We want it there as well, e.g. |
- # because ASSERT and friends trigger off of it. |
- defines += [ "_DEBUG" ] |
+ if (is_posix) { |
+ sources += [ |
+ "ifaddrs_converter.cc", |
+ "ifaddrs_converter.h", |
+ "unixfilesystem.cc", |
+ "unixfilesystem.h", |
+ ] |
+ if (is_debug) { |
+ # The Chromium build/common.gypi defines this for all posix |
+ # _except_ for ios & mac. We want it there as well, e.g. |
+ # because ASSERT and friends trigger off of it. |
+ defines += [ "_DEBUG" ] |
+ } |
} |
if (is_ios || (is_mac && current_cpu != "x86")) { |
@@ -624,6 +611,8 @@ static_library("rtc_base") { |
} |
if (is_ios) { |
+ all_dependent_configs = [ ":ios_config" ] |
+ |
source_set("rtc_base_objc") { |
deps = [ |
":rtc_base", |