| 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_lib', | 
|  12       'type': 'executable', |  12       'type': 'static_library', | 
|  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', | 
|  18         'rand_util.h', |  19         'rand_util.h', | 
|  19         'rand_util.cc', |  20         'rand_util.cc', | 
|  20       ], |  21       ], | 
|  21       'conditions': [ |  22       'conditions': [ | 
|  22         ['asan==1', { |  23         ['asan==1', { | 
|  23           'cflags!': [ |  24           'cflags!': [ | 
|  24             # Compiling mutate.cc with ASan takes too long, see |  25             # Compiling fuzzer.cc with ASan takes too long, see | 
|  25             # http://crbug.com/360158. |  26             # http://crbug.com/360158. | 
|  26             '-fsanitize=address', |  27             '-fsanitize=address', | 
|  27             '-fsanitize-coverage=<(sanitizer_coverage)', |  28             '-fsanitize-coverage=<(sanitizer_coverage)', | 
|  28           ], |  29           ], | 
|  29         }], |  30         }], | 
|  30       ], |  31       ], | 
|  31       'include_dirs': [ |  32       'include_dirs': [ | 
|  32         '../../..', |  33         '../../..', | 
|  33       ], |  34       ], | 
|  34       'defines': [ |  35       'defines': [ | 
|  35         'USE_CUPS', |  36         'USE_CUPS', | 
|  36       ], |  37       ], | 
|  37     }, |  38     }, | 
|  38     { |  39     { | 
|  39       'target_name': 'ipc_fuzzer_generate', |  40       'target_name': 'ipc_fuzzer_generate', | 
|  40       'type': 'executable', |  41       'type': 'executable', | 
|  41       'dependencies': [ |  42       'dependencies': [ | 
|  42         '../message_lib/message_lib.gyp:ipc_message_lib', |  43         'ipc_fuzzer_lib', | 
|  43       ], |  44       ], | 
|  44       'sources': [ |  45       'sources': [ | 
|  45         'generate.cc', |  46         'generator.h', | 
|  46         'rand_util.h', |  47         'generator.cc', | 
|  47         'rand_util.cc', |  48  | 
|  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           ], |  | 
|  57         }], |  | 
|  58       ], |  49       ], | 
|  59       'include_dirs': [ |  50       'include_dirs': [ | 
|  60         '../../..', |  51         '../../..', | 
 |  52       ], | 
 |  53       'defines': [ | 
 |  54         'USE_CUPS', | 
 |  55       ], | 
 |  56     }, | 
 |  57     { | 
 |  58       'target_name': 'ipc_fuzzer_mutate', | 
 |  59       'type': 'executable', | 
 |  60       'dependencies': [ | 
 |  61         'ipc_fuzzer_lib', | 
 |  62       ], | 
 |  63       'sources': [ | 
 |  64         'mutator.h', | 
 |  65         'mutator.cc', | 
 |  66  | 
 |  67       ], | 
 |  68       'include_dirs': [ | 
 |  69         '../../..', | 
|  61       ], |  70       ], | 
|  62       'defines': [ |  71       'defines': [ | 
|  63         'USE_CUPS', |  72         'USE_CUPS', | 
|  64       ], |  73       ], | 
|  65     }, |  74     }, | 
|  66     { |  75     { | 
|  67       'target_name': 'ipc_message_util', |  76       'target_name': 'ipc_message_util', | 
|  68       'type': 'executable', |  77       'type': 'executable', | 
|  69       'dependencies': [ |  78       'dependencies': [ | 
|  70         '../../../third_party/re2/re2.gyp:re2', |  79         '../../../third_party/re2/re2.gyp:re2', | 
|  71         '../message_lib/message_lib.gyp:ipc_message_lib', |  80         '../message_lib/message_lib.gyp:ipc_message_lib', | 
|  72       ], |  81       ], | 
|  73       'sources': [ |  82       'sources': [ | 
|  74         'message_util.cc', |  83         'message_util.cc', | 
|  75       ], |  84       ], | 
|  76       'include_dirs': [ |  85       'include_dirs': [ | 
|  77         '../../..', |  86         '../../..', | 
|  78       ], |  87       ], | 
|  79       'defines': [ |  88       'defines': [ | 
|  80         'USE_CUPS', |  89         'USE_CUPS', | 
|  81       ], |  90       ], | 
|  82     }, |  91     }, | 
|  83   ], |  92   ], | 
|  84 } |  93 } | 
| OLD | NEW |