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