OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'includes': [ | 9 'includes': [ |
10 ], | 10 ], |
11 'targets': [ | 11 'targets': [ |
12 { | 12 { |
13 'target_name': 'ipc_mojo', | |
14 'type': '<(component)', | |
15 'variables': { | |
16 }, | |
17 'defines': [ | |
18 'IPC_MOJO_IMPLEMENTATION', | |
19 ], | |
20 'includes': [ '../../mojo/mojom_bindings_generator.gypi' ], | |
21 'dependencies': [ | |
22 '../ipc.gyp:ipc', | |
23 '../../base/base.gyp:base', | |
24 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | |
25 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
26 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
27 ], | |
28 'sources': [ | |
29 'ipc_channel_mojo.cc', | |
30 'ipc_channel_mojo.h', | |
31 'ipc_mojo_bootstrap.cc', | |
32 'ipc_mojo_bootstrap.h', | |
33 'ipc_mojo_handle_attachment.cc', | |
34 'ipc_mojo_handle_attachment.h', | |
35 'ipc_mojo_message_helper.cc', | |
36 'ipc_mojo_message_helper.h', | |
37 'ipc_mojo_param_traits.cc', | |
38 'ipc_mojo_param_traits.h', | |
39 'ipc_message_pipe_reader.cc', | |
40 'ipc_message_pipe_reader.h', | |
41 'ipc.mojom', | |
42 ], | |
43 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
44 # 64-bit target, but it doesn't work due to a bug in gyp | |
45 'direct_dependent_settings': { | |
46 'include_dirs': [ | |
47 '..', | |
48 ], | |
49 }, | |
50 }, | |
51 { | |
52 'target_name': 'ipc_mojo_support', | 13 'target_name': 'ipc_mojo_support', |
53 'type': 'static_library', | 14 'type': 'static_library', |
54 'dependencies': [ | 15 'dependencies': [ |
55 '../../base/base.gyp:base', | 16 '../../base/base.gyp:base', |
56 '../../mojo/mojo_edk.gyp:mojo_system_impl', | 17 '../../mojo/mojo_edk.gyp:mojo_system_impl', |
57 ], | 18 ], |
58 'sources': [ | 19 'sources': [ |
59 'scoped_ipc_support.cc', | 20 'scoped_ipc_support.cc', |
60 'scoped_ipc_support.h', | 21 'scoped_ipc_support.h', |
61 ], | 22 ], |
62 }, | 23 }, |
63 { | |
64 'target_name': 'ipc_mojo_unittests', | |
65 'type': '<(gtest_target_type)', | |
66 'dependencies': [ | |
67 '../ipc.gyp:ipc', | |
68 '../ipc.gyp:test_support_ipc', | |
69 '../../base/base.gyp:base', | |
70 '../../base/base.gyp:base_i18n', | |
71 '../../base/base.gyp:test_support_base', | |
72 '../../mojo/mojo_edk.gyp:mojo_common_test_support', | |
73 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
74 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
75 '../../testing/gtest.gyp:gtest', | |
76 'ipc_mojo', | |
77 ], | |
78 'include_dirs': [ | |
79 '..' | |
80 ], | |
81 'sources': [ | |
82 'run_all_unittests.cc', | |
83 | |
84 "ipc_channel_mojo_unittest.cc", | |
85 'ipc_mojo_bootstrap_unittest.cc', | |
86 ], | |
87 'conditions': [ | |
88 ], | |
89 }, | |
90 { | |
91 'target_name': 'ipc_mojo_perftests', | |
92 'type': '<(gtest_target_type)', | |
93 'dependencies': [ | |
94 '../ipc.gyp:ipc', | |
95 '../ipc.gyp:test_support_ipc', | |
96 '../../base/base.gyp:base', | |
97 '../../base/base.gyp:base_i18n', | |
98 '../../base/base.gyp:test_support_base', | |
99 '../../base/base.gyp:test_support_perf', | |
100 '../../mojo/mojo_edk.gyp:mojo_common_test_support', | |
101 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
102 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
103 '../../testing/gtest.gyp:gtest', | |
104 'ipc_mojo', | |
105 ], | |
106 'include_dirs': [ | |
107 '..' | |
108 ], | |
109 'sources': [ | |
110 'ipc_mojo_perftest.cc', | |
111 ], | |
112 'conditions': [ | |
113 ], | |
114 }, | |
115 ], | |
116 'conditions': [ | |
117 ['test_isolation_mode != "noop"', { | |
118 'targets': [ | |
119 { | |
120 'target_name': 'ipc_mojo_unittests_run', | |
121 'type': 'none', | |
122 'dependencies': [ | |
123 'ipc_mojo_unittests', | |
124 ], | |
125 'includes': [ | |
126 '../../build/isolate.gypi', | |
127 ], | |
128 'sources': [ | |
129 'ipc_mojo_unittests.isolate', | |
130 ], | |
131 }, | |
132 ], | |
133 }], | |
134 ], | 24 ], |
135 } | 25 } |
OLD | NEW |