summaryrefslogtreecommitdiff
path: root/deps/v8/gypfiles/gmock.gyp
blob: a80387298b150358a2cf68560dcfcd29a8b34517 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Copyright 2014 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'targets': [
    {
      'target_name': 'gmock',
      'type': 'static_library',
      'dependencies': [
        'gtest.gyp:gtest',
      ],
      'sources': [
        # Sources based on files in r173 of gmock.
        '../testing/gmock/include/gmock/gmock-actions.h',
        '../testing/gmock/include/gmock/gmock-cardinalities.h',
        '../testing/gmock/include/gmock/gmock-generated-actions.h',
        '../testing/gmock/include/gmock/gmock-generated-function-mockers.h',
        '../testing/gmock/include/gmock/gmock-generated-matchers.h',
        '../testing/gmock/include/gmock/gmock-generated-nice-strict.h',
        '../testing/gmock/include/gmock/gmock-matchers.h',
        '../testing/gmock/include/gmock/gmock-spec-builders.h',
        '../testing/gmock/include/gmock/gmock.h',
        '../testing/gmock/include/gmock/internal/gmock-generated-internal-utils.h',
        '../testing/gmock/include/gmock/internal/gmock-internal-utils.h',
        '../testing/gmock/include/gmock/internal/gmock-port.h',
        '../testing/gmock/src/gmock-all.cc',
        '../testing/gmock/src/gmock-cardinalities.cc',
        '../testing/gmock/src/gmock-internal-utils.cc',
        '../testing/gmock/src/gmock-matchers.cc',
        '../testing/gmock/src/gmock-spec-builders.cc',
        '../testing/gmock/src/gmock.cc',
        '../testing/gmock-support.h',  # gMock helpers
        '../testing/gmock_custom/gmock/internal/custom/gmock-port.h',
      ],
      'sources!': [
        '../testing/gmock/src/gmock-all.cc',  # Not needed by our build.
      ],
      'include_dirs': [
        '../testing/gmock_custom',
        '../testing/gmock',
        '../testing/gmock/include',
      ],
      'all_dependent_settings': {
        'include_dirs': [
          '../testing/gmock_custom',
          '../testing/gmock/include',  # So that gmock headers can find themselves.
        ],
      },
      'export_dependent_settings': [
        'gtest.gyp:gtest',
      ],
      'conditions': [
        ['want_separate_host_toolset==1', {
          'toolsets': ['host', 'target'],
        }, {
          'toolsets': ['target'],
        }],
      ],
    },
    {
      'target_name': 'gmock_main',
      'type': 'static_library',
      'dependencies': [
        'gmock',
      ],
      'sources': [
        '../testing/gmock/src/gmock_main.cc',
      ],
    },
  ],
}