jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'includes': [ |
| 7 | '../third_party/mojo/mojo_variables.gypi', |
| 8 | ], |
| 9 | 'target_defaults' : { |
| 10 | 'include_dirs': [ |
| 11 | '..', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 12 | ], |
| 13 | 'direct_dependent_settings': { |
| 14 | 'include_dirs': [ |
| 15 | '..', |
| 16 | ], |
| 17 | }, |
| 18 | }, |
| 19 | 'targets': [ |
| 20 | { |
| 21 | # GN version: //mojo/edk/system |
| 22 | 'target_name': 'mojo_system_impl2', |
| 23 | 'type': 'static_library', |
| 24 | # TODO(use_chrome_edk): this should be a component to match third_party, |
| 25 | # but since third_party includes it, we either make it a static library |
| 26 | # or we have to change the export macros to be different than third_party. |
| 27 | #'type': '<(component)', |
| 28 | 'dependencies': [ |
| 29 | '../base/base.gyp:base', |
| 30 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 31 | ], |
| 32 | 'defines': [ |
| 33 | 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
| 34 | 'MOJO_SYSTEM_IMPLEMENTATION', |
| 35 | 'MOJO_USE_SYSTEM_IMPL', |
| 36 | ], |
| 37 | 'sources': [ |
| 38 | 'edk/embedder/configuration.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 39 | 'edk/embedder/embedder.cc', |
| 40 | 'edk/embedder/embedder.h', |
| 41 | 'edk/embedder/embedder_internal.h', |
| 42 | 'edk/embedder/entrypoints.cc', |
| 43 | 'edk/embedder/platform_channel_pair.cc', |
| 44 | 'edk/embedder/platform_channel_pair.h', |
| 45 | 'edk/embedder/platform_channel_pair_posix.cc', |
| 46 | 'edk/embedder/platform_channel_pair_win.cc', |
| 47 | 'edk/embedder/platform_channel_utils_posix.cc', |
| 48 | 'edk/embedder/platform_channel_utils_posix.h', |
| 49 | 'edk/embedder/platform_handle.cc', |
| 50 | 'edk/embedder/platform_handle.h', |
| 51 | 'edk/embedder/platform_handle_utils.h', |
| 52 | 'edk/embedder/platform_handle_utils_posix.cc', |
| 53 | 'edk/embedder/platform_handle_utils_win.cc', |
| 54 | 'edk/embedder/platform_handle_vector.h', |
| 55 | 'edk/embedder/platform_shared_buffer.h', |
| 56 | 'edk/embedder/platform_support.h', |
| 57 | 'edk/embedder/scoped_platform_handle.h', |
| 58 | 'edk/embedder/simple_platform_shared_buffer.cc', |
| 59 | 'edk/embedder/simple_platform_shared_buffer.h', |
| 60 | 'edk/embedder/simple_platform_shared_buffer_android.cc', |
| 61 | 'edk/embedder/simple_platform_shared_buffer_posix.cc', |
| 62 | 'edk/embedder/simple_platform_shared_buffer_win.cc', |
| 63 | 'edk/embedder/simple_platform_support.cc', |
| 64 | 'edk/embedder/simple_platform_support.h', |
| 65 | 'edk/system/awakable.h', |
| 66 | 'edk/system/awakable_list.cc', |
| 67 | 'edk/system/awakable_list.h', |
| 68 | 'edk/system/async_waiter.cc', |
| 69 | 'edk/system/async_waiter.h', |
jam | 6de73f3 | 2015-11-26 03:48:29 +0900 | [diff] [blame] | 70 | 'edk/system/broker.h', |
| 71 | 'edk/system/broker_messages.h', |
| 72 | 'edk/system/broker_state.cc', |
| 73 | 'edk/system/broker_state.h', |
| 74 | 'edk/system/child_broker_host.cc', |
| 75 | 'edk/system/child_broker_host.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 76 | 'edk/system/configuration.cc', |
| 77 | 'edk/system/configuration.h', |
| 78 | 'edk/system/core.cc', |
| 79 | 'edk/system/core.h', |
| 80 | 'edk/system/data_pipe.cc', |
| 81 | 'edk/system/data_pipe.h', |
| 82 | 'edk/system/data_pipe_consumer_dispatcher.cc', |
| 83 | 'edk/system/data_pipe_consumer_dispatcher.h', |
| 84 | 'edk/system/data_pipe_producer_dispatcher.cc', |
| 85 | 'edk/system/data_pipe_producer_dispatcher.h', |
| 86 | 'edk/system/dispatcher.cc', |
| 87 | 'edk/system/dispatcher.h', |
| 88 | 'edk/system/handle_signals_state.h', |
| 89 | 'edk/system/handle_table.cc', |
| 90 | 'edk/system/handle_table.h', |
| 91 | 'edk/system/mapping_table.cc', |
| 92 | 'edk/system/mapping_table.h', |
| 93 | 'edk/system/message_in_transit.cc', |
| 94 | 'edk/system/message_in_transit.h', |
| 95 | 'edk/system/message_in_transit_queue.cc', |
| 96 | 'edk/system/message_in_transit_queue.h', |
| 97 | 'edk/system/message_pipe_dispatcher.cc', |
| 98 | 'edk/system/message_pipe_dispatcher.h', |
| 99 | 'edk/system/options_validation.h', |
jam | 6de73f3 | 2015-11-26 03:48:29 +0900 | [diff] [blame] | 100 | 'edk/system/child_broker.cc', |
| 101 | 'edk/system/child_broker.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 102 | 'edk/system/platform_handle_dispatcher.cc', |
| 103 | 'edk/system/platform_handle_dispatcher.h', |
| 104 | 'edk/system/raw_channel.cc', |
| 105 | 'edk/system/raw_channel.h', |
| 106 | 'edk/system/raw_channel_posix.cc', |
| 107 | 'edk/system/raw_channel_win.cc', |
John Abd-El-Malek | 8ff3521 | 2015-12-07 08:48:24 +0900 | [diff] [blame] | 108 | 'edk/system/routed_raw_channel.cc', |
| 109 | 'edk/system/routed_raw_channel.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 110 | 'edk/system/shared_buffer_dispatcher.cc', |
| 111 | 'edk/system/shared_buffer_dispatcher.h', |
| 112 | 'edk/system/simple_dispatcher.cc', |
| 113 | 'edk/system/simple_dispatcher.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 114 | 'edk/system/transport_data.cc', |
| 115 | 'edk/system/transport_data.h', |
amistry | 6bf2be7 | 2015-12-11 12:45:17 +0900 | [diff] [blame] | 116 | 'edk/system/wait_set_dispatcher.cc', |
| 117 | 'edk/system/wait_set_dispatcher.h', |
jam | e76324e | 2015-10-03 06:01:28 +0900 | [diff] [blame] | 118 | 'edk/system/waiter.cc', |
| 119 | 'edk/system/waiter.h', |
| 120 | # Test-only code: |
| 121 | # TODO(vtl): It's a little unfortunate that these end up in the same |
| 122 | # component as non-test-only code. In the static build, this code |
| 123 | # should hopefully be dead-stripped. |
| 124 | 'edk/embedder/test_embedder.cc', |
| 125 | 'edk/embedder/test_embedder.h', |
| 126 | ], |
| 127 | 'all_dependent_settings': { |
| 128 | # Ensures that dependent projects import the core functions on Windows. |
| 129 | 'defines': ['MOJO_USE_SYSTEM_IMPL'], |
| 130 | }, |
| 131 | 'conditions': [ |
| 132 | ['OS=="android"', { |
| 133 | 'dependencies': [ |
| 134 | '../third_party/ashmem/ashmem.gyp:ashmem', |
| 135 | ], |
| 136 | }], |
| 137 | ['OS=="win"', { |
| 138 | # Structure was padded due to __declspec(align()), which is |
| 139 | # uninteresting. |
| 140 | 'msvs_disabled_warnings': [ 4324 ], |
| 141 | }], |
| 142 | ], |
| 143 | }, |
| 144 | { |
| 145 | # GN version: //mojo/edk/js |
| 146 | # TODO(use_chrome_edk): remove "2" |
| 147 | 'target_name': 'mojo_js_lib2', |
| 148 | 'type': 'static_library', |
| 149 | 'dependencies': [ |
| 150 | '../base/base.gyp:base', |
| 151 | '../gin/gin.gyp:gin', |
| 152 | '../v8/tools/gyp/v8.gyp:v8', |
| 153 | ], |
| 154 | 'export_dependent_settings': [ |
| 155 | '../base/base.gyp:base', |
| 156 | '../gin/gin.gyp:gin', |
| 157 | ], |
| 158 | 'sources': [ |
| 159 | # Sources list duplicated in GN build. |
| 160 | 'edk/js/core.cc', |
| 161 | 'edk/js/core.h', |
| 162 | 'edk/js/drain_data.cc', |
| 163 | 'edk/js/drain_data.h', |
| 164 | 'edk/js/handle.cc', |
| 165 | 'edk/js/handle.h', |
| 166 | 'edk/js/handle_close_observer.h', |
| 167 | 'edk/js/mojo_runner_delegate.cc', |
| 168 | 'edk/js/mojo_runner_delegate.h', |
| 169 | 'edk/js/support.cc', |
| 170 | 'edk/js/support.h', |
| 171 | 'edk/js/threading.cc', |
| 172 | 'edk/js/threading.h', |
| 173 | 'edk/js/waiting_callback.cc', |
| 174 | 'edk/js/waiting_callback.h', |
| 175 | ], |
| 176 | }, |
| 177 | { |
| 178 | # GN version: //mojo/edk/test:test_support_impl |
| 179 | # TODO(use_chrome_edk): remove "2" |
| 180 | 'target_name': 'mojo_test_support_impl2', |
| 181 | 'type': 'static_library', |
| 182 | 'dependencies': [ |
| 183 | '../base/base.gyp:base', |
| 184 | ], |
| 185 | 'sources': [ |
| 186 | 'edk/test/test_support_impl.cc', |
| 187 | 'edk/test/test_support_impl.h', |
| 188 | ], |
| 189 | }, |
| 190 | { |
| 191 | # GN version: //mojo/edk/test:test_support |
| 192 | 'target_name': 'mojo_common_test_support2', |
| 193 | 'type': 'static_library', |
| 194 | 'dependencies': [ |
| 195 | '../base/base.gyp:base', |
| 196 | '../base/base.gyp:test_support_base', |
| 197 | '../testing/gtest.gyp:gtest', |
| 198 | 'mojo_system_impl2', |
| 199 | ], |
| 200 | 'sources': [ |
| 201 | 'edk/test/multiprocess_test_helper.cc', |
| 202 | 'edk/test/multiprocess_test_helper.h', |
| 203 | 'edk/test/scoped_ipc_support.cc', |
| 204 | 'edk/test/scoped_ipc_support.h', |
| 205 | 'edk/test/test_utils.h', |
| 206 | 'edk/test/test_utils_posix.cc', |
| 207 | 'edk/test/test_utils_win.cc', |
| 208 | ], |
| 209 | 'conditions': [ |
| 210 | ['OS=="ios"', { |
| 211 | 'sources!': [ |
| 212 | 'edk/test/multiprocess_test_helper.cc', |
| 213 | ], |
| 214 | }], |
| 215 | ], |
| 216 | }, |
| 217 | { |
| 218 | # GN version: //mojo/edk/test:run_all_unittests |
| 219 | # TODO(use_chrome_edk): remove "2" |
| 220 | 'target_name': 'mojo_run_all_unittests2', |
| 221 | 'type': 'static_library', |
| 222 | 'dependencies': [ |
| 223 | '../base/base.gyp:base', |
| 224 | '../base/base.gyp:test_support_base', |
| 225 | '../testing/gtest.gyp:gtest', |
| 226 | '../third_party/mojo/mojo_public.gyp:mojo_public_test_support', |
| 227 | 'mojo_system_impl2', |
| 228 | 'mojo_test_support_impl2', |
| 229 | ], |
| 230 | 'sources': [ |
| 231 | 'edk/test/run_all_unittests.cc', |
| 232 | ], |
| 233 | }, |
| 234 | ], |
| 235 | } |