summaryrefslogtreecommitdiffstats
path: root/tools/ipc_fuzzer/fuzzer/fuzzer.gyp
blob: a837992dbb408aa5282238c527f8dd2eb6045bfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2013 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.

{
  'variables': {
    'chromium_code': 1,
  },
  'targets': [
    {
      'target_name': 'ipc_fuzzer',
      'type': 'executable',
      'dependencies': [
        '../message_lib/message_lib.gyp:ipc_message_lib',
      ],
      'sources': [
        'fuzzer.h',
        'fuzzer.cc',
        'fuzzer_main.cc',
        'generator.h',
        'generator.cc',
        'mutator.h',
        'mutator.cc',
        'rand_util.h',
        'rand_util.cc',
      ],
      'conditions': [
        ['asan==1 and chromeos==1', {
          'cflags!': [
            # Compiling fuzzer.cc with ASan takes too long, see
            # http://crbug.com/360158.
            '-fsanitize=address',
            '-fsanitize-coverage=<(sanitizer_coverage)',
          ],
        }],
      ],
      'include_dirs': [
        '../../..',
      ],
      'defines': [
        'USE_CUPS',
      ],
    },
  ],
}