| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| 11 'target_name': 'ipc_fuzzer_mutate', | 11 'target_name': 'ipc_fuzzer', |
| 12 'type': 'executable', | 12 'type': 'executable', |
| 13 'dependencies': [ | 13 'dependencies': [ |
| 14 '../message_lib/message_lib.gyp:ipc_message_lib', | 14 '../message_lib/message_lib.gyp:ipc_message_lib', |
| 15 ], | 15 ], |
| 16 'sources': [ | 16 'sources': [ |
| 17 'mutate.cc', | 17 'fuzzer.h', |
| 18 'fuzzer.cc', |
| 19 'fuzzer_main.cc', |
| 20 'generator.h', |
| 21 'generator.cc', |
| 22 'mutator.h', |
| 23 'mutator.cc', |
| 18 'rand_util.h', | 24 'rand_util.h', |
| 19 'rand_util.cc', | 25 'rand_util.cc', |
| 20 ], | 26 ], |
| 21 'conditions': [ | 27 'conditions': [ |
| 22 ['asan==1', { | 28 ['asan==1', { |
| 23 'cflags!': [ | 29 'cflags!': [ |
| 24 # Compiling mutate.cc with ASan takes too long, see | 30 # Compiling fuzzer.cc with ASan takes too long, see |
| 25 # http://crbug.com/360158. | 31 # http://crbug.com/360158. |
| 26 '-fsanitize=address', | 32 '-fsanitize=address', |
| 27 '-fsanitize-coverage=<(sanitizer_coverage)', | 33 '-fsanitize-coverage=<(sanitizer_coverage)', |
| 28 ], | |
| 29 }], | |
| 30 ], | |
| 31 'include_dirs': [ | |
| 32 '../../..', | |
| 33 ], | |
| 34 'defines': [ | |
| 35 'USE_CUPS', | |
| 36 ], | |
| 37 }, | |
| 38 { | |
| 39 'target_name': 'ipc_fuzzer_generate', | |
| 40 'type': 'executable', | |
| 41 'dependencies': [ | |
| 42 '../message_lib/message_lib.gyp:ipc_message_lib', | |
| 43 ], | |
| 44 'sources': [ | |
| 45 'generate.cc', | |
| 46 'rand_util.h', | |
| 47 'rand_util.cc', | |
| 48 ], | |
| 49 'conditions': [ | |
| 50 ['asan==1', { | |
| 51 'cflags!': [ | |
| 52 # Compiling generate.cc with ASan takes too long, see | |
| 53 # http://crbug.com/360158. | |
| 54 '-fsanitize=address', | |
| 55 '-fsanitize-coverage=<(sanitizer_coverage)', | |
| 56 ], | 34 ], |
| 57 }], | 35 }], |
| 58 ], | 36 ], |
| 59 'include_dirs': [ | 37 'include_dirs': [ |
| 60 '../../..', | 38 '../../..', |
| 61 ], | 39 ], |
| 62 'defines': [ | 40 'defines': [ |
| 63 'USE_CUPS', | 41 'USE_CUPS', |
| 64 ], | 42 ], |
| 65 }, | 43 }, |
| 66 { | 44 { |
| 67 'target_name': 'ipc_message_util', | 45 'target_name': 'ipc_message_util', |
| 68 'type': 'executable', | 46 'type': 'executable', |
| 69 'dependencies': [ | 47 'dependencies': [ |
| 70 '../../../third_party/re2/re2.gyp:re2', | 48 '../../../third_party/re2/re2.gyp:re2', |
| 71 '../message_lib/message_lib.gyp:ipc_message_lib', | 49 '../message_lib/message_lib.gyp:ipc_message_lib', |
| 72 ], | 50 ], |
| 73 'sources': [ | 51 'sources': [ |
| 74 'message_util.cc', | 52 'message_util.cc', |
| 75 ], | 53 ], |
| 76 'include_dirs': [ | 54 'include_dirs': [ |
| 77 '../../..', | 55 '../../..', |
| 78 ], | 56 ], |
| 79 'defines': [ | 57 'defines': [ |
| 80 'USE_CUPS', | 58 'USE_CUPS', |
| 81 ], | 59 ], |
| 82 }, | 60 }, |
| 83 ], | 61 ], |
| 84 } | 62 } |
| OLD | NEW |