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

Side by Side Diff: webrtc/BUILD.gn

Issue 2143053002: [AFL] Allow webrtc fuzzers to be used with afl-fuzz. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 | « setup_links.py ('k') | no next file » | 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 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330. 9 # TODO(kjellander): Rebase this to webrtc/build/common.gypi changes after r6330.
10 10
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 # The Android NDK doesn"t provide optimized versions of these 216 # The Android NDK doesn"t provide optimized versions of these
217 # functions. Ensure they are disabled for all compilers. 217 # functions. Ensure they are disabled for all compilers.
218 cflags += [ 218 cflags += [
219 "-fno-builtin-cos", 219 "-fno-builtin-cos",
220 "-fno-builtin-sin", 220 "-fno-builtin-sin",
221 "-fno-builtin-cosf", 221 "-fno-builtin-cosf",
222 "-fno-builtin-sinf", 222 "-fno-builtin-sinf",
223 ] 223 ]
224 } 224 }
225 225
226 if (use_libfuzzer || use_drfuzz) { 226 if (use_libfuzzer || use_drfuzz || use_afl) {
227 # Used in Chromium's overrides to disable logging 227 # Used in Chromium's overrides to disable logging
228 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ] 228 defines += [ "WEBRTC_UNSAFE_FUZZER_MODE" ]
229 } 229 }
230 } 230 }
231 231
232 config("common_objc") { 232 config("common_objc") {
233 cflags = [ "-Wobjc-missing-property-synthesis" ] 233 cflags = [ "-Wobjc-missing-property-synthesis" ]
234 234
235 precompiled_header = "sdk/objc/WebRTC-Prefix.pch" 235 precompiled_header = "sdk/objc/WebRTC-Prefix.pch"
236 precompiled_source = "sdk/objc/WebRTC-Prefix.pch" 236 precompiled_source = "sdk/objc/WebRTC-Prefix.pch"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ] 364 ]
365 365
366 if (is_clang && !is_nacl) { 366 if (is_clang && !is_nacl) {
367 # Suppress warnings from Chrome's Clang plugins. 367 # Suppress warnings from Chrome's Clang plugins.
368 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 368 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
369 configs -= [ "//build/config/clang:find_bad_constructs" ] 369 configs -= [ "//build/config/clang:find_bad_constructs" ]
370 } 370 }
371 } 371 }
372 } 372 }
373 373
374 if (use_libfuzzer || use_drfuzz) { 374 if (use_libfuzzer || use_drfuzz || use_afl) {
375 # This target is only here for gn to discover fuzzer build targets under 375 # This target is only here for gn to discover fuzzer build targets under
376 # webrtc/test/fuzzers/. 376 # webrtc/test/fuzzers/.
377 group("webrtc_fuzzers_dummy") { 377 group("webrtc_fuzzers_dummy") {
378 testonly = true 378 testonly = true
379 deps = [ 379 deps = [
380 "test/fuzzers:webrtc_fuzzer_main", 380 "test/fuzzers:webrtc_fuzzer_main",
381 ] 381 ]
382 } 382 }
383 } 383 }
384 384
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 if (is_ios || (is_mac && target_cpu != "x86")) { 656 if (is_ios || (is_mac && target_cpu != "x86")) {
657 defines = [ "CARBON_DEPRECATED=YES" ] 657 defines = [ "CARBON_DEPRECATED=YES" ]
658 } 658 }
659 if (is_clang) { 659 if (is_clang) {
660 # Suppress warnings from the Chromium Clang plugin. 660 # Suppress warnings from the Chromium Clang plugin.
661 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. 661 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
662 configs -= [ "//build/config/clang:find_bad_constructs" ] 662 configs -= [ "//build/config/clang:find_bad_constructs" ]
663 } 663 }
664 } 664 }
665 } 665 }
OLDNEW
« no previous file with comments | « setup_links.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698