[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 1 | # Copyright 2013 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 | { |
[email protected] | f0234305 | 2014-01-14 14:43:56 | [diff] [blame] | 6 | 'target_defaults': { |
| 7 | 'conditions': [ |
| 8 | ['mojo_shell_debug_url != ""', { |
| 9 | 'defines': [ |
| 10 | 'MOJO_SHELL_DEBUG=1', |
| 11 | 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"', |
| 12 | ], |
| 13 | }], |
| 14 | ], |
| 15 | }, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 16 | 'variables': { |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 17 | 'chromium_code': 1, |
[email protected] | f0234305 | 2014-01-14 14:43:56 | [diff] [blame] | 18 | 'mojo_shell_debug_url%': "", |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 19 | }, |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 20 | 'includes': [ |
[email protected] | de3d0b0 | 2013-12-03 23:18:25 | [diff] [blame] | 21 | 'mojo_apps.gypi', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 22 | 'mojo_examples.gypi', |
| 23 | 'mojo_public.gypi', |
| 24 | 'mojo_services.gypi', |
| 25 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 26 | 'targets': [ |
| 27 | { |
| 28 | 'target_name': 'mojo', |
| 29 | 'type': 'none', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 30 | 'dependencies': [ |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 31 | 'mojo_apps_js_unittests', |
[email protected] | b4aef95 | 2013-11-26 23:25:45 | [diff] [blame] | 32 | 'mojo_bindings', |
[email protected] | 4b1172e | 2014-01-15 22:26:31 | [diff] [blame] | 33 | 'mojo_compositor_app', |
[email protected] | cbf7e96 | 2013-11-07 20:35:52 | [diff] [blame] | 34 | 'mojo_common_lib', |
| 35 | 'mojo_common_unittests', |
[email protected] | 9383074 | 2013-11-08 12:17:24 | [diff] [blame] | 36 | 'mojo_js', |
[email protected] | de3d0b0 | 2013-12-03 23:18:25 | [diff] [blame] | 37 | 'mojo_js_unittests', |
[email protected] | 6bcc45b | 2014-03-22 04:11:12 | [diff] [blame] | 38 | 'mojo_pepper_container_app', |
[email protected] | 6eb908a | 2014-02-13 17:54:54 | [diff] [blame] | 39 | 'mojo_public_test_utils', |
[email protected] | 0b438a6 | 2014-01-12 06:19:03 | [diff] [blame] | 40 | 'mojo_public_bindings_unittests', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 41 | 'mojo_public_environment_unittests', |
[email protected] | 0b438a6 | 2014-01-12 06:19:03 | [diff] [blame] | 42 | 'mojo_public_system_perftests', |
| 43 | 'mojo_public_system_unittests', |
| 44 | 'mojo_public_utility_unittests', |
[email protected] | 67f839c9 | 2013-12-11 03:26:40 | [diff] [blame] | 45 | 'mojo_sample_app', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 46 | 'mojo_service_manager', |
| 47 | 'mojo_service_manager_unittests', |
[email protected] | b4aef95 | 2013-11-26 23:25:45 | [diff] [blame] | 48 | 'mojo_shell', |
| 49 | 'mojo_shell_lib', |
| 50 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 51 | 'mojo_system_impl', |
[email protected] | b4aef95 | 2013-11-26 23:25:45 | [diff] [blame] | 52 | 'mojo_system_unittests', |
[email protected] | 273e217 | 2013-12-10 07:24:16 | [diff] [blame] | 53 | 'mojo_utility', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 54 | ], |
[email protected] | 331e4db | 2014-01-07 21:46:04 | [diff] [blame] | 55 | 'conditions': [ |
| 56 | ['use_aura==1', { |
| 57 | 'dependencies': [ |
| 58 | 'mojo_aura_demo', |
[email protected] | bddb284 | 2014-01-27 22:38:19 | [diff] [blame] | 59 | 'mojo_launcher', |
[email protected] | 1fd49614 | 2014-01-29 05:16:02 | [diff] [blame] | 60 | 'mojo_view_manager', |
[email protected] | 331e4db | 2014-01-07 21:46:04 | [diff] [blame] | 61 | ], |
| 62 | }], |
| 63 | ] |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 64 | }, |
| 65 | { |
[email protected] | 4b4068d | 2013-11-11 21:12:03 | [diff] [blame] | 66 | 'target_name': 'mojo_run_all_unittests', |
| 67 | 'type': 'static_library', |
| 68 | 'dependencies': [ |
| 69 | '../base/base.gyp:base', |
| 70 | '../base/base.gyp:test_support_base', |
[email protected] | d16a5b4 | 2013-12-03 17:47:24 | [diff] [blame] | 71 | '../testing/gtest.gyp:gtest', |
[email protected] | 4b4068d | 2013-11-11 21:12:03 | [diff] [blame] | 72 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 73 | 'mojo_system_impl', |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 74 | 'mojo_test_support', |
| 75 | 'mojo_test_support_impl', |
[email protected] | 4b4068d | 2013-11-11 21:12:03 | [diff] [blame] | 76 | ], |
| 77 | 'sources': [ |
| 78 | 'common/test/run_all_unittests.cc', |
| 79 | ], |
| 80 | }, |
| 81 | { |
[email protected] | 5f8471fb | 2013-11-26 23:07:24 | [diff] [blame] | 82 | 'target_name': 'mojo_run_all_perftests', |
| 83 | 'type': 'static_library', |
| 84 | 'dependencies': [ |
| 85 | '../base/base.gyp:test_support_base', |
| 86 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 87 | 'mojo_system_impl', |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 88 | 'mojo_test_support', |
| 89 | 'mojo_test_support_impl', |
[email protected] | 5f8471fb | 2013-11-26 23:07:24 | [diff] [blame] | 90 | ], |
| 91 | 'sources': [ |
| 92 | 'common/test/run_all_perftests.cc', |
| 93 | ], |
| 94 | }, |
| 95 | { |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 96 | 'target_name': 'mojo_system_impl', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 97 | 'type': '<(component)', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 98 | 'dependencies': [ |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 99 | 'mojo_system', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 100 | '../base/base.gyp:base', |
[email protected] | 44992e7 | 2014-03-04 07:44:13 | [diff] [blame] | 101 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 102 | ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 103 | 'defines': [ |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 104 | 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 105 | ], |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 106 | 'sources': [ |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 107 | 'embedder/embedder.cc', |
| 108 | 'embedder/embedder.h', |
| 109 | 'embedder/platform_channel_pair.cc', |
| 110 | 'embedder/platform_channel_pair.h', |
| 111 | 'embedder/platform_channel_pair_posix.cc', |
| 112 | 'embedder/platform_channel_pair_win.cc', |
| 113 | 'embedder/platform_handle.cc', |
| 114 | 'embedder/platform_handle.h', |
| 115 | 'embedder/scoped_platform_handle.h', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 116 | 'system/channel.cc', |
| 117 | 'system/channel.h', |
[email protected] | 3244698 | 2013-12-16 20:58:48 | [diff] [blame] | 118 | 'system/constants.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 119 | 'system/core_impl.cc', |
| 120 | 'system/core_impl.h', |
[email protected] | 82d1954d | 2013-12-13 22:23:19 | [diff] [blame] | 121 | 'system/data_pipe.cc', |
| 122 | 'system/data_pipe.h', |
[email protected] | ae3d357 | 2013-12-14 00:00:53 | [diff] [blame] | 123 | 'system/data_pipe_consumer_dispatcher.cc', |
| 124 | 'system/data_pipe_consumer_dispatcher.h', |
[email protected] | 82d1954d | 2013-12-13 22:23:19 | [diff] [blame] | 125 | 'system/data_pipe_producer_dispatcher.cc', |
| 126 | 'system/data_pipe_producer_dispatcher.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 127 | 'system/dispatcher.cc', |
| 128 | 'system/dispatcher.h', |
[email protected] | 0079801 | 2013-12-16 20:39:30 | [diff] [blame] | 129 | 'system/local_data_pipe.cc', |
| 130 | 'system/local_data_pipe.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 131 | 'system/local_message_pipe_endpoint.cc', |
| 132 | 'system/local_message_pipe_endpoint.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 133 | 'system/memory.cc', |
| 134 | 'system/memory.h', |
[email protected] | aae74e9 | 2013-10-03 20:52:34 | [diff] [blame] | 135 | 'system/message_in_transit.cc', |
| 136 | 'system/message_in_transit.h', |
[email protected] | 311a9a1 | 2014-03-03 23:17:23 | [diff] [blame] | 137 | 'system/message_in_transit_queue.cc', |
| 138 | 'system/message_in_transit_queue.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 139 | 'system/message_pipe.cc', |
| 140 | 'system/message_pipe.h', |
| 141 | 'system/message_pipe_dispatcher.cc', |
| 142 | 'system/message_pipe_dispatcher.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 143 | 'system/message_pipe_endpoint.cc', |
| 144 | 'system/message_pipe_endpoint.h', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 145 | 'system/proxy_message_pipe_endpoint.cc', |
| 146 | 'system/proxy_message_pipe_endpoint.h', |
[email protected] | 49762650 | 2014-02-27 18:13:25 | [diff] [blame] | 147 | 'system/raw_channel.cc', |
[email protected] | 5a0d006 | 2013-10-11 19:07:18 | [diff] [blame] | 148 | 'system/raw_channel.h', |
| 149 | 'system/raw_channel_posix.cc', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 150 | 'system/raw_channel_win.cc', |
[email protected] | ac1df70 | 2014-03-21 20:45:27 | [diff] [blame] | 151 | 'system/raw_shared_buffer.cc', |
| 152 | 'system/raw_shared_buffer.h', |
| 153 | 'system/raw_shared_buffer_posix.cc', |
| 154 | 'system/raw_shared_buffer_win.cc', |
[email protected] | be7edee | 2014-03-22 07:01:52 | [diff] [blame] | 155 | 'system/shared_buffer_dispatcher.cc', |
| 156 | 'system/shared_buffer_dispatcher.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 157 | 'system/simple_dispatcher.cc', |
| 158 | 'system/simple_dispatcher.h', |
| 159 | 'system/waiter.cc', |
| 160 | 'system/waiter.h', |
| 161 | 'system/waiter_list.cc', |
| 162 | 'system/waiter_list.h', |
[email protected] | 8579fe0 | 2014-01-16 23:51:10 | [diff] [blame] | 163 | # Test-only code: |
| 164 | # TODO(vtl): It's a little unfortunate that these end up in the same |
| 165 | # component as non-test-only code. In the static build, this code should |
| 166 | # hopefully be dead-stripped. |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 167 | 'embedder/test_embedder.cc', |
| 168 | 'embedder/test_embedder.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 169 | ], |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 170 | }, |
| 171 | { |
| 172 | 'target_name': 'mojo_system_unittests', |
| 173 | 'type': 'executable', |
| 174 | 'dependencies': [ |
| 175 | '../base/base.gyp:run_all_unittests', |
| 176 | '../testing/gtest.gyp:gtest', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 177 | 'mojo_common_test_support', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 178 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 179 | 'mojo_system_impl', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 180 | ], |
| 181 | 'sources': [ |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 182 | 'embedder/embedder_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 183 | 'system/core_impl_unittest.cc', |
| 184 | 'system/core_test_base.cc', |
| 185 | 'system/core_test_base.h', |
[email protected] | 92fb7f4 | 2013-12-17 22:38:30 | [diff] [blame] | 186 | 'system/data_pipe_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 187 | 'system/dispatcher_unittest.cc', |
[email protected] | 92fb7f4 | 2013-12-17 22:38:30 | [diff] [blame] | 188 | 'system/local_data_pipe_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 189 | 'system/message_pipe_dispatcher_unittest.cc', |
| 190 | 'system/message_pipe_unittest.cc', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 191 | 'system/multiprocess_message_pipe_unittest.cc', |
[email protected] | 44992e7 | 2014-03-04 07:44:13 | [diff] [blame] | 192 | 'system/raw_channel_unittest.cc', |
[email protected] | ac1df70 | 2014-03-21 20:45:27 | [diff] [blame] | 193 | 'system/raw_shared_buffer_unittest.cc', |
[email protected] | f764b25b | 2014-03-06 10:31:47 | [diff] [blame] | 194 | 'system/remote_message_pipe_unittest.cc', |
[email protected] | 4006309 | 2014-03-24 22:46:09 | [diff] [blame^] | 195 | 'system/shared_buffer_dispatcher_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 196 | 'system/simple_dispatcher_unittest.cc', |
[email protected] | b334246d | 2013-10-24 00:08:57 | [diff] [blame] | 197 | 'system/test_utils.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 198 | 'system/test_utils.h', |
| 199 | 'system/waiter_list_unittest.cc', |
| 200 | 'system/waiter_test_utils.cc', |
| 201 | 'system/waiter_test_utils.h', |
| 202 | 'system/waiter_unittest.cc', |
| 203 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 204 | }, |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 205 | { |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 206 | 'target_name': 'mojo_gles2_impl', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 207 | 'type': '<(component)', |
| 208 | 'dependencies': [ |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 209 | '../base/base.gyp:base', |
| 210 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 211 | '../gpu/gpu.gyp:command_buffer_client', |
| 212 | '../gpu/gpu.gyp:command_buffer_common', |
| 213 | '../gpu/gpu.gyp:gles2_cmd_helper', |
| 214 | '../gpu/gpu.gyp:gles2_implementation', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 215 | 'mojo_gles2', |
[email protected] | c329ad7 | 2014-01-23 04:02:49 | [diff] [blame] | 216 | 'mojo_gles2_bindings', |
| 217 | 'mojo_environment_chromium', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 218 | ], |
| 219 | 'defines': [ |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 220 | 'MOJO_GLES2_IMPL_IMPLEMENTATION', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 221 | ], |
| 222 | 'sources': [ |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 223 | 'gles2/command_buffer_client_impl.cc', |
| 224 | 'gles2/command_buffer_client_impl.h', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 225 | 'gles2/gles2_impl_export.h', |
| 226 | 'gles2/gles2_support_impl.cc', |
| 227 | 'gles2/gles2_support_impl.h', |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 228 | 'gles2/gles2_context.cc', |
| 229 | 'gles2/gles2_context.h', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 230 | ], |
| 231 | }, |
| 232 | { |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 233 | 'target_name': 'mojo_test_support_impl', |
| 234 | 'type': 'static_library', |
| 235 | 'dependencies': [ |
| 236 | '../base/base.gyp:base', |
| 237 | ], |
| 238 | 'sources': [ |
| 239 | 'common/test/test_support_impl.cc', |
| 240 | 'common/test/test_support_impl.h', |
| 241 | ], |
| 242 | }, |
| 243 | { |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 244 | 'target_name': 'mojo_common_lib', |
| 245 | 'type': '<(component)', |
| 246 | 'defines': [ |
| 247 | 'MOJO_COMMON_IMPLEMENTATION', |
| 248 | ], |
| 249 | 'dependencies': [ |
| 250 | '../base/base.gyp:base', |
| 251 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 252 | 'mojo_system', |
| 253 | ], |
| 254 | 'sources': [ |
[email protected] | 2229d425 | 2013-12-08 06:53:47 | [diff] [blame] | 255 | 'common/common_type_converters.cc', |
| 256 | 'common/common_type_converters.h', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 257 | 'common/handle_watcher.cc', |
| 258 | 'common/handle_watcher.h', |
| 259 | 'common/message_pump_mojo.cc', |
| 260 | 'common/message_pump_mojo.h', |
| 261 | 'common/message_pump_mojo_handler.h', |
[email protected] | 433f7d8 | 2014-03-15 00:53:48 | [diff] [blame] | 262 | 'common/time_helper.cc', |
| 263 | 'common/time_helper.h', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 264 | ], |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 265 | }, |
| 266 | { |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 267 | 'target_name': 'mojo_common_test_support', |
| 268 | 'type': 'static_library', |
| 269 | 'dependencies': [ |
| 270 | '../base/base.gyp:base', |
| 271 | '../base/base.gyp:test_support_base', |
| 272 | '../testing/gtest.gyp:gtest', |
| 273 | 'mojo_system', |
| 274 | 'mojo_system_impl', |
| 275 | ], |
| 276 | 'sources': [ |
[email protected] | 3bc1379 | 2014-03-08 22:58:37 | [diff] [blame] | 277 | 'common/test/multiprocess_test_helper.cc', |
| 278 | 'common/test/multiprocess_test_helper.h', |
[email protected] | b8e55f6 | 2014-02-22 21:01:54 | [diff] [blame] | 279 | 'common/test/test_utils.h', |
| 280 | 'common/test/test_utils_posix.cc', |
| 281 | 'common/test/test_utils_win.cc', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 282 | ], |
| 283 | }, |
| 284 | { |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 285 | 'target_name': 'mojo_common_unittests', |
| 286 | 'type': 'executable', |
| 287 | 'dependencies': [ |
| 288 | '../base/base.gyp:base', |
| 289 | '../base/base.gyp:base_message_loop_tests', |
| 290 | '../testing/gtest.gyp:gtest', |
[email protected] | c2a52bf | 2013-12-02 13:55:36 | [diff] [blame] | 291 | 'mojo_bindings', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 292 | 'mojo_environment_chromium', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 293 | 'mojo_common_lib', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 294 | 'mojo_common_test_support', |
[email protected] | 6eb908a | 2014-02-13 17:54:54 | [diff] [blame] | 295 | 'mojo_public_test_utils', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 296 | 'mojo_run_all_unittests', |
| 297 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 298 | 'mojo_system_impl', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 299 | ], |
| 300 | 'sources': [ |
[email protected] | 2229d425 | 2013-12-08 06:53:47 | [diff] [blame] | 301 | 'common/common_type_converters_unittest.cc', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 302 | 'common/handle_watcher_unittest.cc', |
| 303 | 'common/message_pump_mojo_unittest.cc', |
[email protected] | 3bc1379 | 2014-03-08 22:58:37 | [diff] [blame] | 304 | 'common/test/multiprocess_test_helper_unittest.cc', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 305 | ], |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 306 | }, |
| 307 | { |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 308 | 'target_name': 'mojo_environment_chromium', |
| 309 | 'type': 'static_library', |
| 310 | 'dependencies': [ |
| 311 | 'mojo_environment_chromium_impl', |
| 312 | ], |
| 313 | 'sources': [ |
| 314 | 'environment/default_async_waiter.cc', |
| 315 | 'environment/buffer_tls.cc', |
| 316 | 'environment/environment.cc', |
| 317 | ], |
| 318 | 'include_dirs': [ |
| 319 | '..', |
| 320 | ], |
| 321 | 'export_dependent_settings': [ |
| 322 | 'mojo_environment_chromium_impl', |
| 323 | ], |
| 324 | }, |
| 325 | { |
| 326 | 'target_name': 'mojo_environment_chromium_impl', |
| 327 | 'type': '<(component)', |
| 328 | 'defines': [ |
| 329 | 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION', |
| 330 | ], |
| 331 | 'dependencies': [ |
| 332 | '../base/base.gyp:base', |
| 333 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 334 | 'mojo_common_lib' |
| 335 | ], |
| 336 | 'sources': [ |
| 337 | 'environment/default_async_waiter_impl.cc', |
| 338 | 'environment/default_async_waiter_impl.h', |
| 339 | 'environment/buffer_tls_impl.cc', |
| 340 | 'environment/buffer_tls_impl.h', |
| 341 | ], |
| 342 | 'include_dirs': [ |
| 343 | '..', |
| 344 | ], |
| 345 | }, |
| 346 | { |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 347 | 'target_name': 'mojo_service_manager', |
[email protected] | cfda411c | 2014-03-21 17:51:28 | [diff] [blame] | 348 | 'type': 'static_library', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 349 | 'dependencies': [ |
| 350 | '../base/base.gyp:base', |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 351 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 352 | '../net/net.gyp:net', |
| 353 | '../url/url.gyp:url_lib', |
| 354 | 'mojo_shell_bindings', |
| 355 | ], |
| 356 | 'sources': [ |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 357 | 'service_manager/service_loader.h', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 358 | 'service_manager/service_manager.cc', |
| 359 | 'service_manager/service_manager.h', |
| 360 | ], |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 361 | 'export_dependent_settings': [ |
| 362 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 363 | ], |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 364 | }, |
| 365 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 366 | 'target_name': 'mojo_shell_lib', |
| 367 | 'type': 'static_library', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 368 | 'dependencies': [ |
| 369 | '../base/base.gyp:base', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 370 | '../base/base.gyp:base_static', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 371 | '../net/net.gyp:net', |
[email protected] | 3c44830 | 2013-10-22 08:39:08 | [diff] [blame] | 372 | '../url/url.gyp:url_lib', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 373 | 'mojo_gles2_impl', |
[email protected] | e0bd76c | 2014-03-21 16:44:38 | [diff] [blame] | 374 | 'mojo_shell_bindings', |
[email protected] | cfda411c | 2014-03-21 17:51:28 | [diff] [blame] | 375 | 'mojo_service_manager', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 376 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 377 | 'mojo_system_impl', |
[email protected] | 2e5f3a0 | 2013-12-21 07:12:37 | [diff] [blame] | 378 | 'mojo_native_viewport_service', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 379 | ], |
[email protected] | 5dcd57c3 | 2014-03-20 17:37:19 | [diff] [blame] | 380 | 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 381 | 'sources': [ |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 382 | 'shell/app_child_process.cc', |
| 383 | 'shell/app_child_process.h', |
[email protected] | 5dcd57c3 | 2014-03-20 17:37:19 | [diff] [blame] | 384 | 'shell/app_child_process.mojom', |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 385 | 'shell/app_child_process_host.cc', |
| 386 | 'shell/app_child_process_host.h', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 387 | 'shell/child_process.cc', |
| 388 | 'shell/child_process.h', |
| 389 | 'shell/child_process_host.cc', |
| 390 | 'shell/child_process_host.h', |
[email protected] | 6e50d5e4 | 2013-10-27 02:45:46 | [diff] [blame] | 391 | 'shell/context.cc', |
| 392 | 'shell/context.h', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 393 | 'shell/dynamic_service_loader.cc', |
| 394 | 'shell/dynamic_service_loader.h', |
[email protected] | e01f3a0 | 2014-03-15 00:57:43 | [diff] [blame] | 395 | 'shell/dynamic_service_runner.h', |
[email protected] | 4093270 | 2013-11-20 22:29:30 | [diff] [blame] | 396 | 'shell/init.cc', |
| 397 | 'shell/init.h', |
[email protected] | e01f3a0 | 2014-03-15 00:57:43 | [diff] [blame] | 398 | 'shell/in_process_dynamic_service_runner.cc', |
| 399 | 'shell/in_process_dynamic_service_runner.h', |
[email protected] | dcd9a9cd | 2014-02-03 09:15:41 | [diff] [blame] | 400 | 'shell/keep_alive.cc', |
| 401 | 'shell/keep_alive.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 402 | 'shell/loader.cc', |
| 403 | 'shell/loader.h', |
[email protected] | c6c6e565 | 2013-10-29 02:40:30 | [diff] [blame] | 404 | 'shell/network_delegate.cc', |
| 405 | 'shell/network_delegate.h', |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 406 | 'shell/out_of_process_dynamic_service_runner.cc', |
| 407 | 'shell/out_of_process_dynamic_service_runner.h', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 408 | 'shell/run.cc', |
| 409 | 'shell/run.h', |
[email protected] | 09d040f | 2013-12-20 20:44:59 | [diff] [blame] | 410 | 'shell/storage.cc', |
| 411 | 'shell/storage.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 412 | 'shell/switches.cc', |
| 413 | 'shell/switches.h', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 414 | 'shell/task_runners.cc', |
| 415 | 'shell/task_runners.h', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 416 | 'shell/test_child_process.cc', |
| 417 | 'shell/test_child_process.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 418 | 'shell/url_request_context_getter.cc', |
| 419 | 'shell/url_request_context_getter.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 420 | ], |
| 421 | }, |
| 422 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 423 | 'target_name': 'mojo_shell', |
| 424 | 'type': 'executable', |
| 425 | 'dependencies': [ |
| 426 | '../base/base.gyp:base', |
[email protected] | 4236839 | 2013-11-05 13:45:02 | [diff] [blame] | 427 | '../ui/gl/gl.gyp:gl', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 428 | '../url/url.gyp:url_lib', |
[email protected] | c1e5c78 | 2013-11-12 05:10:07 | [diff] [blame] | 429 | 'mojo_common_lib', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 430 | 'mojo_environment_chromium', |
[email protected] | cfda411c | 2014-03-21 17:51:28 | [diff] [blame] | 431 | 'mojo_shell_bindings', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 432 | 'mojo_shell_lib', |
| 433 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 434 | 'mojo_system_impl', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 435 | ], |
| 436 | 'sources': [ |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 437 | 'shell/desktop/mojo_main.cc', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 438 | ], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 439 | }, |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 440 | { |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 441 | 'target_name': 'mojo_service_manager_unittests', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 442 | 'type': 'executable', |
| 443 | 'dependencies': [ |
| 444 | '../base/base.gyp:base', |
| 445 | '../testing/gtest.gyp:gtest', |
[email protected] | 88579880 | 2014-03-12 16:14:21 | [diff] [blame] | 446 | 'mojo_bindings', |
[email protected] | a771d1d1 | 2014-02-06 17:34:56 | [diff] [blame] | 447 | 'mojo_environment_standalone', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 448 | 'mojo_run_all_unittests', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 449 | 'mojo_service_manager', |
[email protected] | 88579880 | 2014-03-12 16:14:21 | [diff] [blame] | 450 | 'mojo_system', |
[email protected] | a771d1d1 | 2014-02-06 17:34:56 | [diff] [blame] | 451 | 'mojo_utility', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 452 | ], |
| 453 | 'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ], |
| 454 | 'sources': [ |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 455 | 'service_manager/service_manager_unittest.cc', |
| 456 | 'service_manager/test.mojom', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 457 | ], |
| 458 | }, |
[email protected] | f8c8cc1 | 2014-03-07 23:48:32 | [diff] [blame] | 459 | { |
| 460 | 'target_name': 'mojo_js_bindings_lib', |
| 461 | 'type': 'static_library', |
| 462 | 'dependencies': [ |
| 463 | '../base/base.gyp:base', |
| 464 | '../gin/gin.gyp:gin', |
| 465 | '../v8/tools/gyp/v8.gyp:v8', |
| 466 | 'mojo_common_lib', |
| 467 | 'mojo_system', |
| 468 | ], |
| 469 | 'export_dependent_settings': [ |
| 470 | '../base/base.gyp:base', |
| 471 | '../gin/gin.gyp:gin', |
| 472 | 'mojo_common_lib', |
| 473 | 'mojo_system', |
| 474 | ], |
| 475 | 'sources': [ |
| 476 | 'bindings/js/core.cc', |
| 477 | 'bindings/js/core.h', |
| 478 | 'bindings/js/handle.cc', |
| 479 | 'bindings/js/handle.h', |
| 480 | 'bindings/js/support.cc', |
| 481 | 'bindings/js/support.h', |
| 482 | 'bindings/js/waiting_callback.cc', |
| 483 | 'bindings/js/waiting_callback.h', |
| 484 | ], |
| 485 | }, |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 486 | { |
| 487 | 'target_name': 'mojo_js_unittests', |
| 488 | 'type': 'executable', |
| 489 | 'dependencies': [ |
| 490 | '../gin/gin.gyp:gin_test', |
| 491 | 'mojo_js_bindings_lib', |
| 492 | 'mojo_run_all_unittests', |
[email protected] | 09ddb1031 | 2014-03-13 18:01:13 | [diff] [blame] | 493 | 'mojo_sample_service', |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 494 | ], |
| 495 | 'sources': [ |
| 496 | 'bindings/js/run_js_tests.cc', |
| 497 | ], |
| 498 | }, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 499 | ], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 500 | 'conditions': [ |
| 501 | ['OS=="android"', { |
| 502 | 'targets': [ |
| 503 | { |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 504 | 'target_name': 'mojo_native_viewport_java', |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 505 | 'type': 'none', |
| 506 | 'dependencies': [ |
| 507 | '../base/base.gyp:base_java', |
| 508 | ], |
| 509 | 'variables': { |
| 510 | 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android', |
| 511 | }, |
| 512 | 'includes': [ '../build/java.gypi' ], |
| 513 | }, |
| 514 | { |
[email protected] | 67f839c9 | 2013-12-11 03:26:40 | [diff] [blame] | 515 | 'target_name': 'mojo_java_set_jni_headers', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 516 | 'type': 'none', |
| 517 | 'variables': { |
| 518 | 'jni_gen_package': 'mojo', |
[email protected] | de85750 | 2014-01-10 15:08:04 | [diff] [blame] | 519 | 'jni_generator_ptr_type': 'long', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 520 | 'input_java_class': 'java/util/HashSet.class', |
| 521 | }, |
| 522 | 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
| 523 | }, |
| 524 | { |
| 525 | 'target_name': 'mojo_jni_headers', |
| 526 | 'type': 'none', |
| 527 | 'dependencies': [ |
[email protected] | 67f839c9 | 2013-12-11 03:26:40 | [diff] [blame] | 528 | 'mojo_java_set_jni_headers', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 529 | ], |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 530 | 'sources': [ |
[email protected] | 92aa30ec | 2013-12-05 06:39:18 | [diff] [blame] | 531 | 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 532 | 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 533 | ], |
| 534 | 'variables': { |
[email protected] | de85750 | 2014-01-10 15:08:04 | [diff] [blame] | 535 | 'jni_gen_package': 'mojo', |
| 536 | 'jni_generator_ptr_type': 'long', |
| 537 | }, |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 538 | 'includes': [ '../build/jni_generator.gypi' ], |
| 539 | }, |
| 540 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 541 | 'target_name': 'libmojo_shell', |
| 542 | 'type': 'shared_library', |
| 543 | 'dependencies': [ |
| 544 | '../base/base.gyp:base', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 545 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 570c26d | 2013-10-30 04:07:46 | [diff] [blame] | 546 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 547 | '../ui/gfx/gfx.gyp:gfx_geometry', |
[email protected] | 570c26d | 2013-10-30 04:07:46 | [diff] [blame] | 548 | '../ui/gl/gl.gyp:gl', |
[email protected] | c1e5c78 | 2013-11-12 05:10:07 | [diff] [blame] | 549 | 'mojo_common_lib', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 550 | 'mojo_environment_chromium', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 551 | 'mojo_jni_headers', |
[email protected] | 09d040f | 2013-12-20 20:44:59 | [diff] [blame] | 552 | 'mojo_shell_bindings', |
| 553 | 'mojo_shell_lib', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 554 | ], |
| 555 | 'sources': [ |
| 556 | 'shell/android/library_loader.cc', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 557 | 'shell/android/mojo_main.cc', |
| 558 | 'shell/android/mojo_main.h', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 559 | ], |
| 560 | }, |
| 561 | { |
| 562 | 'target_name': 'mojo_shell_apk', |
| 563 | 'type': 'none', |
| 564 | 'dependencies': [ |
| 565 | '../base/base.gyp:base_java', |
| 566 | '../net/net.gyp:net_java', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 567 | 'mojo_native_viewport_java', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 568 | 'libmojo_shell', |
| 569 | ], |
| 570 | 'variables': { |
| 571 | 'apk_name': 'MojoShell', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 572 | 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk', |
| 573 | 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 574 | 'native_lib_target': 'libmojo_shell', |
| 575 | }, |
| 576 | 'includes': [ '../build/java_apk.gypi' ], |
| 577 | } |
| 578 | ], |
| 579 | }], |
[email protected] | 9eb072b6 | 2014-03-19 20:35:16 | [diff] [blame] | 580 | ['test_isolation_mode != "noop"', { |
| 581 | 'targets': [ |
| 582 | { |
| 583 | 'target_name': 'mojo_js_unittests_run', |
| 584 | 'type': 'none', |
| 585 | 'dependencies': [ |
| 586 | 'mojo_js_unittests', |
| 587 | ], |
| 588 | 'includes': [ |
| 589 | '../build/isolate.gypi', |
| 590 | 'mojo_js_unittests.isolate', |
| 591 | ], |
| 592 | 'sources': [ |
| 593 | 'mojo_js_unittests.isolate', |
| 594 | ], |
| 595 | }, |
| 596 | ], |
| 597 | }], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 598 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 599 | } |