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

Unified Diff: webrtc/base/numerics/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: Comment about chromium_revision Created 4 years, 10 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
Index: webrtc/base/numerics/BUILD.gn
diff --git a/BUILD.gn b/webrtc/base/numerics/BUILD.gn
similarity index 54%
copy from BUILD.gn
copy to webrtc/base/numerics/BUILD.gn
index b7f7a0619a9a73591c070aee611224ec6a544f79..d3edd1f91e68fb0dda2242db242c440d004728b3 100644
--- a/BUILD.gn
+++ b/webrtc/base/numerics/BUILD.gn
@@ -1,4 +1,4 @@
-# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
+# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
@@ -6,9 +6,12 @@
# in the file PATENTS. All contributing project authors may
# be found in the AUTHORS file in the root of the source tree.
-# This file is copied and modified from Chromium (src/BUILD.gn).
-group("root") {
- deps = [
- "//webrtc",
+# GYP version: webrtc/base/numerics/safe_numerics.gyp:safe_numerics
+source_set("safe_numerics") {
+ sources = [
+ "safe_conversions.h",
+ "safe_conversions_impl.h",
+ "safe_math.h",
+ "safe_math_impl.h",
]
hbos 2016/03/02 15:46:51 Is this correct (and similar in GYP as a static_li
tommi 2016/03/02 16:13:53 Can we make this depend on base and base not depen
kjellander_webrtc 2016/03/02 18:40:05 Please don't add a new BUILD.gn file, add a new ta
kwiberg-webrtc 2016/03/02 20:14:12 Specifically, can we have base depend on numerics
kjellander_webrtc 2016/03/03 10:25:20 I guess that would work since it's not a cycle.
hbos 2016/03/03 14:17:06 I changed it to webrtc/base/logging.h but it turns
hbos 2016/03/03 14:17:06 Oh, nice. Yes that works. Now we have rtc_base ->
}

Powered by Google App Engine
This is Rietveld 408576698