Index: tools/ipc_fuzzer/fuzzer/BUILD.gn |
diff --git a/tools/ipc_fuzzer/fuzzer/BUILD.gn b/tools/ipc_fuzzer/fuzzer/BUILD.gn |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d2b8cf273d72dd606cd09b49c528de7fdfcd0b8c |
--- /dev/null |
+++ b/tools/ipc_fuzzer/fuzzer/BUILD.gn |
@@ -0,0 +1,28 @@ |
+# Copyright 2016 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+import("//build/config/sanitizers/sanitizers.gni") |
+ |
+executable("ipc_fuzzer") { |
+ configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] |
+ sources = [ |
+ "fuzzer.cc", |
+ "fuzzer.h", |
+ "fuzzer_main.cc", |
+ "generator.cc", |
+ "generator.h", |
+ "mutator.cc", |
+ "mutator.h", |
+ "rand_util.cc", |
+ "rand_util.h", |
+ ] |
+ deps = [ |
+ "//tools/ipc_fuzzer/message_lib:ipc_message_lib", |
+ ] |
+ if (is_asan && is_chromeos) { |
+ # Compiling fuzzer.cc with ASan takes too long, see |
+ # http://crbug.com/360158. |
+ config -= [ "//build/config/sanitizers:default_sanitizer_flags" ] |
+ } |
+} |