OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'variables': { | |
7 'chromium_code': 1, | |
8 }, | |
9 'includes': [ | |
10 ], | |
11 'targets': [ | |
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 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
25 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
26 ], | |
27 'sources': [ | |
28 'ipc_channel_mojo.cc', | |
29 'ipc_channel_mojo.h', | |
30 'ipc_mojo_bootstrap.cc', | |
31 'ipc_mojo_bootstrap.h', | |
32 'ipc_mojo_handle_attachment.cc', | |
33 'ipc_mojo_handle_attachment.h', | |
34 'ipc_mojo_message_helper.cc', | |
35 'ipc_mojo_message_helper.h', | |
36 'ipc_mojo_param_traits.cc', | |
37 'ipc_mojo_param_traits.h', | |
38 'ipc_message_pipe_reader.cc', | |
39 'ipc_message_pipe_reader.h', | |
40 'ipc.mojom', | |
41 ], | |
42 # TODO(gregoryd): direct_dependent_settings should be shared with the | |
43 # 64-bit target, but it doesn't work due to a bug in gyp | |
44 'direct_dependent_settings': { | |
45 'include_dirs': [ | |
46 '..', | |
47 ], | |
48 }, | |
49 }, | |
50 { | |
51 'target_name': 'ipc_mojo_unittests', | |
52 'type': '<(gtest_target_type)', | |
53 'dependencies': [ | |
54 '../ipc.gyp:ipc', | |
55 '../ipc.gyp:test_support_ipc', | |
56 '../../base/base.gyp:base', | |
57 '../../base/base.gyp:base_i18n', | |
58 '../../base/base.gyp:test_support_base', | |
59 '../../mojo/mojo_edk.gyp:mojo_common_test_support', | |
60 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
61 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
62 '../../testing/gtest.gyp:gtest', | |
63 'ipc_mojo', | |
64 ], | |
65 'include_dirs': [ | |
66 '..' | |
67 ], | |
68 'sources': [ | |
69 'run_all_unittests.cc', | |
70 | |
71 "ipc_channel_mojo_unittest.cc", | |
72 'ipc_mojo_bootstrap_unittest.cc', | |
73 ], | |
74 'conditions': [ | |
75 ], | |
76 }, | |
77 { | |
78 'target_name': 'ipc_mojo_perftests', | |
79 'type': '<(gtest_target_type)', | |
80 'dependencies': [ | |
81 '../ipc.gyp:ipc', | |
82 '../ipc.gyp:test_support_ipc', | |
83 '../../base/base.gyp:base', | |
84 '../../base/base.gyp:base_i18n', | |
85 '../../base/base.gyp:test_support_base', | |
86 '../../base/base.gyp:test_support_perf', | |
87 '../../mojo/mojo_edk.gyp:mojo_common_test_support', | |
88 '../../mojo/mojo_edk.gyp:mojo_system_impl', | |
89 '../../mojo/mojo_public.gyp:mojo_cpp_bindings', | |
90 '../../testing/gtest.gyp:gtest', | |
91 'ipc_mojo', | |
92 ], | |
93 'include_dirs': [ | |
94 '..' | |
95 ], | |
96 'sources': [ | |
97 'ipc_mojo_perftest.cc', | |
98 ], | |
99 'conditions': [ | |
100 ], | |
101 }, | |
102 ], | |
103 'conditions': [ | |
104 ['test_isolation_mode != "noop"', { | |
105 'targets': [ | |
106 { | |
107 'target_name': 'ipc_mojo_unittests_run', | |
108 'type': 'none', | |
109 'dependencies': [ | |
110 'ipc_mojo_unittests', | |
111 ], | |
112 'includes': [ | |
113 '../../build/isolate.gypi', | |
114 ], | |
115 'sources': [ | |
116 'ipc_mojo_unittests.isolate', | |
117 ], | |
118 }, | |
119 ], | |
120 }], | |
121 ], | |
122 } | |
OLD | NEW |