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

Unified Diff: webrtc/base/BUILD.gn

Issue 1753293002: Safe numeric library: base/numerics (copied from Chromium) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase with master + correct new safe_conversions.h include Created 4 years, 9 months 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/base/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/BUILD.gn
diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn
index 5726a26e6aeb03782fa9dc77437491d4162e438c..ac2a3ac59c4293dc748e8c82ad101dc9396611f5 100644
--- a/webrtc/base/BUILD.gn
+++ b/webrtc/base/BUILD.gn
@@ -141,8 +141,6 @@ static_library("rtc_base_approved") {
"rate_statistics.cc",
"rate_statistics.h",
"refcount.h",
- "safe_conversions.h",
- "safe_conversions_impl.h",
"scoped_ptr.h",
"scoped_ref_ptr.h",
"stringencode.cc",
@@ -181,10 +179,6 @@ static_library("rtc_base") {
cflags = []
cflags_cc = []
libs = []
- deps = []
- public_deps = [
- ":rtc_base_approved",
- ]
configs += [
"..:common_config",
@@ -198,6 +192,13 @@ static_library("rtc_base") {
defines = [ "LOGGING=1" ]
+ deps = [
+ ":safe_numerics",
+ ]
+ public_deps = [
+ ":rtc_base_approved",
+ ]
+
sources = [
"arraysize.h",
"asyncfile.cc",
@@ -657,3 +658,16 @@ source_set("gtest_prod") {
"gtest_prod_util.h",
]
}
+
+# GYP version: webrtc/base/base.gyp:safe_numerics
+source_set("safe_numerics") {
+ deps = [
+ ":rtc_base_approved",
+ ]
+ sources = [
+ "numerics/safe_conversions.h",
+ "numerics/safe_conversions_impl.h",
+ "numerics/safe_math.h",
+ "numerics/safe_math_impl.h",
+ ]
+}
« no previous file with comments | « no previous file | webrtc/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698