[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] | 4b1172e | 2014-01-15 22:26:31 | [diff] [blame] | 32 | 'mojo_compositor_app', |
[email protected] | cbf7e96 | 2013-11-07 20:35:52 | [diff] [blame] | 33 | 'mojo_common_lib', |
| 34 | 'mojo_common_unittests', |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 35 | 'mojo_cpp_bindings', |
[email protected] | 9383074 | 2013-11-08 12:17:24 | [diff] [blame] | 36 | 'mojo_js', |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 37 | 'mojo_js_bindings', |
[email protected] | de3d0b0 | 2013-12-03 23:18:25 | [diff] [blame] | 38 | 'mojo_js_unittests', |
[email protected] | 15429ab | 2014-04-04 00:43:22 | [diff] [blame] | 39 | 'mojo_message_generator', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 40 | 'mojo_native_viewport_service', |
[email protected] | 6bcc45b | 2014-03-22 04:11:12 | [diff] [blame] | 41 | 'mojo_pepper_container_app', |
[email protected] | 6eb908a | 2014-02-13 17:54:54 | [diff] [blame] | 42 | 'mojo_public_test_utils', |
[email protected] | 0b438a6 | 2014-01-12 06:19:03 | [diff] [blame] | 43 | 'mojo_public_bindings_unittests', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 44 | 'mojo_public_environment_unittests', |
[email protected] | 0b438a6 | 2014-01-12 06:19:03 | [diff] [blame] | 45 | 'mojo_public_system_perftests', |
| 46 | 'mojo_public_system_unittests', |
| 47 | 'mojo_public_utility_unittests', |
[email protected] | 67f839c9 | 2013-12-11 03:26:40 | [diff] [blame] | 48 | 'mojo_sample_app', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 49 | 'mojo_service_manager', |
| 50 | 'mojo_service_manager_unittests', |
[email protected] | b4aef95 | 2013-11-26 23:25:45 | [diff] [blame] | 51 | 'mojo_shell', |
| 52 | 'mojo_shell_lib', |
| 53 | 'mojo_system', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 54 | 'mojo_system_impl', |
[email protected] | b4aef95 | 2013-11-26 23:25:45 | [diff] [blame] | 55 | 'mojo_system_unittests', |
[email protected] | 273e217 | 2013-12-10 07:24:16 | [diff] [blame] | 56 | 'mojo_utility', |
[email protected] | 9b9ec2f | 2014-05-07 17:17:15 | [diff] [blame] | 57 | 'mojo_view_manager_lib', |
| 58 | 'mojo_view_manager_lib_unittests', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 59 | ], |
[email protected] | 331e4db | 2014-01-07 21:46:04 | [diff] [blame] | 60 | 'conditions': [ |
| 61 | ['use_aura==1', { |
| 62 | 'dependencies': [ |
| 63 | 'mojo_aura_demo', |
[email protected] | bddb284 | 2014-01-27 22:38:19 | [diff] [blame] | 64 | 'mojo_launcher', |
[email protected] | d0012d1f | 2014-04-22 21:58:10 | [diff] [blame] | 65 | 'mojo_sample_view_manager_app', |
[email protected] | 1fd49614 | 2014-01-29 05:16:02 | [diff] [blame] | 66 | 'mojo_view_manager', |
[email protected] | 36c2077c | 2014-04-23 22:36:03 | [diff] [blame] | 67 | 'mojo_view_manager_unittests', |
[email protected] | 331e4db | 2014-01-07 21:46:04 | [diff] [blame] | 68 | ], |
| 69 | }], |
[email protected] | 70c0364 | 2014-04-23 16:02:32 | [diff] [blame] | 70 | ['OS == "android"', { |
| 71 | 'dependencies': [ |
| 72 | 'mojo_public_java', |
| 73 | 'mojo_system_java', |
| 74 | 'libmojo_system_java', |
| 75 | 'mojo_test_apk', |
| 76 | ], |
| 77 | }], |
[email protected] | 331e4db | 2014-01-07 21:46:04 | [diff] [blame] | 78 | ] |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 79 | }, |
| 80 | { |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 81 | 'target_name': 'mojo_external_service_bindings', |
| 82 | 'type': 'static_library', |
| 83 | 'sources': [ |
| 84 | 'shell/external_service.mojom', |
| 85 | ], |
| 86 | 'variables': { |
| 87 | 'mojom_base_output_dir': 'mojo', |
| 88 | }, |
| 89 | 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
| 90 | 'export_dependent_settings': [ |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 91 | 'mojo_cpp_bindings', |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 92 | ], |
| 93 | 'dependencies': [ |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 94 | 'mojo_cpp_bindings', |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 95 | ], |
| 96 | }, |
| 97 | { |
[email protected] | 4b4068d | 2013-11-11 21:12:03 | [diff] [blame] | 98 | 'target_name': 'mojo_run_all_unittests', |
| 99 | 'type': 'static_library', |
| 100 | 'dependencies': [ |
| 101 | '../base/base.gyp:base', |
| 102 | '../base/base.gyp:test_support_base', |
[email protected] | d16a5b4 | 2013-12-03 17:47:24 | [diff] [blame] | 103 | '../testing/gtest.gyp:gtest', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 104 | 'mojo_system_impl', |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 105 | 'mojo_test_support', |
| 106 | 'mojo_test_support_impl', |
[email protected] | 4b4068d | 2013-11-11 21:12:03 | [diff] [blame] | 107 | ], |
| 108 | 'sources': [ |
| 109 | 'common/test/run_all_unittests.cc', |
| 110 | ], |
| 111 | }, |
| 112 | { |
[email protected] | 5f8471fb | 2013-11-26 23:07:24 | [diff] [blame] | 113 | 'target_name': 'mojo_run_all_perftests', |
| 114 | 'type': 'static_library', |
| 115 | 'dependencies': [ |
| 116 | '../base/base.gyp:test_support_base', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 117 | 'mojo_system_impl', |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 118 | 'mojo_test_support', |
| 119 | 'mojo_test_support_impl', |
[email protected] | 5f8471fb | 2013-11-26 23:07:24 | [diff] [blame] | 120 | ], |
| 121 | 'sources': [ |
| 122 | 'common/test/run_all_perftests.cc', |
| 123 | ], |
| 124 | }, |
| 125 | { |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 126 | 'target_name': 'mojo_system_impl', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 127 | 'type': '<(component)', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 128 | 'dependencies': [ |
| 129 | '../base/base.gyp:base', |
[email protected] | 44992e7 | 2014-03-04 07:44:13 | [diff] [blame] | 130 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 131 | ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 132 | 'defines': [ |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 133 | 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 134 | 'MOJO_SYSTEM_IMPLEMENTATION', |
| 135 | 'MOJO_USE_SYSTEM_IMPL', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 136 | ], |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 137 | 'sources': [ |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 138 | 'embedder/embedder.cc', |
| 139 | 'embedder/embedder.h', |
| 140 | 'embedder/platform_channel_pair.cc', |
| 141 | 'embedder/platform_channel_pair.h', |
| 142 | 'embedder/platform_channel_pair_posix.cc', |
| 143 | 'embedder/platform_channel_pair_win.cc', |
[email protected] | d4698f4 | 2014-04-05 08:30:23 | [diff] [blame] | 144 | 'embedder/platform_channel_utils_posix.cc', |
| 145 | 'embedder/platform_channel_utils_posix.h', |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 146 | 'embedder/platform_handle.cc', |
| 147 | 'embedder/platform_handle.h', |
| 148 | 'embedder/scoped_platform_handle.h', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 149 | 'system/channel.cc', |
| 150 | 'system/channel.h', |
[email protected] | 3244698 | 2013-12-16 20:58:48 | [diff] [blame] | 151 | 'system/constants.h', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 152 | 'system/core.cc', |
| 153 | 'system/core.h', |
[email protected] | 82d1954d | 2013-12-13 22:23:19 | [diff] [blame] | 154 | 'system/data_pipe.cc', |
| 155 | 'system/data_pipe.h', |
[email protected] | ae3d357 | 2013-12-14 00:00:53 | [diff] [blame] | 156 | 'system/data_pipe_consumer_dispatcher.cc', |
| 157 | 'system/data_pipe_consumer_dispatcher.h', |
[email protected] | 82d1954d | 2013-12-13 22:23:19 | [diff] [blame] | 158 | 'system/data_pipe_producer_dispatcher.cc', |
| 159 | 'system/data_pipe_producer_dispatcher.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 160 | 'system/dispatcher.cc', |
| 161 | 'system/dispatcher.h', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 162 | 'system/entrypoints.cc', |
[email protected] | 3f62328 | 2014-03-31 02:07:46 | [diff] [blame] | 163 | 'system/handle_table.cc', |
| 164 | 'system/handle_table.h', |
[email protected] | 0079801 | 2013-12-16 20:39:30 | [diff] [blame] | 165 | 'system/local_data_pipe.cc', |
| 166 | 'system/local_data_pipe.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 167 | 'system/local_message_pipe_endpoint.cc', |
| 168 | 'system/local_message_pipe_endpoint.h', |
[email protected] | cfa16b341 | 2014-04-01 11:20:12 | [diff] [blame] | 169 | 'system/mapping_table.cc', |
| 170 | 'system/mapping_table.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 171 | 'system/memory.cc', |
| 172 | 'system/memory.h', |
[email protected] | aae74e9 | 2013-10-03 20:52:34 | [diff] [blame] | 173 | 'system/message_in_transit.cc', |
| 174 | 'system/message_in_transit.h', |
[email protected] | 311a9a1 | 2014-03-03 23:17:23 | [diff] [blame] | 175 | 'system/message_in_transit_queue.cc', |
| 176 | 'system/message_in_transit_queue.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 177 | 'system/message_pipe.cc', |
| 178 | 'system/message_pipe.h', |
| 179 | 'system/message_pipe_dispatcher.cc', |
| 180 | 'system/message_pipe_dispatcher.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 181 | 'system/message_pipe_endpoint.cc', |
| 182 | 'system/message_pipe_endpoint.h', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 183 | 'system/proxy_message_pipe_endpoint.cc', |
| 184 | 'system/proxy_message_pipe_endpoint.h', |
[email protected] | 49762650 | 2014-02-27 18:13:25 | [diff] [blame] | 185 | 'system/raw_channel.cc', |
[email protected] | 5a0d006 | 2013-10-11 19:07:18 | [diff] [blame] | 186 | 'system/raw_channel.h', |
| 187 | 'system/raw_channel_posix.cc', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 188 | 'system/raw_channel_win.cc', |
[email protected] | ac1df70 | 2014-03-21 20:45:27 | [diff] [blame] | 189 | 'system/raw_shared_buffer.cc', |
| 190 | 'system/raw_shared_buffer.h', |
| 191 | 'system/raw_shared_buffer_posix.cc', |
| 192 | 'system/raw_shared_buffer_win.cc', |
[email protected] | be7edee | 2014-03-22 07:01:52 | [diff] [blame] | 193 | 'system/shared_buffer_dispatcher.cc', |
| 194 | 'system/shared_buffer_dispatcher.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 195 | 'system/simple_dispatcher.cc', |
| 196 | 'system/simple_dispatcher.h', |
[email protected] | 68d3f6b | 2014-05-03 03:40:21 | [diff] [blame] | 197 | 'system/transport_data.cc', |
| 198 | 'system/transport_data.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 199 | 'system/waiter.cc', |
| 200 | 'system/waiter.h', |
| 201 | 'system/waiter_list.cc', |
| 202 | 'system/waiter_list.h', |
[email protected] | 8579fe0 | 2014-01-16 23:51:10 | [diff] [blame] | 203 | # Test-only code: |
| 204 | # TODO(vtl): It's a little unfortunate that these end up in the same |
| 205 | # component as non-test-only code. In the static build, this code should |
| 206 | # hopefully be dead-stripped. |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 207 | 'embedder/test_embedder.cc', |
| 208 | 'embedder/test_embedder.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 209 | ], |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 210 | 'all_dependent_settings': { |
| 211 | # Ensures that dependent projects import the core functions on Windows. |
| 212 | 'defines': ['MOJO_USE_SYSTEM_IMPL'], |
| 213 | } |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 214 | }, |
| 215 | { |
| 216 | 'target_name': 'mojo_system_unittests', |
| 217 | 'type': 'executable', |
| 218 | 'dependencies': [ |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 219 | '../base/base.gyp:base', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 220 | '../base/base.gyp:run_all_unittests', |
| 221 | '../testing/gtest.gyp:gtest', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 222 | 'mojo_common_test_support', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 223 | 'mojo_system_impl', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 224 | ], |
| 225 | 'sources': [ |
[email protected] | f13fe44 | 2014-03-19 00:05:26 | [diff] [blame] | 226 | 'embedder/embedder_unittest.cc', |
[email protected] | 9e1d9492 | 2014-03-25 18:51:56 | [diff] [blame] | 227 | 'embedder/platform_channel_pair_posix_unittest.cc', |
[email protected] | c1531f5 | 2014-04-25 15:19:32 | [diff] [blame] | 228 | 'system/channel_unittest.cc', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 229 | 'system/core_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 230 | 'system/core_test_base.cc', |
| 231 | 'system/core_test_base.h', |
[email protected] | 92fb7f4 | 2013-12-17 22:38:30 | [diff] [blame] | 232 | 'system/data_pipe_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 233 | 'system/dispatcher_unittest.cc', |
[email protected] | 92fb7f4 | 2013-12-17 22:38:30 | [diff] [blame] | 234 | 'system/local_data_pipe_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 235 | 'system/message_pipe_dispatcher_unittest.cc', |
| 236 | 'system/message_pipe_unittest.cc', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 237 | 'system/multiprocess_message_pipe_unittest.cc', |
[email protected] | 44992e7 | 2014-03-04 07:44:13 | [diff] [blame] | 238 | 'system/raw_channel_unittest.cc', |
[email protected] | ac1df70 | 2014-03-21 20:45:27 | [diff] [blame] | 239 | 'system/raw_shared_buffer_unittest.cc', |
[email protected] | f764b25b | 2014-03-06 10:31:47 | [diff] [blame] | 240 | 'system/remote_message_pipe_unittest.cc', |
[email protected] | 4006309 | 2014-03-24 22:46:09 | [diff] [blame] | 241 | 'system/shared_buffer_dispatcher_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 242 | 'system/simple_dispatcher_unittest.cc', |
[email protected] | b334246d | 2013-10-24 00:08:57 | [diff] [blame] | 243 | 'system/test_utils.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 244 | 'system/test_utils.h', |
| 245 | 'system/waiter_list_unittest.cc', |
| 246 | 'system/waiter_test_utils.cc', |
| 247 | 'system/waiter_test_utils.h', |
| 248 | 'system/waiter_unittest.cc', |
| 249 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 250 | }, |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 251 | { |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 252 | 'target_name': 'mojo_gles2_impl', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 253 | 'type': '<(component)', |
| 254 | 'dependencies': [ |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 255 | '../base/base.gyp:base', |
| 256 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 257 | '../gpu/gpu.gyp:command_buffer_client', |
| 258 | '../gpu/gpu.gyp:command_buffer_common', |
| 259 | '../gpu/gpu.gyp:gles2_cmd_helper', |
| 260 | '../gpu/gpu.gyp:gles2_implementation', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 261 | 'mojo_gles2', |
[email protected] | c329ad7 | 2014-01-23 04:02:49 | [diff] [blame] | 262 | 'mojo_gles2_bindings', |
| 263 | 'mojo_environment_chromium', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 264 | 'mojo_system_impl', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 265 | ], |
| 266 | 'defines': [ |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 267 | 'MOJO_GLES2_IMPL_IMPLEMENTATION', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 268 | ], |
| 269 | 'sources': [ |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 270 | 'gles2/command_buffer_client_impl.cc', |
| 271 | 'gles2/command_buffer_client_impl.h', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 272 | 'gles2/gles2_impl_export.h', |
| 273 | 'gles2/gles2_support_impl.cc', |
| 274 | 'gles2/gles2_support_impl.h', |
[email protected] | 6878086 | 2014-02-07 00:25:07 | [diff] [blame] | 275 | 'gles2/gles2_context.cc', |
| 276 | 'gles2/gles2_context.h', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 277 | ], |
| 278 | }, |
| 279 | { |
[email protected] | 1477ef4c | 2014-02-13 20:40:53 | [diff] [blame] | 280 | 'target_name': 'mojo_test_support_impl', |
| 281 | 'type': 'static_library', |
| 282 | 'dependencies': [ |
| 283 | '../base/base.gyp:base', |
| 284 | ], |
| 285 | 'sources': [ |
| 286 | 'common/test/test_support_impl.cc', |
| 287 | 'common/test/test_support_impl.h', |
| 288 | ], |
| 289 | }, |
| 290 | { |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 291 | 'target_name': 'mojo_common_lib', |
| 292 | 'type': '<(component)', |
| 293 | 'defines': [ |
| 294 | 'MOJO_COMMON_IMPLEMENTATION', |
| 295 | ], |
| 296 | 'dependencies': [ |
| 297 | '../base/base.gyp:base', |
| 298 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 299 | 'mojo_system_impl', |
| 300 | ], |
| 301 | 'export_dependent_settings': [ |
| 302 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 303 | 'mojo_system_impl', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 304 | ], |
| 305 | 'sources': [ |
[email protected] | f68c146 | 2014-04-24 18:17:53 | [diff] [blame] | 306 | 'common/channel_init.cc', |
| 307 | 'common/channel_init.h', |
[email protected] | 2229d425 | 2013-12-08 06:53:47 | [diff] [blame] | 308 | 'common/common_type_converters.cc', |
| 309 | 'common/common_type_converters.h', |
[email protected] | 26d8482f | 2014-04-02 03:39:59 | [diff] [blame] | 310 | 'common/environment_data.cc', |
| 311 | 'common/environment_data.h', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 312 | 'common/handle_watcher.cc', |
| 313 | 'common/handle_watcher.h', |
| 314 | 'common/message_pump_mojo.cc', |
| 315 | 'common/message_pump_mojo.h', |
| 316 | 'common/message_pump_mojo_handler.h', |
[email protected] | 433f7d8 | 2014-03-15 00:53:48 | [diff] [blame] | 317 | 'common/time_helper.cc', |
| 318 | 'common/time_helper.h', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 319 | ], |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 320 | }, |
| 321 | { |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 322 | 'target_name': 'mojo_common_test_support', |
| 323 | 'type': 'static_library', |
| 324 | 'dependencies': [ |
| 325 | '../base/base.gyp:base', |
| 326 | '../base/base.gyp:test_support_base', |
| 327 | '../testing/gtest.gyp:gtest', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 328 | 'mojo_system_impl', |
| 329 | ], |
| 330 | 'sources': [ |
[email protected] | 3bc1379 | 2014-03-08 22:58:37 | [diff] [blame] | 331 | 'common/test/multiprocess_test_helper.cc', |
| 332 | 'common/test/multiprocess_test_helper.h', |
[email protected] | b8e55f6 | 2014-02-22 21:01:54 | [diff] [blame] | 333 | 'common/test/test_utils.h', |
| 334 | 'common/test/test_utils_posix.cc', |
| 335 | 'common/test/test_utils_win.cc', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 336 | ], |
| 337 | }, |
| 338 | { |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 339 | 'target_name': 'mojo_common_unittests', |
| 340 | 'type': 'executable', |
| 341 | 'dependencies': [ |
| 342 | '../base/base.gyp:base', |
| 343 | '../base/base.gyp:base_message_loop_tests', |
| 344 | '../testing/gtest.gyp:gtest', |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 345 | 'mojo_cpp_bindings', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 346 | 'mojo_environment_chromium', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 347 | 'mojo_common_lib', |
[email protected] | 1ad4014 | 2013-12-12 13:20:02 | [diff] [blame] | 348 | 'mojo_common_test_support', |
[email protected] | 6eb908a | 2014-02-13 17:54:54 | [diff] [blame] | 349 | 'mojo_public_test_utils', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 350 | 'mojo_run_all_unittests', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 351 | ], |
| 352 | 'sources': [ |
[email protected] | 2229d425 | 2013-12-08 06:53:47 | [diff] [blame] | 353 | 'common/common_type_converters_unittest.cc', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 354 | 'common/handle_watcher_unittest.cc', |
| 355 | 'common/message_pump_mojo_unittest.cc', |
[email protected] | 3bc1379 | 2014-03-08 22:58:37 | [diff] [blame] | 356 | 'common/test/multiprocess_test_helper_unittest.cc', |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 357 | ], |
[email protected] | 3cf4aad | 2013-12-01 17:27:25 | [diff] [blame] | 358 | }, |
| 359 | { |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 360 | 'target_name': 'mojo_environment_chromium', |
| 361 | 'type': 'static_library', |
| 362 | 'dependencies': [ |
[email protected] | 512e35e9 | 2014-04-08 17:35:55 | [diff] [blame] | 363 | 'mojo_common_lib', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 364 | 'mojo_environment_chromium_impl', |
| 365 | ], |
| 366 | 'sources': [ |
| 367 | 'environment/default_async_waiter.cc', |
| 368 | 'environment/buffer_tls.cc', |
| 369 | 'environment/environment.cc', |
| 370 | ], |
| 371 | 'include_dirs': [ |
| 372 | '..', |
| 373 | ], |
| 374 | 'export_dependent_settings': [ |
| 375 | 'mojo_environment_chromium_impl', |
| 376 | ], |
| 377 | }, |
| 378 | { |
| 379 | 'target_name': 'mojo_environment_chromium_impl', |
| 380 | 'type': '<(component)', |
| 381 | 'defines': [ |
| 382 | 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION', |
| 383 | ], |
| 384 | 'dependencies': [ |
| 385 | '../base/base.gyp:base', |
| 386 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 387 | 'mojo_common_lib' |
| 388 | ], |
| 389 | 'sources': [ |
| 390 | 'environment/default_async_waiter_impl.cc', |
| 391 | 'environment/default_async_waiter_impl.h', |
| 392 | 'environment/buffer_tls_impl.cc', |
| 393 | 'environment/buffer_tls_impl.h', |
| 394 | ], |
| 395 | 'include_dirs': [ |
| 396 | '..', |
| 397 | ], |
| 398 | }, |
| 399 | { |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 400 | 'target_name': 'mojo_service_manager', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 401 | 'type': '<(component)', |
| 402 | 'defines': [ |
| 403 | 'MOJO_SERVICE_MANAGER_IMPLEMENTATION', |
| 404 | ], |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 405 | 'dependencies': [ |
| 406 | '../base/base.gyp:base', |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 407 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 408 | '../net/net.gyp:net', |
| 409 | '../url/url.gyp:url_lib', |
[email protected] | 26d8482f | 2014-04-02 03:39:59 | [diff] [blame] | 410 | 'mojo_common_lib', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 411 | 'mojo_environment_chromium', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 412 | 'mojo_shell_bindings', |
[email protected] | 3a73473 | 2014-04-15 03:14:25 | [diff] [blame] | 413 | 'mojo_system_impl', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 414 | ], |
| 415 | 'sources': [ |
[email protected] | 34c758b | 2014-05-06 09:10:00 | [diff] [blame] | 416 | 'service_manager/background_service_loader.cc', |
| 417 | 'service_manager/background_service_loader.h', |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 418 | 'service_manager/service_loader.h', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 419 | 'service_manager/service_manager.cc', |
| 420 | 'service_manager/service_manager.h', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 421 | 'service_manager/service_manager_export.h', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 422 | ], |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 423 | 'export_dependent_settings': [ |
| 424 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 425 | 'mojo_shell_bindings', |
[email protected] | d656e10 | 2014-03-04 18:29:48 | [diff] [blame] | 426 | ], |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 427 | }, |
| 428 | { |
[email protected] | e268241 | 2014-04-07 22:04:42 | [diff] [blame] | 429 | 'target_name': 'mojo_spy', |
| 430 | 'type': 'static_library', |
| 431 | 'dependencies': [ |
| 432 | '../base/base.gyp:base', |
| 433 | '../base/base.gyp:base_static', |
[email protected] | dd6ca97 | 2014-04-30 08:07:50 | [diff] [blame] | 434 | '../net/net.gyp:http_server', |
[email protected] | e268241 | 2014-04-07 22:04:42 | [diff] [blame] | 435 | '../url/url.gyp:url_lib', |
| 436 | 'mojo_service_manager', |
| 437 | ], |
| 438 | 'sources': [ |
| 439 | 'spy/spy.cc', |
| 440 | 'spy/spy.h', |
[email protected] | dd6ca97 | 2014-04-30 08:07:50 | [diff] [blame] | 441 | 'spy/websocket_server.cc', |
| 442 | 'spy/websocket_server.h', |
[email protected] | e268241 | 2014-04-07 22:04:42 | [diff] [blame] | 443 | ], |
| 444 | }, |
| 445 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 446 | 'target_name': 'mojo_shell_lib', |
| 447 | 'type': 'static_library', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 448 | 'dependencies': [ |
| 449 | '../base/base.gyp:base', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 450 | '../base/base.gyp:base_static', |
[email protected] | 1124dea0 | 2014-04-29 19:31:23 | [diff] [blame] | 451 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 452 | '../net/net.gyp:net', |
[email protected] | 3c44830 | 2013-10-22 08:39:08 | [diff] [blame] | 453 | '../url/url.gyp:url_lib', |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 454 | 'mojo_external_service_bindings', |
[email protected] | 826360a3 | 2014-01-22 22:19:27 | [diff] [blame] | 455 | 'mojo_gles2_impl', |
[email protected] | cfda411c | 2014-03-21 17:51:28 | [diff] [blame] | 456 | 'mojo_service_manager', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 457 | 'mojo_shell_bindings', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 458 | 'mojo_system_impl', |
[email protected] | 2e5f3a0 | 2013-12-21 07:12:37 | [diff] [blame] | 459 | 'mojo_native_viewport_service', |
[email protected] | e268241 | 2014-04-07 22:04:42 | [diff] [blame] | 460 | 'mojo_spy', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 461 | ], |
[email protected] | 69a0a13 | 2014-03-26 16:45:02 | [diff] [blame] | 462 | 'variables': { |
| 463 | 'mojom_base_output_dir': 'mojo', |
| 464 | }, |
[email protected] | 352ed67c | 2014-04-04 21:11:21 | [diff] [blame] | 465 | 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 466 | 'sources': [ |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 467 | 'shell/app_child_process.cc', |
| 468 | 'shell/app_child_process.h', |
[email protected] | 5dcd57c3 | 2014-03-20 17:37:19 | [diff] [blame] | 469 | 'shell/app_child_process.mojom', |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 470 | 'shell/app_child_process_host.cc', |
| 471 | 'shell/app_child_process_host.h', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 472 | 'shell/child_process.cc', |
| 473 | 'shell/child_process.h', |
| 474 | 'shell/child_process_host.cc', |
| 475 | 'shell/child_process_host.h', |
[email protected] | 6e50d5e4 | 2013-10-27 02:45:46 | [diff] [blame] | 476 | 'shell/context.cc', |
| 477 | 'shell/context.h', |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 478 | 'shell/dbus_service_loader_linux.cc', |
| 479 | 'shell/dbus_service_loader_linux.h', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 480 | 'shell/dynamic_service_loader.cc', |
| 481 | 'shell/dynamic_service_loader.h', |
[email protected] | e01f3a0 | 2014-03-15 00:57:43 | [diff] [blame] | 482 | 'shell/dynamic_service_runner.h', |
[email protected] | 4093270 | 2013-11-20 22:29:30 | [diff] [blame] | 483 | 'shell/init.cc', |
| 484 | 'shell/init.h', |
[email protected] | e01f3a0 | 2014-03-15 00:57:43 | [diff] [blame] | 485 | 'shell/in_process_dynamic_service_runner.cc', |
| 486 | 'shell/in_process_dynamic_service_runner.h', |
[email protected] | dcd9a9cd | 2014-02-03 09:15:41 | [diff] [blame] | 487 | 'shell/keep_alive.cc', |
| 488 | 'shell/keep_alive.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 489 | 'shell/loader.cc', |
| 490 | 'shell/loader.h', |
[email protected] | c6c6e565 | 2013-10-29 02:40:30 | [diff] [blame] | 491 | 'shell/network_delegate.cc', |
| 492 | 'shell/network_delegate.h', |
[email protected] | 4e55929 | 2014-03-18 00:05:15 | [diff] [blame] | 493 | 'shell/out_of_process_dynamic_service_runner.cc', |
| 494 | 'shell/out_of_process_dynamic_service_runner.h', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 495 | 'shell/run.cc', |
| 496 | 'shell/run.h', |
[email protected] | 09d040f | 2013-12-20 20:44:59 | [diff] [blame] | 497 | 'shell/storage.cc', |
| 498 | 'shell/storage.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 499 | 'shell/switches.cc', |
| 500 | 'shell/switches.h', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 501 | 'shell/task_runners.cc', |
| 502 | 'shell/task_runners.h', |
[email protected] | 57d12ab | 2014-03-14 15:06:55 | [diff] [blame] | 503 | 'shell/test_child_process.cc', |
| 504 | 'shell/test_child_process.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 505 | 'shell/url_request_context_getter.cc', |
| 506 | 'shell/url_request_context_getter.h', |
[email protected] | 08f1c597 | 2014-05-09 16:26:06 | [diff] [blame^] | 507 | 'shell/view_manager_loader.cc', |
| 508 | 'shell/view_manager_loader.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 509 | ], |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 510 | 'conditions': [ |
| 511 | ['OS=="linux"', { |
| 512 | 'dependencies': [ |
| 513 | '../build/linux/system.gyp:dbus', |
| 514 | '../dbus/dbus.gyp:dbus', |
| 515 | ], |
| 516 | }], |
[email protected] | 1124dea0 | 2014-04-29 19:31:23 | [diff] [blame] | 517 | ['use_aura==1', { |
| 518 | 'dependencies': [ |
| 519 | # These are only necessary as long as we hard code use of ViewManager. |
| 520 | '../skia/skia.gyp:skia', |
[email protected] | 08f1c597 | 2014-05-09 16:26:06 | [diff] [blame^] | 521 | 'mojo_gles2', |
[email protected] | 1124dea0 | 2014-04-29 19:31:23 | [diff] [blame] | 522 | 'mojo_shell_client', |
| 523 | 'mojo_view_manager', |
| 524 | ], |
[email protected] | 08f1c597 | 2014-05-09 16:26:06 | [diff] [blame^] | 525 | }, { # use_aura==0 |
| 526 | 'sources!': [ |
| 527 | 'shell/view_manager_loader.cc', |
| 528 | 'shell/view_manager_loader.h', |
| 529 | ], |
[email protected] | 1124dea0 | 2014-04-29 19:31:23 | [diff] [blame] | 530 | }], |
| 531 | ], |
| 532 | }, |
| 533 | { |
| 534 | 'target_name': 'mojo_shell_test_support', |
| 535 | 'type': 'static_library', |
| 536 | 'dependencies': [ |
| 537 | '../base/base.gyp:base', |
| 538 | '../base/base.gyp:base_static', |
| 539 | '../url/url.gyp:url_lib', |
| 540 | 'mojo_service_manager', |
| 541 | 'mojo_shell_lib', |
| 542 | 'mojo_system_impl', |
| 543 | ], |
| 544 | 'sources': [ |
| 545 | 'shell/shell_test_helper.cc', |
| 546 | 'shell/shell_test_helper.h', |
[email protected] | 65eedf7 | 2014-04-28 11:53:16 | [diff] [blame] | 547 | ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 548 | }, |
| 549 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 550 | 'target_name': 'mojo_shell', |
| 551 | 'type': 'executable', |
| 552 | 'dependencies': [ |
| 553 | '../base/base.gyp:base', |
[email protected] | 4236839 | 2013-11-05 13:45:02 | [diff] [blame] | 554 | '../ui/gl/gl.gyp:gl', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 555 | '../url/url.gyp:url_lib', |
[email protected] | c1e5c78 | 2013-11-12 05:10:07 | [diff] [blame] | 556 | 'mojo_common_lib', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 557 | 'mojo_environment_chromium', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 558 | 'mojo_service_manager', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 559 | 'mojo_shell_lib', |
[email protected] | 5fd29c1 | 2013-12-10 07:13:47 | [diff] [blame] | 560 | 'mojo_system_impl', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 561 | ], |
| 562 | 'sources': [ |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 563 | 'shell/desktop/mojo_main.cc', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 564 | ], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 565 | }, |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 566 | { |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 567 | 'target_name': 'mojo_service_manager_unittests', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 568 | 'type': 'executable', |
| 569 | 'dependencies': [ |
| 570 | '../base/base.gyp:base', |
| 571 | '../testing/gtest.gyp:gtest', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 572 | '../url/url.gyp:url_lib', |
[email protected] | 26d8482f | 2014-04-02 03:39:59 | [diff] [blame] | 573 | 'mojo_common_lib', |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 574 | 'mojo_cpp_bindings', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 575 | 'mojo_environment_chromium', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 576 | 'mojo_run_all_unittests', |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 577 | 'mojo_service_manager', |
[email protected] | 5d90df5 | 2014-03-27 04:16:00 | [diff] [blame] | 578 | 'mojo_shell_client', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 579 | ], |
[email protected] | 69a0a13 | 2014-03-26 16:45:02 | [diff] [blame] | 580 | 'variables': { |
| 581 | 'mojom_base_output_dir': 'mojo', |
| 582 | }, |
[email protected] | 352ed67c | 2014-04-04 21:11:21 | [diff] [blame] | 583 | 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 584 | 'sources': [ |
[email protected] | fadab2eb | 2014-02-27 23:41:34 | [diff] [blame] | 585 | 'service_manager/service_manager_unittest.cc', |
| 586 | 'service_manager/test.mojom', |
[email protected] | df47c49 | 2014-01-03 22:50:15 | [diff] [blame] | 587 | ], |
| 588 | }, |
[email protected] | f8c8cc1 | 2014-03-07 23:48:32 | [diff] [blame] | 589 | { |
| 590 | 'target_name': 'mojo_js_bindings_lib', |
| 591 | 'type': 'static_library', |
| 592 | 'dependencies': [ |
| 593 | '../base/base.gyp:base', |
| 594 | '../gin/gin.gyp:gin', |
| 595 | '../v8/tools/gyp/v8.gyp:v8', |
| 596 | 'mojo_common_lib', |
[email protected] | f8c8cc1 | 2014-03-07 23:48:32 | [diff] [blame] | 597 | ], |
| 598 | 'export_dependent_settings': [ |
| 599 | '../base/base.gyp:base', |
| 600 | '../gin/gin.gyp:gin', |
| 601 | 'mojo_common_lib', |
[email protected] | f8c8cc1 | 2014-03-07 23:48:32 | [diff] [blame] | 602 | ], |
| 603 | 'sources': [ |
| 604 | 'bindings/js/core.cc', |
| 605 | 'bindings/js/core.h', |
| 606 | 'bindings/js/handle.cc', |
| 607 | 'bindings/js/handle.h', |
| 608 | 'bindings/js/support.cc', |
| 609 | 'bindings/js/support.h', |
[email protected] | 5a8150a | 2014-04-16 02:10:42 | [diff] [blame] | 610 | 'bindings/js/unicode.cc', |
| 611 | 'bindings/js/unicode.h', |
[email protected] | f8c8cc1 | 2014-03-07 23:48:32 | [diff] [blame] | 612 | 'bindings/js/waiting_callback.cc', |
| 613 | 'bindings/js/waiting_callback.h', |
| 614 | ], |
| 615 | }, |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 616 | { |
| 617 | 'target_name': 'mojo_js_unittests', |
| 618 | 'type': 'executable', |
| 619 | 'dependencies': [ |
| 620 | '../gin/gin.gyp:gin_test', |
[email protected] | a27695c2 | 2014-04-25 05:17:31 | [diff] [blame] | 621 | 'mojo_common_test_support', |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 622 | 'mojo_js_bindings_lib', |
| 623 | 'mojo_run_all_unittests', |
[email protected] | e1e974b | 2014-04-16 02:05:57 | [diff] [blame] | 624 | 'mojo_public_test_interfaces', |
[email protected] | 8de5246 | 2014-03-11 15:48:39 | [diff] [blame] | 625 | ], |
| 626 | 'sources': [ |
| 627 | 'bindings/js/run_js_tests.cc', |
| 628 | ], |
| 629 | }, |
[email protected] | 15429ab | 2014-04-04 00:43:22 | [diff] [blame] | 630 | { |
| 631 | 'target_name': 'mojo_message_generator', |
| 632 | 'type': 'executable', |
| 633 | 'dependencies': [ |
| 634 | '../base/base.gyp:base', |
| 635 | '../testing/gtest.gyp:gtest', |
[email protected] | 15429ab | 2014-04-04 00:43:22 | [diff] [blame] | 636 | 'mojo_common_lib', |
[email protected] | 9a1526b | 2014-04-30 05:27:06 | [diff] [blame] | 637 | 'mojo_cpp_bindings', |
[email protected] | 15429ab | 2014-04-04 00:43:22 | [diff] [blame] | 638 | 'mojo_environment_chromium', |
[email protected] | 15429ab | 2014-04-04 00:43:22 | [diff] [blame] | 639 | 'mojo_system_impl', |
| 640 | ], |
| 641 | 'sources': [ |
| 642 | 'tools/message_generator.cc', |
| 643 | ], |
| 644 | }, |
[email protected] | 78ecb7c | 2014-05-06 22:34:24 | [diff] [blame] | 645 | { |
| 646 | 'target_name': 'mojo_cc_support', |
| 647 | 'type': 'static_library', |
| 648 | 'dependencies': [ |
| 649 | '../base/base.gyp:base', |
| 650 | '../cc/cc.gyp:cc', |
| 651 | '../skia/skia.gyp:skia', |
| 652 | '../gpu/gpu.gyp:gles2_implementation', |
| 653 | 'mojo_gles2', |
| 654 | ], |
| 655 | 'sources': [ |
| 656 | 'cc/context_provider_mojo.cc', |
| 657 | 'cc/context_provider_mojo.h', |
| 658 | ], |
| 659 | }, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 660 | ], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 661 | 'conditions': [ |
| 662 | ['OS=="android"', { |
| 663 | 'targets': [ |
| 664 | { |
[email protected] | 70c0364 | 2014-04-23 16:02:32 | [diff] [blame] | 665 | 'target_name': 'mojo_jni_headers', |
| 666 | 'type': 'none', |
| 667 | 'dependencies': [ |
| 668 | 'mojo_java_set_jni_headers', |
| 669 | ], |
| 670 | 'sources': [ |
| 671 | 'android/javatests/src/org/chromium/mojo/system/CoreTest.java', |
| 672 | 'android/system/src/org/chromium/mojo/system/CoreImpl.java', |
| 673 | 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java', |
| 674 | 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java', |
| 675 | ], |
| 676 | 'variables': { |
| 677 | 'jni_gen_package': 'mojo', |
| 678 | 'jni_generator_ptr_type': 'long', |
| 679 | }, |
| 680 | 'includes': [ '../build/jni_generator.gypi' ], |
| 681 | }, |
| 682 | { |
| 683 | 'target_name': 'mojo_system_java', |
| 684 | 'type': 'none', |
| 685 | 'dependencies': [ |
| 686 | '../base/base.gyp:base_java', |
| 687 | 'mojo_public_java', |
| 688 | ], |
| 689 | 'variables': { |
| 690 | 'java_in_dir': '<(DEPTH)/mojo/android/system', |
| 691 | }, |
| 692 | 'includes': [ '../build/java.gypi' ], |
| 693 | }, |
| 694 | { |
| 695 | 'target_name': 'libmojo_system_java', |
| 696 | 'type': 'static_library', |
| 697 | 'dependencies': [ |
| 698 | '../base/base.gyp:base', |
| 699 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 700 | 'mojo_common_lib', |
| 701 | 'mojo_environment_chromium', |
| 702 | 'mojo_jni_headers', |
| 703 | 'mojo_shell_bindings', |
| 704 | 'mojo_shell_lib', |
| 705 | ], |
| 706 | 'sources': [ |
| 707 | 'android/system/core_impl.cc', |
| 708 | 'android/system/core_impl.h', |
| 709 | ], |
| 710 | }, |
| 711 | { |
| 712 | 'target_name': 'libmojo_java_unittest', |
| 713 | 'type': 'shared_library', |
| 714 | 'dependencies': [ |
| 715 | '../base/base.gyp:base', |
| 716 | 'libmojo_system_java', |
| 717 | 'mojo_jni_headers', |
| 718 | ], |
| 719 | 'sources': [ |
| 720 | 'android/javatests/core_test.cc', |
| 721 | 'android/javatests/core_test.h', |
| 722 | 'android/javatests/init_library.cc', |
| 723 | ], |
| 724 | }, |
| 725 | { |
| 726 | 'target_name': 'mojo_test_apk', |
| 727 | 'type': 'none', |
| 728 | 'dependencies': [ |
| 729 | 'mojo_system_java', |
| 730 | '../base/base.gyp:base_java_test_support', |
| 731 | ], |
| 732 | 'variables': { |
| 733 | 'apk_name': 'MojoTest', |
| 734 | 'java_in_dir': '<(DEPTH)/mojo/android/javatests', |
| 735 | 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk', |
| 736 | 'native_lib_target': 'libmojo_java_unittest', |
| 737 | 'is_test_apk': 1, |
[email protected] | 10955d3 | 2014-04-30 11:22:41 | [diff] [blame] | 738 | # Given that this apk tests itself, it needs to bring emma with it |
| 739 | # when instrumented. |
| 740 | 'conditions': [ |
| 741 | ['emma_coverage != 0', { |
| 742 | 'emma_instrument': 1, |
| 743 | }], |
| 744 | ], |
[email protected] | 70c0364 | 2014-04-23 16:02:32 | [diff] [blame] | 745 | }, |
| 746 | 'includes': [ '../build/java_apk.gypi' ], |
| 747 | }, |
| 748 | { |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 749 | 'target_name': 'mojo_native_viewport_java', |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 750 | 'type': 'none', |
| 751 | 'dependencies': [ |
| 752 | '../base/base.gyp:base_java', |
| 753 | ], |
| 754 | 'variables': { |
| 755 | 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android', |
| 756 | }, |
| 757 | 'includes': [ '../build/java.gypi' ], |
| 758 | }, |
| 759 | { |
[email protected] | 67f839c9 | 2013-12-11 03:26:40 | [diff] [blame] | 760 | 'target_name': 'mojo_java_set_jni_headers', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 761 | 'type': 'none', |
| 762 | 'variables': { |
| 763 | 'jni_gen_package': 'mojo', |
[email protected] | de85750 | 2014-01-10 15:08:04 | [diff] [blame] | 764 | 'jni_generator_ptr_type': 'long', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 765 | 'input_java_class': 'java/util/HashSet.class', |
| 766 | }, |
| 767 | 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
| 768 | }, |
| 769 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 770 | 'target_name': 'libmojo_shell', |
| 771 | 'type': 'shared_library', |
| 772 | 'dependencies': [ |
| 773 | '../base/base.gyp:base', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 774 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 570c26d | 2013-10-30 04:07:46 | [diff] [blame] | 775 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | b5e2d78 | 2013-12-18 21:01:15 | [diff] [blame] | 776 | '../ui/gfx/gfx.gyp:gfx_geometry', |
[email protected] | 570c26d | 2013-10-30 04:07:46 | [diff] [blame] | 777 | '../ui/gl/gl.gyp:gl', |
[email protected] | c1e5c78 | 2013-11-12 05:10:07 | [diff] [blame] | 778 | 'mojo_common_lib', |
[email protected] | 0d37563e | 2014-01-14 16:27:51 | [diff] [blame] | 779 | 'mojo_environment_chromium', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 780 | 'mojo_jni_headers', |
[email protected] | 09d040f | 2013-12-20 20:44:59 | [diff] [blame] | 781 | 'mojo_shell_bindings', |
| 782 | 'mojo_shell_lib', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 783 | ], |
| 784 | 'sources': [ |
| 785 | 'shell/android/library_loader.cc', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 786 | 'shell/android/mojo_main.cc', |
| 787 | 'shell/android/mojo_main.h', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 788 | ], |
| 789 | }, |
| 790 | { |
| 791 | 'target_name': 'mojo_shell_apk', |
| 792 | 'type': 'none', |
| 793 | 'dependencies': [ |
| 794 | '../base/base.gyp:base_java', |
| 795 | '../net/net.gyp:net_java', |
[email protected] | 99e508a4 | 2013-12-04 01:15:09 | [diff] [blame] | 796 | 'mojo_native_viewport_java', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 797 | 'libmojo_shell', |
| 798 | ], |
| 799 | 'variables': { |
| 800 | 'apk_name': 'MojoShell', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 801 | 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk', |
| 802 | 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 803 | 'native_lib_target': 'libmojo_shell', |
| 804 | }, |
| 805 | 'includes': [ '../build/java_apk.gypi' ], |
| 806 | } |
| 807 | ], |
| 808 | }], |
[email protected] | 8110218d | 2014-05-01 23:30:06 | [diff] [blame] | 809 | ['OS=="linux"', { |
| 810 | 'targets': [ |
| 811 | { |
| 812 | 'target_name': 'mojo_dbus_service', |
| 813 | 'type': 'static_library', |
| 814 | 'dependencies': [ |
| 815 | '../base/base.gyp:base', |
| 816 | '../build/linux/system.gyp:dbus', |
| 817 | '../dbus/dbus.gyp:dbus', |
| 818 | 'mojo_common_lib', |
| 819 | 'mojo_external_service_bindings', |
| 820 | 'mojo_shell_client', |
| 821 | 'mojo_system_impl', |
| 822 | ], |
| 823 | 'sources': [ |
| 824 | 'dbus/dbus_external_service.h', |
| 825 | 'dbus/dbus_external_service.cc', |
| 826 | ], |
| 827 | }, |
| 828 | ], |
| 829 | }], |
[email protected] | 9eb072b6 | 2014-03-19 20:35:16 | [diff] [blame] | 830 | ['test_isolation_mode != "noop"', { |
| 831 | 'targets': [ |
| 832 | { |
| 833 | 'target_name': 'mojo_js_unittests_run', |
| 834 | 'type': 'none', |
| 835 | 'dependencies': [ |
| 836 | 'mojo_js_unittests', |
| 837 | ], |
| 838 | 'includes': [ |
| 839 | '../build/isolate.gypi', |
| 840 | 'mojo_js_unittests.isolate', |
| 841 | ], |
| 842 | 'sources': [ |
| 843 | 'mojo_js_unittests.isolate', |
| 844 | ], |
| 845 | }, |
| 846 | ], |
| 847 | }], |
[email protected] | 78ecb7c | 2014-05-06 22:34:24 | [diff] [blame] | 848 | ['use_aura==1', { |
| 849 | 'targets': [ |
| 850 | { |
| 851 | 'target_name': 'mojo_aura_support', |
| 852 | 'type': 'static_library', |
| 853 | 'dependencies': [ |
| 854 | '../cc/cc.gyp:cc', |
| 855 | '../ui/aura/aura.gyp:aura', |
| 856 | '../ui/events/events.gyp:events', |
| 857 | '../ui/events/events.gyp:events_base', |
| 858 | '../ui/compositor/compositor.gyp:compositor', |
| 859 | '../ui/gl/gl.gyp:gl', |
| 860 | '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu', |
| 861 | 'mojo_cc_support', |
| 862 | 'mojo_gles2', |
| 863 | 'mojo_native_viewport_bindings', |
| 864 | ], |
| 865 | 'sources': [ |
| 866 | 'aura/context_factory_mojo.cc', |
| 867 | 'aura/context_factory_mojo.h', |
| 868 | 'aura/screen_mojo.cc', |
| 869 | 'aura/screen_mojo.h', |
| 870 | 'aura/window_tree_host_mojo.cc', |
| 871 | 'aura/window_tree_host_mojo.h', |
| 872 | ], |
| 873 | }, |
| 874 | ], |
| 875 | }], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 876 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 877 | } |