[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 | { |
| 6 | 'variables': { |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 7 | 'chromium_code': 1, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 8 | }, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 9 | 'targets': [ |
| 10 | { |
| 11 | 'target_name': 'mojo', |
| 12 | 'type': 'none', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 13 | 'dependencies': [ |
[email protected] | cbf7e96 | 2013-11-07 20:35:52 | [diff] [blame] | 14 | 'mojo_common_lib', |
| 15 | 'mojo_common_unittests', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 16 | 'mojo_public_test_support', |
| 17 | 'mojo_public_unittests', |
| 18 | 'mojo_public_perftests', |
| 19 | 'mojo_system', |
| 20 | 'mojo_system_unittests', |
[email protected] | 1c8951bc | 2013-11-07 06:42:17 | [diff] [blame] | 21 | 'mojo_shell_lib', |
| 22 | 'mojo_shell', |
[email protected] | 1c8951bc | 2013-11-07 06:42:17 | [diff] [blame] | 23 | 'mojo_utility', |
[email protected] | 9383074 | 2013-11-08 12:17:24 | [diff] [blame^] | 24 | 'mojo_js', |
[email protected] | 1c8951bc | 2013-11-07 06:42:17 | [diff] [blame] | 25 | 'sample_app', |
| 26 | 'mojo_bindings', |
| 27 | 'mojo_bindings_test', |
| 28 | 'native_viewport', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 29 | ], |
| 30 | }, |
| 31 | { |
| 32 | 'target_name': 'mojo_public_test_support', |
| 33 | 'type': 'static_library', |
| 34 | 'dependencies': [ |
| 35 | '../base/base.gyp:base', |
| 36 | '../testing/gtest.gyp:gtest', |
| 37 | 'mojo_system', |
| 38 | ], |
| 39 | 'sources': [ |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 40 | 'public/tests/simple_bindings_support.cc', |
| 41 | 'public/tests/simple_bindings_support.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 42 | 'public/tests/test_support.cc', |
| 43 | 'public/tests/test_support.h', |
| 44 | ], |
| 45 | }, |
| 46 | { |
[email protected] | cbf7e96 | 2013-11-07 20:35:52 | [diff] [blame] | 47 | 'target_name': 'mojo_common_lib', |
| 48 | 'type': '<(component)', |
| 49 | 'defines': [ |
| 50 | 'MOJO_COMMON_IMPLEMENTATION', |
| 51 | ], |
| 52 | 'dependencies': [ |
| 53 | '../base/base.gyp:base', |
| 54 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 55 | 'mojo_system', |
| 56 | ], |
| 57 | 'sources': [ |
| 58 | 'common/handle_watcher.cc', |
| 59 | 'common/handle_watcher.h', |
| 60 | 'common/scoped_message_pipe.cc', |
| 61 | 'common/scoped_message_pipe.h', |
| 62 | ], |
| 63 | 'conditions': [ |
| 64 | ['OS == "win"', { |
| 65 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 66 | 'msvs_disabled_warnings': [ |
| 67 | 4267, |
| 68 | ], |
| 69 | }], |
| 70 | ], |
| 71 | }, |
| 72 | { |
| 73 | 'target_name': 'mojo_common_unittests', |
| 74 | 'type': 'executable', |
| 75 | 'dependencies': [ |
| 76 | '../base/base.gyp:base', |
| 77 | '../base/base.gyp:run_all_unittests', |
| 78 | '../testing/gtest.gyp:gtest', |
| 79 | 'mojo_common_lib', |
| 80 | 'mojo_system', |
| 81 | ], |
| 82 | 'sources': [ |
| 83 | 'common/handle_watcher_unittest.cc', |
| 84 | 'common/test/run_all_unittests.cc', |
| 85 | ], |
| 86 | 'conditions': [ |
| 87 | ['OS == "win"', { |
| 88 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 89 | 'msvs_disabled_warnings': [ |
| 90 | 4267, |
| 91 | ], |
| 92 | }], |
| 93 | ], |
| 94 | }, |
| 95 | { |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 96 | 'target_name': 'mojo_public_unittests', |
| 97 | 'type': 'executable', |
| 98 | 'dependencies': [ |
| 99 | '../base/base.gyp:run_all_unittests', |
| 100 | '../testing/gtest.gyp:gtest', |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 101 | 'mojo_bindings', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 102 | 'mojo_public_test_support', |
| 103 | 'mojo_system', |
| 104 | ], |
| 105 | 'sources': [ |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 106 | 'public/tests/bindings_connector_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 107 | 'public/tests/system_core_unittest.cc', |
| 108 | ], |
| 109 | }, |
| 110 | { |
| 111 | 'target_name': 'mojo_public_perftests', |
| 112 | 'type': 'executable', |
| 113 | 'dependencies': [ |
| 114 | '../base/base.gyp:base', |
| 115 | '../base/base.gyp:test_support_perf', |
| 116 | '../testing/gtest.gyp:gtest', |
| 117 | 'mojo_public_test_support', |
| 118 | 'mojo_system', |
| 119 | ], |
| 120 | 'sources': [ |
| 121 | 'public/tests/system_core_perftest.cc', |
| 122 | ], |
| 123 | }, |
| 124 | { |
| 125 | 'target_name': 'mojo_system', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 126 | 'type': '<(component)', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 127 | 'dependencies': [ |
| 128 | '../base/base.gyp:base', |
| 129 | ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 130 | 'defines': [ |
| 131 | 'MOJO_SYSTEM_IMPLEMENTATION', |
| 132 | ], |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 133 | 'sources': [ |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 134 | 'system/channel.cc', |
| 135 | 'system/channel.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 136 | 'system/core.cc', |
| 137 | 'system/core_impl.cc', |
| 138 | 'system/core_impl.h', |
| 139 | 'system/dispatcher.cc', |
| 140 | 'system/dispatcher.h', |
| 141 | 'system/limits.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 142 | 'system/local_message_pipe_endpoint.cc', |
| 143 | 'system/local_message_pipe_endpoint.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 144 | 'system/memory.cc', |
| 145 | 'system/memory.h', |
[email protected] | aae74e9 | 2013-10-03 20:52:34 | [diff] [blame] | 146 | 'system/message_in_transit.cc', |
| 147 | 'system/message_in_transit.h', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 148 | 'system/message_pipe.cc', |
| 149 | 'system/message_pipe.h', |
| 150 | 'system/message_pipe_dispatcher.cc', |
| 151 | 'system/message_pipe_dispatcher.h', |
[email protected] | 989f8bc | 2013-10-16 00:24:37 | [diff] [blame] | 152 | 'system/message_pipe_endpoint.cc', |
| 153 | 'system/message_pipe_endpoint.h', |
[email protected] | 5a0d006 | 2013-10-11 19:07:18 | [diff] [blame] | 154 | 'system/platform_channel_handle.h', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 155 | 'system/proxy_message_pipe_endpoint.cc', |
| 156 | 'system/proxy_message_pipe_endpoint.h', |
[email protected] | 5a0d006 | 2013-10-11 19:07:18 | [diff] [blame] | 157 | 'system/raw_channel.h', |
| 158 | 'system/raw_channel_posix.cc', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 159 | 'system/raw_channel_win.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 160 | 'system/simple_dispatcher.cc', |
| 161 | 'system/simple_dispatcher.h', |
| 162 | 'system/waiter.cc', |
| 163 | 'system/waiter.h', |
| 164 | 'system/waiter_list.cc', |
| 165 | 'system/waiter_list.h', |
| 166 | ], |
| 167 | 'direct_dependent_settings': { |
| 168 | 'include_dirs': [ |
| 169 | '..', |
| 170 | ], |
| 171 | }, |
| 172 | }, |
| 173 | { |
| 174 | 'target_name': 'mojo_system_unittests', |
| 175 | 'type': 'executable', |
| 176 | 'dependencies': [ |
| 177 | '../base/base.gyp:run_all_unittests', |
| 178 | '../testing/gtest.gyp:gtest', |
| 179 | 'mojo_system', |
| 180 | ], |
| 181 | 'sources': [ |
| 182 | 'system/core_impl_unittest.cc', |
| 183 | 'system/core_test_base.cc', |
| 184 | 'system/core_test_base.h', |
| 185 | 'system/dispatcher_unittest.cc', |
| 186 | 'system/message_pipe_dispatcher_unittest.cc', |
| 187 | 'system/message_pipe_unittest.cc', |
[email protected] | 5a0d006 | 2013-10-11 19:07:18 | [diff] [blame] | 188 | 'system/raw_channel_posix_unittest.cc', |
[email protected] | ccf8453d | 2013-11-07 17:49:50 | [diff] [blame] | 189 | 'system/remote_message_pipe_posix_unittest.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 190 | 'system/simple_dispatcher_unittest.cc', |
[email protected] | b334246d | 2013-10-24 00:08:57 | [diff] [blame] | 191 | 'system/test_utils.cc', |
[email protected] | 3d58663b | 2013-09-28 00:30:04 | [diff] [blame] | 192 | 'system/test_utils.h', |
| 193 | 'system/waiter_list_unittest.cc', |
| 194 | 'system/waiter_test_utils.cc', |
| 195 | 'system/waiter_test_utils.h', |
| 196 | 'system/waiter_unittest.cc', |
| 197 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 198 | }, |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 199 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 200 | 'target_name': 'mojo_shell_lib', |
| 201 | 'type': 'static_library', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 202 | 'dependencies': [ |
| 203 | '../base/base.gyp:base', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 204 | '../net/net.gyp:net', |
[email protected] | 3c44830 | 2013-10-22 08:39:08 | [diff] [blame] | 205 | '../url/url.gyp:url_lib', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 206 | 'mojo_system', |
[email protected] | a8729cc | 2013-11-04 19:24:21 | [diff] [blame] | 207 | 'mojo_utility', |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 208 | 'native_viewport', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 209 | ], |
| 210 | 'sources': [ |
| 211 | 'shell/app_container.cc', |
| 212 | 'shell/app_container.h', |
[email protected] | 6e50d5e4 | 2013-10-27 02:45:46 | [diff] [blame] | 213 | 'shell/context.cc', |
| 214 | 'shell/context.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 215 | 'shell/loader.cc', |
| 216 | 'shell/loader.h', |
[email protected] | c6c6e565 | 2013-10-29 02:40:30 | [diff] [blame] | 217 | 'shell/network_delegate.cc', |
| 218 | 'shell/network_delegate.h', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 219 | 'shell/run.cc', |
| 220 | 'shell/run.h', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 221 | 'shell/storage.cc', |
| 222 | 'shell/storage.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 223 | 'shell/switches.cc', |
| 224 | 'shell/switches.h', |
[email protected] | eba6f51 | 2013-10-19 00:17:09 | [diff] [blame] | 225 | 'shell/task_runners.cc', |
| 226 | 'shell/task_runners.h', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 227 | 'shell/url_request_context_getter.cc', |
| 228 | 'shell/url_request_context_getter.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 229 | ], |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 230 | 'conditions': [ |
| 231 | ['OS == "win"', { |
| 232 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 233 | 'msvs_disabled_warnings': [ |
| 234 | 4267, |
| 235 | ], |
| 236 | }], |
| 237 | ], |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 238 | }, |
| 239 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 240 | 'target_name': 'mojo_shell', |
| 241 | 'type': 'executable', |
| 242 | 'dependencies': [ |
| 243 | '../base/base.gyp:base', |
[email protected] | 4236839 | 2013-11-05 13:45:02 | [diff] [blame] | 244 | '../ui/gl/gl.gyp:gl', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 245 | '../url/url.gyp:url_lib', |
| 246 | 'mojo_shell_lib', |
| 247 | 'mojo_system', |
| 248 | ], |
| 249 | 'sources': [ |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 250 | 'shell/desktop/mojo_main.cc', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 251 | ], |
| 252 | 'conditions': [ |
| 253 | ['OS == "win"', { |
| 254 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 255 | 'msvs_disabled_warnings': [ |
| 256 | 4267, |
| 257 | ], |
| 258 | }], |
| 259 | ], |
| 260 | }, |
| 261 | { |
[email protected] | a8729cc | 2013-11-04 19:24:21 | [diff] [blame] | 262 | 'target_name': 'mojo_utility', |
| 263 | 'type': 'static_library', |
| 264 | 'dependencies': [ |
| 265 | 'mojo_system' |
| 266 | ], |
| 267 | 'sources': [ |
| 268 | 'public/utility/scoped_handle.cc', |
| 269 | 'public/utility/scoped_handle.h', |
| 270 | ], |
| 271 | }, |
| 272 | { |
[email protected] | 9383074 | 2013-11-08 12:17:24 | [diff] [blame^] | 273 | 'target_name': 'mojo_js', |
| 274 | 'type': 'shared_library', |
| 275 | 'include_dirs': [ |
| 276 | '..' |
| 277 | ], |
| 278 | 'dependencies': [ |
| 279 | '../v8/tools/gyp/v8.gyp:v8', |
| 280 | ], |
| 281 | 'sources': [ |
| 282 | 'apps/js/main.cc', |
| 283 | 'apps/js/v8_environment.cc', |
| 284 | 'apps/js/v8_environment.h', |
| 285 | ], |
| 286 | }, |
| 287 | { |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 288 | 'target_name': 'sample_app', |
[email protected] | e5fc9bff | 2013-10-27 09:48:47 | [diff] [blame] | 289 | 'type': 'shared_library', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 290 | 'dependencies': [ |
[email protected] | f7374ed | 2013-11-06 18:44:18 | [diff] [blame] | 291 | '../ui/gl/gl.gyp:gl', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 292 | 'mojo_system', |
| 293 | ], |
| 294 | 'sources': [ |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 295 | 'examples/sample_app/sample_app.cc', |
[email protected] | f7374ed | 2013-11-06 18:44:18 | [diff] [blame] | 296 | 'examples/sample_app/spinning_cube.cc', |
| 297 | 'examples/sample_app/spinning_cube.h', |
[email protected] | 6cf6ca5 | 2013-10-10 20:52:11 | [diff] [blame] | 298 | ], |
| 299 | }, |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 300 | { |
| 301 | 'target_name': 'mojo_bindings', |
| 302 | 'type': 'static_library', |
| 303 | 'include_dirs': [ |
| 304 | '..' |
| 305 | ], |
| 306 | 'sources': [ |
| 307 | 'public/bindings/lib/bindings.h', |
| 308 | 'public/bindings/lib/bindings_internal.h', |
| 309 | 'public/bindings/lib/bindings_serialization.cc', |
| 310 | 'public/bindings/lib/bindings_serialization.h', |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 311 | 'public/bindings/lib/bindings_support.cc', |
| 312 | 'public/bindings/lib/bindings_support.h', |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 313 | 'public/bindings/lib/buffer.cc', |
| 314 | 'public/bindings/lib/buffer.h', |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 315 | 'public/bindings/lib/connector.cc', |
| 316 | 'public/bindings/lib/connector.h', |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 317 | 'public/bindings/lib/message.cc', |
| 318 | 'public/bindings/lib/message.h', |
| 319 | 'public/bindings/lib/message_builder.cc', |
| 320 | 'public/bindings/lib/message_builder.h', |
[email protected] | 658b86b1 | 2013-11-06 21:23:23 | [diff] [blame] | 321 | 'public/bindings/lib/message_queue.cc', |
| 322 | 'public/bindings/lib/message_queue.h', |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 323 | ], |
| 324 | }, |
| 325 | { |
| 326 | 'target_name': 'mojo_bindings_test', |
| 327 | 'type': 'executable', |
| 328 | 'include_dirs': [ |
| 329 | '..' |
| 330 | ], |
| 331 | 'dependencies': [ |
| 332 | 'mojo_bindings', |
| 333 | ], |
| 334 | 'sources': [ |
[email protected] | cbf932bb | 2013-11-06 17:31:32 | [diff] [blame] | 335 | 'public/bindings/sample/generated/sample_service.cc', |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 336 | 'public/bindings/sample/generated/sample_service.h', |
[email protected] | cbf932bb | 2013-11-06 17:31:32 | [diff] [blame] | 337 | 'public/bindings/sample/generated/sample_service_internal.h', |
[email protected] | 6838e3c | 2013-10-11 20:16:22 | [diff] [blame] | 338 | 'public/bindings/sample/sample_test.cc', |
| 339 | ], |
| 340 | }, |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 341 | { |
| 342 | 'target_name': 'native_viewport', |
| 343 | 'type': 'static_library', |
| 344 | 'dependencies': [ |
| 345 | '../base/base.gyp:base', |
[email protected] | 1cd3668 | 2013-11-03 05:25:00 | [diff] [blame] | 346 | '../gpu/gpu.gyp:command_buffer_service', |
| 347 | '../gpu/gpu.gyp:gles2_implementation', |
| 348 | '../ui/events/events.gyp:events', |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 349 | '../ui/gfx/gfx.gyp:gfx', |
[email protected] | 988e5eb | 2013-11-06 06:01:47 | [diff] [blame] | 350 | '../ui/gl/gl.gyp:gl', |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 351 | ], |
| 352 | 'sources': [ |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 353 | 'services/native_viewport/android/mojo_viewport.cc', |
| 354 | 'services/native_viewport/android/mojo_viewport.h', |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 355 | 'services/native_viewport/native_viewport.h', |
| 356 | 'services/native_viewport/native_viewport_android.cc', |
| 357 | 'services/native_viewport/native_viewport_controller.cc', |
| 358 | 'services/native_viewport/native_viewport_controller.h', |
[email protected] | 988e5eb | 2013-11-06 06:01:47 | [diff] [blame] | 359 | 'services/native_viewport/native_viewport_mac.mm', |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 360 | 'services/native_viewport/native_viewport_stub.cc', |
| 361 | 'services/native_viewport/native_viewport_win.cc', |
| 362 | 'services/native_viewport/native_viewport_x11.cc', |
| 363 | ], |
| 364 | 'conditions': [ |
[email protected] | 988e5eb | 2013-11-06 06:01:47 | [diff] [blame] | 365 | ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', { |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 366 | 'sources!': [ |
| 367 | 'services/native_viewport/native_viewport_stub.cc', |
| 368 | ], |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 369 | }], |
| 370 | ['OS=="android"', { |
| 371 | 'dependencies': [ |
| 372 | 'mojo_jni_headers', |
| 373 | ], |
| 374 | }], |
[email protected] | ab900db | 2013-10-31 21:03:40 | [diff] [blame] | 375 | ], |
| 376 | }, |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 377 | ], |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 378 | 'conditions': [ |
| 379 | ['OS=="android"', { |
| 380 | 'targets': [ |
| 381 | { |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 382 | 'target_name': 'native_viewport_java', |
| 383 | 'type': 'none', |
| 384 | 'dependencies': [ |
| 385 | '../base/base.gyp:base_java', |
| 386 | ], |
| 387 | 'variables': { |
| 388 | 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android', |
| 389 | }, |
| 390 | 'includes': [ '../build/java.gypi' ], |
| 391 | }, |
| 392 | { |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 393 | 'target_name': 'java_set_jni_headers', |
| 394 | 'type': 'none', |
| 395 | 'variables': { |
| 396 | 'jni_gen_package': 'mojo', |
| 397 | 'input_java_class': 'java/util/HashSet.class', |
| 398 | }, |
| 399 | 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
| 400 | }, |
| 401 | { |
| 402 | 'target_name': 'mojo_jni_headers', |
| 403 | 'type': 'none', |
| 404 | 'dependencies': [ |
| 405 | 'java_set_jni_headers', |
| 406 | ], |
| 407 | 'direct_dependent_settings': { |
| 408 | 'include_dirs': [ |
| 409 | '<(SHARED_INTERMEDIATE_DIR)/mojo', |
| 410 | ], |
| 411 | }, |
| 412 | 'sources': [ |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 413 | 'services/native_viewport/android/src/org/chromium/mojo/MojoViewport.java', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 414 | 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 415 | ], |
| 416 | 'variables': { |
| 417 | 'jni_gen_package': 'mojo' |
| 418 | }, |
| 419 | 'includes': [ '../build/jni_generator.gypi' ], |
| 420 | }, |
| 421 | { |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 422 | 'target_name': 'libmojo_shell', |
| 423 | 'type': 'shared_library', |
| 424 | 'dependencies': [ |
| 425 | '../base/base.gyp:base', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 426 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | 570c26d | 2013-10-30 04:07:46 | [diff] [blame] | 427 | '../ui/gfx/gfx.gyp:gfx', |
| 428 | '../ui/gl/gl.gyp:gl', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 429 | 'mojo_jni_headers', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 430 | 'mojo_shell_lib', |
| 431 | ], |
| 432 | 'sources': [ |
| 433 | 'shell/android/library_loader.cc', |
[email protected] | adeb6f7 | 2013-10-25 08:05:02 | [diff] [blame] | 434 | 'shell/android/mojo_main.cc', |
| 435 | 'shell/android/mojo_main.h', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 436 | ], |
| 437 | }, |
| 438 | { |
| 439 | 'target_name': 'mojo_shell_apk', |
| 440 | 'type': 'none', |
| 441 | 'dependencies': [ |
| 442 | '../base/base.gyp:base_java', |
| 443 | '../net/net.gyp:net_java', |
[email protected] | 29ccd8e | 2013-11-01 16:44:56 | [diff] [blame] | 444 | 'native_viewport_java', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 445 | 'libmojo_shell', |
| 446 | ], |
| 447 | 'variables': { |
| 448 | 'apk_name': 'MojoShell', |
[email protected] | 0be9b24 | 2013-10-28 06:28:38 | [diff] [blame] | 449 | 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk', |
| 450 | 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res', |
[email protected] | 786d75c | 2013-10-24 20:29:35 | [diff] [blame] | 451 | 'native_lib_target': 'libmojo_shell', |
| 452 | }, |
| 453 | 'includes': [ '../build/java_apk.gypi' ], |
| 454 | } |
| 455 | ], |
| 456 | }], |
| 457 | ], |
[email protected] | 02657da | 2013-09-16 02:55:18 | [diff] [blame] | 458 | } |