OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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': [ |
| 10 'mojo_edk.gypi', |
| 11 ], |
9 'target_defaults' : { | 12 'target_defaults' : { |
10 'include_dirs': [ | 13 'include_dirs': [ |
11 '..', | 14 '..', |
12 ], | 15 ], |
13 'direct_dependent_settings': { | 16 'direct_dependent_settings': { |
14 'include_dirs': [ | 17 'include_dirs': [ |
15 '..', | 18 '..', |
16 ], | 19 ], |
17 }, | 20 }, |
18 }, | 21 }, |
19 'targets': [ | 22 'targets': [ |
20 { | 23 { |
21 # GN version: //mojo/edk/system/ports | 24 # GN version: //mojo/edk/system/ports |
22 'target_name': 'mojo_system_ports', | 25 'target_name': 'mojo_system_ports', |
23 'type': 'static_library', | 26 'type': 'static_library', |
24 'dependencies': [ | 27 'dependencies': [ |
25 '../base/base.gyp:base', | 28 '../base/base.gyp:base', |
26 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 29 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
27 '../crypto/crypto.gyp:crypto', | 30 '../crypto/crypto.gyp:crypto', |
28 ], | 31 ], |
29 'sources': [ | 32 'sources': [ |
30 'edk/system/ports/event.cc', | 33 '<@(mojo_edk_ports_sources)', |
31 'edk/system/ports/event.h', | |
32 'edk/system/ports/message.cc', | |
33 'edk/system/ports/message.h', | |
34 'edk/system/ports/message_queue.cc', | |
35 'edk/system/ports/message_queue.h', | |
36 'edk/system/ports/name.cc', | |
37 'edk/system/ports/name.h', | |
38 'edk/system/ports/node.cc', | |
39 'edk/system/ports/node.h', | |
40 'edk/system/ports/node_delegate.h', | |
41 'edk/system/ports/port.cc', | |
42 'edk/system/ports/port.h', | |
43 'edk/system/ports/port_ref.cc', | |
44 'edk/system/ports/user_data.h', | |
45 'edk/system/ports_message.cc', | |
46 'edk/system/ports_message.h', | |
47 ], | 34 ], |
48 }, | 35 }, |
49 { | 36 { |
50 # GN version: //mojo/edk/system | 37 # GN version: //mojo/edk/system |
51 'target_name': 'mojo_system_impl', | 38 'target_name': 'mojo_system_impl', |
52 'type': '<(component)', | 39 'type': '<(component)', |
53 'dependencies': [ | 40 'dependencies': [ |
54 '../base/base.gyp:base', | 41 '../base/base.gyp:base', |
55 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 42 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
56 '../crypto/crypto.gyp:crypto', | 43 '../crypto/crypto.gyp:crypto', |
57 'mojo_public.gyp:mojo_public_system', | 44 'mojo_public.gyp:mojo_public_system', |
58 'mojo_system_ports', | 45 'mojo_system_ports', |
59 ], | 46 ], |
60 'defines': [ | 47 'defines': [ |
61 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', | 48 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
62 ], | 49 ], |
63 'sources': [ | 50 'sources': [ |
64 'edk/embedder/configuration.h', | 51 '<@(mojo_edk_system_impl_sources)', |
65 'edk/embedder/embedder.cc', | 52 '<@(mojo_edk_system_impl_non_nacl_sources)', |
66 'edk/embedder/embedder.h', | |
67 'edk/embedder/embedder_internal.h', | |
68 'edk/embedder/entrypoints.cc', | |
69 'edk/embedder/named_platform_channel_pair_win.cc', | |
70 'edk/embedder/named_platform_channel_pair_win.h', | |
71 'edk/embedder/platform_channel_pair.cc', | |
72 'edk/embedder/platform_channel_pair.h', | |
73 'edk/embedder/platform_channel_pair_posix.cc', | |
74 'edk/embedder/platform_channel_pair_win.cc', | |
75 'edk/embedder/platform_channel_utils_posix.cc', | |
76 'edk/embedder/platform_channel_utils_posix.h', | |
77 'edk/embedder/platform_handle.cc', | |
78 'edk/embedder/platform_handle.h', | |
79 'edk/embedder/platform_handle_utils.h', | |
80 'edk/embedder/platform_handle_utils_posix.cc', | |
81 'edk/embedder/platform_handle_utils_win.cc', | |
82 'edk/embedder/platform_handle_vector.h', | |
83 'edk/embedder/platform_shared_buffer.cc', | |
84 'edk/embedder/platform_shared_buffer.h', | |
85 'edk/embedder/scoped_platform_handle.h', | |
86 'edk/system/awakable.h', | |
87 'edk/system/awakable_list.cc', | |
88 'edk/system/awakable_list.h', | |
89 'edk/system/async_waiter.cc', | |
90 'edk/system/async_waiter.h', | |
91 'edk/system/atomic_flag.h', | |
92 'edk/system/broker.h', | |
93 'edk/system/broker_host.h', | |
94 'edk/system/broker_host_posix.cc', | |
95 'edk/system/broker_posix.cc', | |
96 'edk/system/channel.cc', | |
97 'edk/system/channel.h', | |
98 'edk/system/channel_posix.cc', | |
99 'edk/system/channel_win.cc', | |
100 'edk/system/configuration.cc', | |
101 'edk/system/configuration.h', | |
102 'edk/system/core.cc', | |
103 'edk/system/core.h', | |
104 'edk/system/data_pipe_consumer_dispatcher.cc', | |
105 'edk/system/data_pipe_consumer_dispatcher.h', | |
106 'edk/system/data_pipe_control_message.cc', | |
107 'edk/system/data_pipe_control_message.h', | |
108 'edk/system/data_pipe_producer_dispatcher.cc', | |
109 'edk/system/data_pipe_producer_dispatcher.h', | |
110 'edk/system/dispatcher.cc', | |
111 'edk/system/dispatcher.h', | |
112 'edk/system/handle_signals_state.h', | |
113 'edk/system/handle_table.cc', | |
114 'edk/system/handle_table.h', | |
115 'edk/system/mapping_table.cc', | |
116 'edk/system/mapping_table.h', | |
117 'edk/system/message_for_transit.cc', | |
118 'edk/system/message_for_transit.h', | |
119 'edk/system/message_pipe_dispatcher.cc', | |
120 'edk/system/message_pipe_dispatcher.h', | |
121 'edk/system/node_channel.cc', | |
122 'edk/system/node_channel.h', | |
123 'edk/system/node_controller.cc', | |
124 'edk/system/node_controller.h', | |
125 'edk/system/options_validation.h', | |
126 'edk/system/platform_handle_dispatcher.cc', | |
127 'edk/system/platform_handle_dispatcher.h', | |
128 'edk/system/remote_message_pipe_bootstrap.cc', | |
129 'edk/system/remote_message_pipe_bootstrap.h', | |
130 'edk/system/request_context.cc', | |
131 'edk/system/request_context.h', | |
132 'edk/system/shared_buffer_dispatcher.cc', | |
133 'edk/system/shared_buffer_dispatcher.h', | |
134 'edk/system/wait_set_dispatcher.cc', | |
135 'edk/system/wait_set_dispatcher.h', | |
136 'edk/system/waiter.cc', | |
137 'edk/system/waiter.h', | |
138 'edk/system/watcher.cc', | |
139 'edk/system/watcher.h', | |
140 'edk/system/watcher_set.cc', | |
141 'edk/system/watcher_set.h', | |
142 # Test-only code: | |
143 # TODO(vtl): It's a little unfortunate that these end up in the same | |
144 # component as non-test-only code. In the static build, this code | |
145 # should hopefully be dead-stripped. | |
146 'edk/embedder/test_embedder.cc', | |
147 'edk/embedder/test_embedder.h', | |
148 ], | 53 ], |
149 'conditions': [ | 54 'conditions': [ |
150 ['OS=="android"', { | 55 ['OS=="android"', { |
151 'dependencies': [ | 56 'dependencies': [ |
152 '../third_party/ashmem/ashmem.gyp:ashmem', | 57 '../third_party/ashmem/ashmem.gyp:ashmem', |
153 ], | 58 ], |
154 }], | 59 }], |
155 ['OS=="win"', { | 60 ['OS=="win"', { |
156 # Structure was padded due to __declspec(align()), which is | 61 # Structure was padded due to __declspec(align()), which is |
157 # uninteresting. | 62 # uninteresting. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 'mojo_common_test_support', | 171 'mojo_common_test_support', |
267 'mojo_public.gyp:mojo_public_test_support', | 172 'mojo_public.gyp:mojo_public_test_support', |
268 'mojo_system_impl', | 173 'mojo_system_impl', |
269 'mojo_test_support_impl', | 174 'mojo_test_support_impl', |
270 ], | 175 ], |
271 'sources': [ | 176 'sources': [ |
272 'edk/test/run_all_perftests.cc', | 177 'edk/test/run_all_perftests.cc', |
273 ], | 178 ], |
274 }, | 179 }, |
275 ], | 180 ], |
| 181 'conditions': [ |
| 182 ['OS == "win" and target_arch=="ia32"', { |
| 183 'targets': [ |
| 184 { |
| 185 # GN version: //mojo/edk/system/ports |
| 186 'target_name': 'mojo_system_ports_win64', |
| 187 'type': 'static_library', |
| 188 'dependencies': [ |
| 189 '../base/base.gyp:base_win64', |
| 190 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 191 '../crypto/crypto.gyp:crypto_nacl_win64', |
| 192 ], |
| 193 'sources': [ |
| 194 '<@(mojo_edk_ports_sources)', |
| 195 ], |
| 196 'configurations': { |
| 197 'Common_Base': { |
| 198 'msvs_target_platform': 'x64', |
| 199 }, |
| 200 }, |
| 201 }, |
| 202 { |
| 203 # GN version: //mojo/edk/system |
| 204 'target_name': 'mojo_system_impl_win64', |
| 205 'type': '<(component)', |
| 206 'dependencies': [ |
| 207 '../base/base.gyp:base_win64', |
| 208 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations_win64', |
| 209 '../crypto/crypto.gyp:crypto_nacl_win64', |
| 210 'mojo_public.gyp:mojo_public_system_win64', |
| 211 'mojo_system_ports_win64', |
| 212 ], |
| 213 'defines': [ |
| 214 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
| 215 ], |
| 216 'sources': [ |
| 217 '<@(mojo_edk_system_impl_sources)', |
| 218 '<@(mojo_edk_system_impl_non_nacl_sources)', |
| 219 ], |
| 220 # Structure was padded due to __declspec(align()), which is |
| 221 # uninteresting. |
| 222 'msvs_disabled_warnings': [ 4324 ], |
| 223 'configurations': { |
| 224 'Common_Base': { |
| 225 'msvs_target_platform': 'x64', |
| 226 }, |
| 227 }, |
| 228 }, |
| 229 ], |
| 230 }], |
| 231 ] |
276 } | 232 } |
OLD | NEW |