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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/base/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 1 # Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
2 # 2 #
3 # Use of this source code is governed by a BSD-style license 3 # Use of this source code is governed by a BSD-style license
4 # that can be found in the LICENSE file in the root of the source 4 # that can be found in the LICENSE file in the root of the source
5 # tree. An additional intellectual property rights grant can be found 5 # tree. An additional intellectual property rights grant can be found
6 # in the file PATENTS. All contributing project authors may 6 # in the file PATENTS. All contributing project authors may
7 # be found in the AUTHORS file in the root of the source tree. 7 # be found in the AUTHORS file in the root of the source tree.
8 8
9 import("//build/config/crypto.gni") 9 import("//build/config/crypto.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 "platform_file.cc", 134 "platform_file.cc",
135 "platform_file.h", 135 "platform_file.h",
136 "platform_thread.cc", 136 "platform_thread.cc",
137 "platform_thread.h", 137 "platform_thread.h",
138 "platform_thread_types.h", 138 "platform_thread_types.h",
139 "random.cc", 139 "random.cc",
140 "random.h", 140 "random.h",
141 "rate_statistics.cc", 141 "rate_statistics.cc",
142 "rate_statistics.h", 142 "rate_statistics.h",
143 "refcount.h", 143 "refcount.h",
144 "safe_conversions.h",
145 "safe_conversions_impl.h",
146 "scoped_ptr.h", 144 "scoped_ptr.h",
147 "scoped_ref_ptr.h", 145 "scoped_ref_ptr.h",
148 "stringencode.cc", 146 "stringencode.cc",
149 "stringencode.h", 147 "stringencode.h",
150 "stringutils.cc", 148 "stringutils.cc",
151 "stringutils.h", 149 "stringutils.h",
152 "systeminfo.cc", 150 "systeminfo.cc",
153 "systeminfo.h", 151 "systeminfo.h",
154 "template_util.h", 152 "template_util.h",
155 "thread_annotations.h", 153 "thread_annotations.h",
(...skipping 18 matching lines...) Expand all
174 "logging.cc", 172 "logging.cc",
175 "logging.h", 173 "logging.h",
176 ] 174 ]
177 } 175 }
178 } 176 }
179 177
180 static_library("rtc_base") { 178 static_library("rtc_base") {
181 cflags = [] 179 cflags = []
182 cflags_cc = [] 180 cflags_cc = []
183 libs = [] 181 libs = []
184 deps = []
185 public_deps = [
186 ":rtc_base_approved",
187 ]
188 182
189 configs += [ 183 configs += [
190 "..:common_config", 184 "..:common_config",
191 ":rtc_base_config", 185 ":rtc_base_config",
192 ] 186 ]
193 187
194 public_configs = [ 188 public_configs = [
195 "..:common_inherited_config", 189 "..:common_inherited_config",
196 ":rtc_base_config", 190 ":rtc_base_config",
197 ] 191 ]
198 192
199 defines = [ "LOGGING=1" ] 193 defines = [ "LOGGING=1" ]
200 194
195 deps = [
196 ":safe_numerics",
197 ]
198 public_deps = [
199 ":rtc_base_approved",
200 ]
201
201 sources = [ 202 sources = [
202 "arraysize.h", 203 "arraysize.h",
203 "asyncfile.cc", 204 "asyncfile.cc",
204 "asyncfile.h", 205 "asyncfile.h",
205 "asyncinvoker-inl.h", 206 "asyncinvoker-inl.h",
206 "asyncinvoker.cc", 207 "asyncinvoker.cc",
207 "asyncinvoker.h", 208 "asyncinvoker.h",
208 "asyncpacketsocket.cc", 209 "asyncpacketsocket.cc",
209 "asyncpacketsocket.h", 210 "asyncpacketsocket.h",
210 "asyncresolverinterface.cc", 211 "asyncresolverinterface.cc",
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 "objc/RTCTracing.mm", 651 "objc/RTCTracing.mm",
651 ] 652 ]
652 } 653 }
653 } 654 }
654 655
655 source_set("gtest_prod") { 656 source_set("gtest_prod") {
656 sources = [ 657 sources = [
657 "gtest_prod_util.h", 658 "gtest_prod_util.h",
658 ] 659 ]
659 } 660 }
661
662 # GYP version: webrtc/base/base.gyp:safe_numerics
663 source_set("safe_numerics") {
664 deps = [
665 ":rtc_base_approved",
666 ]
667 sources = [
668 "numerics/safe_conversions.h",
669 "numerics/safe_conversions_impl.h",
670 "numerics/safe_math.h",
671 "numerics/safe_math_impl.h",
672 ]
673 }
OLDNEW
« 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