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

Unified Diff: webrtc/base/base.gyp

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 | « webrtc/base/DEPS ('k') | webrtc/base/numerics/safe_conversions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/base.gyp
diff --git a/webrtc/base/base.gyp b/webrtc/base/base.gyp
index a6b2b1cd4aec4cc348dc47363c7f6e432b13f479..d0a457bd1f1631ec1105da1687647321057e170a 100644
--- a/webrtc/base/base.gyp
+++ b/webrtc/base/base.gyp
@@ -115,8 +115,6 @@
'ratetracker.cc',
'ratetracker.h',
'refcount.h',
- 'safe_conversions.h',
- 'safe_conversions_impl.h',
'scoped_ptr.h',
'scoped_ref_ptr.h',
'stringencode.cc',
@@ -159,6 +157,7 @@
'dependencies': [
'<(webrtc_root)/common.gyp:webrtc_common',
'rtc_base_approved',
+ 'safe_numerics',
],
'export_dependent_settings': [
'rtc_base_approved',
@@ -499,8 +498,6 @@
'proxyserver.h',
'referencecountedsingletonfactory.h',
'rollingaccumulator.h',
- 'safe_conversions.h',
- 'safe_conversions_impl.h',
'scopedptrcollection.h',
'sec_buffer.h',
'sslconfig.h',
@@ -751,5 +748,19 @@
'gtest_prod_util.h',
],
},
+ {
+ # GN version: webrtc/base:safe_numerics
+ 'target_name': 'safe_numerics',
+ 'type': 'static_library',
+ 'dependencies': [
+ '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 | « webrtc/base/DEPS ('k') | webrtc/base/numerics/safe_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698