| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
| 6 | 6 |
| 7 executable("ipc_fuzzer") { | 7 executable("ipc_fuzzer") { |
| 8 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_tool_config" ] | 8 configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_tool_config" ] |
| 9 sources = [ | 9 sources = [ |
| 10 "fuzzer.cc", | 10 "fuzzer.cc", |
| 11 "fuzzer.h", | 11 "fuzzer.h", |
| 12 "fuzzer_main.cc", | 12 "fuzzer_main.cc", |
| 13 "generator.cc", | 13 "generator.cc", |
| 14 "generator.h", | 14 "generator.h", |
| 15 "mutator.cc", | 15 "mutator.cc", |
| 16 "mutator.h", | 16 "mutator.h", |
| 17 "rand_util.cc", | 17 "rand_util.cc", |
| 18 "rand_util.h", | 18 "rand_util.h", |
| 19 ] | 19 ] |
| 20 deps = [ | 20 deps = [ |
| 21 "//tools/ipc_fuzzer/message_lib:ipc_message_lib", | 21 "//tools/ipc_fuzzer/message_lib:ipc_message_lib", |
| 22 ] | 22 ] |
| 23 public_deps = [ |
| 24 "//ipc", |
| 25 ] |
| 23 if (is_asan && is_chromeos) { | 26 if (is_asan && is_chromeos) { |
| 24 # Compiling fuzzer.cc with ASan takes too long, see | 27 # Compiling fuzzer.cc with ASan takes too long, see |
| 25 # http://crbug.com/360158. | 28 # http://crbug.com/360158. |
| 26 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] | 29 configs -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
| 27 configs += [ "//build/config/sanitizers:default_sanitizer_ldflags" ] | 30 configs += [ "//build/config/sanitizers:default_sanitizer_ldflags" ] |
| 28 } | 31 } |
| 29 } | 32 } |
| OLD | NEW |