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': [ | 9 'includes': [ |
10 '../build/common_untrusted.gypi', | 10 '../build/common_untrusted.gypi', |
| 11 'mojo_edk.gypi', |
11 ], | 12 ], |
12 'target_defaults' : { | 13 'target_defaults' : { |
13 'include_dirs': [ | 14 'include_dirs': [ |
14 '..', | 15 '..', |
15 ], | 16 ], |
16 }, | 17 }, |
17 'targets': [ | 18 'targets': [ |
18 { | 19 { |
19 # GN version: //mojo/edk/system | 20 # GN version: //mojo/edk/system |
20 'target_name': 'mojo_system_impl_nacl', | 21 'target_name': 'mojo_system_impl_nacl', |
21 'type': 'none', | 22 'type': 'none', |
22 'variables': { | 23 'variables': { |
23 'nacl_untrusted_build': 1, | 24 'nacl_untrusted_build': 1, |
24 'nlib_target': 'libmojo_system_impl_nacl.a', | 25 'nlib_target': 'libmojo_system_impl_nacl.a', |
25 'build_glibc': 0, | 26 'build_glibc': 0, |
26 'build_newlib': 0, | 27 'build_newlib': 0, |
27 'build_irt': 1, | 28 'build_irt': 1, |
28 'build_pnacl_newlib': 0, | 29 'build_pnacl_newlib': 0, |
| 30 'build_nonsfi_helper': 0, |
| 31 }, |
| 32 'dependencies': [ |
| 33 '../base/base_nacl.gyp:base_nacl', |
| 34 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 35 'mojo_public.gyp:mojo_public_system', |
| 36 ], |
| 37 'defines': [ |
| 38 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
| 39 ], |
| 40 'sources': [ |
| 41 '<@(mojo_edk_ports_sources)', |
| 42 '<@(mojo_edk_system_impl_sources)', |
| 43 ], |
| 44 }, |
| 45 { |
| 46 'target_name': 'mojo_system_impl_nacl_nonsfi', |
| 47 'type': 'none', |
| 48 'variables': { |
| 49 'nacl_untrusted_build': 1, |
| 50 'nlib_target': 'libmojo_system_impl_nacl_nonsfi.a', |
| 51 'build_glibc': 0, |
| 52 'build_newlib': 0, |
| 53 'build_irt': 0, |
| 54 'build_pnacl_newlib': 0, |
29 'build_nonsfi_helper': 1, | 55 'build_nonsfi_helper': 1, |
30 }, | 56 }, |
31 'dependencies': [ | 57 'dependencies': [ |
32 '../base/base_nacl.gyp:base_nacl', | |
33 '../base/base_nacl.gyp:base_nacl_nonsfi', | 58 '../base/base_nacl.gyp:base_nacl_nonsfi', |
34 'mojo_public.gyp:mojo_public_system', | 59 'mojo_public.gyp:mojo_public_system', |
35 ], | 60 ], |
36 'defines': [ | 61 'defines': [ |
37 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', | 62 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
38 ], | 63 ], |
39 'sources': [ | 64 'sources': [ |
40 'edk/embedder/configuration.h', | 65 '<@(mojo_edk_ports_sources)', |
41 'edk/embedder/embedder.cc', | 66 '<@(mojo_edk_system_impl_sources)', |
42 'edk/embedder/embedder.h', | 67 '<@(mojo_edk_system_impl_nacl_nonsfi_sources)', |
43 'edk/embedder/embedder_internal.h', | |
44 'edk/embedder/entrypoints.cc', | |
45 'edk/embedder/platform_channel_pair.cc', | |
46 'edk/embedder/platform_channel_pair.h', | |
47 'edk/embedder/platform_channel_pair_posix.cc', | |
48 'edk/embedder/platform_handle.cc', | |
49 'edk/embedder/platform_handle.h', | |
50 'edk/embedder/platform_handle_utils.h', | |
51 'edk/embedder/platform_handle_utils_posix.cc', | |
52 'edk/embedder/platform_handle_vector.h', | |
53 'edk/embedder/platform_shared_buffer.cc', | |
54 'edk/embedder/platform_shared_buffer.h', | |
55 'edk/embedder/scoped_platform_handle.h', | |
56 'edk/system/awakable.h', | |
57 'edk/system/awakable_list.cc', | |
58 'edk/system/awakable_list.h', | |
59 'edk/system/async_waiter.cc', | |
60 'edk/system/async_waiter.h', | |
61 'edk/system/atomic_flag.h', | |
62 'edk/system/channel.cc', | |
63 'edk/system/channel.h', | |
64 'edk/system/configuration.cc', | |
65 'edk/system/configuration.h', | |
66 'edk/system/core.cc', | |
67 'edk/system/core.h', | |
68 'edk/system/data_pipe_consumer_dispatcher.cc', | |
69 'edk/system/data_pipe_consumer_dispatcher.h', | |
70 'edk/system/data_pipe_control_message.cc', | |
71 'edk/system/data_pipe_control_message.h', | |
72 'edk/system/data_pipe_producer_dispatcher.cc', | |
73 'edk/system/data_pipe_producer_dispatcher.h', | |
74 'edk/system/dispatcher.cc', | |
75 'edk/system/dispatcher.h', | |
76 'edk/system/handle_signals_state.h', | |
77 'edk/system/handle_table.cc', | |
78 'edk/system/handle_table.h', | |
79 'edk/system/mapping_table.cc', | |
80 'edk/system/mapping_table.h', | |
81 'edk/system/message_for_transit.cc', | |
82 'edk/system/message_for_transit.h', | |
83 'edk/system/message_pipe_dispatcher.cc', | |
84 'edk/system/message_pipe_dispatcher.h', | |
85 'edk/system/node_channel.cc', | |
86 'edk/system/node_channel.h', | |
87 'edk/system/node_controller.cc', | |
88 'edk/system/node_controller.h', | |
89 'edk/system/options_validation.h', | |
90 'edk/system/platform_handle_dispatcher.cc', | |
91 'edk/system/platform_handle_dispatcher.h', | |
92 'edk/system/ports/event.cc', | |
93 'edk/system/ports/event.h', | |
94 'edk/system/ports/message.cc', | |
95 'edk/system/ports/message.h', | |
96 'edk/system/ports/message_queue.cc', | |
97 'edk/system/ports/message_queue.h', | |
98 'edk/system/ports/name.cc', | |
99 'edk/system/ports/name.h', | |
100 'edk/system/ports/node.cc', | |
101 'edk/system/ports/node.h', | |
102 'edk/system/ports/node_delegate.h', | |
103 'edk/system/ports/port.cc', | |
104 'edk/system/ports/port.h', | |
105 'edk/system/ports/port_ref.cc', | |
106 'edk/system/ports/user_data.h', | |
107 'edk/system/ports_message.cc', | |
108 'edk/system/ports_message.h', | |
109 'edk/system/request_context.cc', | |
110 'edk/system/request_context.h', | |
111 'edk/system/shared_buffer_dispatcher.cc', | |
112 'edk/system/shared_buffer_dispatcher.h', | |
113 'edk/system/wait_set_dispatcher.cc', | |
114 'edk/system/wait_set_dispatcher.h', | |
115 'edk/system/waiter.cc', | |
116 'edk/system/waiter.h', | |
117 'edk/system/watcher.cc', | |
118 'edk/system/watcher.h', | |
119 'edk/system/watcher_set.cc', | |
120 'edk/system/watcher_set.h', | |
121 # Test-only code: | |
122 # TODO(vtl): It's a little unfortunate that these end up in the same | |
123 # component as non-test-only code. In the static build, this code | |
124 # should hopefully be dead-stripped. | |
125 'edk/embedder/test_embedder.cc', | |
126 'edk/embedder/test_embedder.h', | |
127 ], | 68 ], |
128 }, | 69 }, |
129 ], | 70 ], |
130 } | 71 } |
OLD | NEW |