summaryrefslogtreecommitdiffstats
path: root/ipc/mojo/ipc_mojo.gyp
blob: 75c85d9824a2a1793440246ec85a676b52c29452 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# Copyright 2014 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,
  },
  'includes': [
  ],
  'targets': [
    {
      'target_name': 'ipc_mojo',
      'type': '<(component)',
      'variables': {
      },
      'defines': [
        'IPC_MOJO_IMPLEMENTATION',
      ],
      'includes': [ '../../mojo/mojom_bindings_generator.gypi' ],
      'dependencies': [
        '../ipc.gyp:ipc',
        '../../base/base.gyp:base',
        '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
        '../../mojo/mojo_edk.gyp:mojo_system_impl',
        '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
      ],
      'sources': [
        'ipc_channel_mojo.cc',
        'ipc_channel_mojo.h',
        'ipc_mojo_bootstrap.cc',
        'ipc_mojo_bootstrap.h',
        'ipc_mojo_handle_attachment.cc',
        'ipc_mojo_handle_attachment.h',
        'ipc_mojo_message_helper.cc',
        'ipc_mojo_message_helper.h',
        'ipc_mojo_param_traits.cc',
        'ipc_mojo_param_traits.h',
        'ipc_message_pipe_reader.cc',
        'ipc_message_pipe_reader.h',
        'ipc.mojom',
        'scoped_ipc_support.cc',
        'scoped_ipc_support.h',
      ],
      # TODO(gregoryd): direct_dependent_settings should be shared with the
      # 64-bit target, but it doesn't work due to a bug in gyp
      'direct_dependent_settings': {
        'include_dirs': [
          '..',
        ],
      },
    },
    {
      'target_name': 'ipc_mojo_unittests',
      'type': '<(gtest_target_type)',
      'dependencies': [
        '../ipc.gyp:ipc',
        '../ipc.gyp:test_support_ipc',
        '../../base/base.gyp:base',
        '../../base/base.gyp:base_i18n',
        '../../base/base.gyp:test_support_base',
        '../../mojo/mojo_edk.gyp:mojo_common_test_support',
        '../../mojo/mojo_edk.gyp:mojo_system_impl',
        '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
        '../../testing/gtest.gyp:gtest',
        'ipc_mojo',
      ],
      'include_dirs': [
        '..'
      ],
      'sources': [
        'run_all_unittests.cc',

        "ipc_channel_mojo_unittest.cc",
        'ipc_mojo_bootstrap_unittest.cc',
      ],
      'conditions': [
      ],
    },
    {
      'target_name': 'ipc_mojo_perftests',
      'type': '<(gtest_target_type)',
      'dependencies': [
        '../ipc.gyp:ipc',
        '../ipc.gyp:test_support_ipc',
        '../../base/base.gyp:base',
        '../../base/base.gyp:base_i18n',
        '../../base/base.gyp:test_support_base',
        '../../base/base.gyp:test_support_perf',
        '../../mojo/mojo_edk.gyp:mojo_common_test_support',
        '../../mojo/mojo_edk.gyp:mojo_system_impl',
        '../../mojo/mojo_public.gyp:mojo_cpp_bindings',
        '../../testing/gtest.gyp:gtest',
        'ipc_mojo',
      ],
      'include_dirs': [
        '..'
      ],
      'sources': [
        'ipc_mojo_perftest.cc',
      ],
      'conditions': [
      ],
    },
  ],
}