Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2014 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 | |
|
viettrungluu
2014/07/28 22:18:53
A comment explaining what goes (or should go) in t
Hajime Morrita
2014/07/28 22:40:39
Done.
| |
| 5 { | |
| 6 'includes': [ | |
| 7 'mojo_public.gypi', | |
| 8 'mojo_public_tests.gypi', | |
| 9 'mojo_variables.gypi', | |
| 10 ], | |
| 11 'targets': [ | |
| 12 { | |
| 13 'target_name': 'mojo_base', | |
| 14 'type': 'none', | |
| 15 'dependencies': [ | |
| 16 'mojo_common_lib', | |
| 17 'mojo_common_unittests', | |
| 18 'mojo_cpp_bindings', | |
| 19 'mojo_js_bindings', | |
| 20 'mojo_js_unittests', | |
| 21 'mojo_message_generator', | |
| 22 'mojo_public_application_unittests', | |
| 23 'mojo_public_test_utils', | |
| 24 'mojo_public_bindings_unittests', | |
| 25 'mojo_public_environment_unittests', | |
| 26 'mojo_public_system_perftests', | |
| 27 'mojo_public_system_unittests', | |
| 28 'mojo_public_utility_unittests', | |
| 29 'mojo_system', | |
| 30 'mojo_system_impl', | |
| 31 'mojo_system_unittests', | |
| 32 'mojo_utility', | |
| 33 ], | |
| 34 'conditions': [ | |
| 35 ['OS == "android"', { | |
| 36 'dependencies': [ | |
| 37 'mojo_bindings_java', | |
| 38 'mojo_public_java', | |
| 39 'mojo_system_java', | |
| 40 'libmojo_system_java', | |
| 41 'mojo_test_apk', | |
| 42 ], | |
| 43 }], | |
| 44 ] | |
| 45 }, | |
| 46 { | |
| 47 'target_name': 'mojo_none', | |
| 48 'type': 'none', | |
| 49 }, | |
| 50 { | |
| 51 'target_name': 'mojo_run_all_unittests', | |
| 52 'type': 'static_library', | |
| 53 'dependencies': [ | |
| 54 '../base/base.gyp:base', | |
| 55 '../base/base.gyp:test_support_base', | |
| 56 '../testing/gtest.gyp:gtest', | |
| 57 'mojo_system_impl', | |
| 58 'mojo_test_support', | |
| 59 'mojo_test_support_impl', | |
| 60 ], | |
| 61 'sources': [ | |
| 62 'common/test/run_all_unittests.cc', | |
| 63 ], | |
| 64 }, | |
| 65 { | |
| 66 'target_name': 'mojo_run_all_perftests', | |
| 67 'type': 'static_library', | |
| 68 'dependencies': [ | |
| 69 '../base/base.gyp:test_support_base', | |
| 70 'mojo_system_impl', | |
| 71 'mojo_test_support', | |
| 72 'mojo_test_support_impl', | |
| 73 ], | |
| 74 'sources': [ | |
| 75 'common/test/run_all_perftests.cc', | |
| 76 ], | |
| 77 }, | |
| 78 { | |
| 79 # GN version: //mojo/system | |
| 80 'target_name': 'mojo_system_impl', | |
| 81 'type': '<(component)', | |
| 82 'dependencies': [ | |
| 83 '../base/base.gyp:base', | |
| 84 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 85 ], | |
| 86 'defines': [ | |
| 87 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', | |
| 88 'MOJO_SYSTEM_IMPLEMENTATION', | |
| 89 'MOJO_USE_SYSTEM_IMPL', | |
| 90 ], | |
| 91 'sources': [ | |
| 92 'embedder/channel_init.cc', | |
| 93 'embedder/channel_init.h', | |
| 94 'embedder/embedder.cc', | |
| 95 'embedder/embedder.h', | |
| 96 'embedder/platform_channel_pair.cc', | |
| 97 'embedder/platform_channel_pair.h', | |
| 98 'embedder/platform_channel_pair_posix.cc', | |
| 99 'embedder/platform_channel_pair_win.cc', | |
| 100 'embedder/platform_channel_utils_posix.cc', | |
| 101 'embedder/platform_channel_utils_posix.h', | |
| 102 'embedder/platform_handle.cc', | |
| 103 'embedder/platform_handle.h', | |
| 104 'embedder/platform_handle_utils.h', | |
| 105 'embedder/platform_handle_utils_posix.cc', | |
| 106 'embedder/platform_handle_utils_win.cc', | |
| 107 'embedder/platform_handle_vector.h', | |
| 108 'embedder/scoped_platform_handle.h', | |
| 109 'system/channel.cc', | |
| 110 'system/channel.h', | |
| 111 'system/constants.h', | |
| 112 'system/core.cc', | |
| 113 'system/core.h', | |
| 114 'system/data_pipe.cc', | |
| 115 'system/data_pipe.h', | |
| 116 'system/data_pipe_consumer_dispatcher.cc', | |
| 117 'system/data_pipe_consumer_dispatcher.h', | |
| 118 'system/data_pipe_producer_dispatcher.cc', | |
| 119 'system/data_pipe_producer_dispatcher.h', | |
| 120 'system/dispatcher.cc', | |
| 121 'system/dispatcher.h', | |
| 122 'system/entrypoints.cc', | |
| 123 'system/handle_signals_state.h', | |
| 124 'system/handle_table.cc', | |
| 125 'system/handle_table.h', | |
| 126 'system/local_data_pipe.cc', | |
| 127 'system/local_data_pipe.h', | |
| 128 'system/local_message_pipe_endpoint.cc', | |
| 129 'system/local_message_pipe_endpoint.h', | |
| 130 'system/mapping_table.cc', | |
| 131 'system/mapping_table.h', | |
| 132 'system/memory.cc', | |
| 133 'system/memory.h', | |
| 134 'system/message_in_transit.cc', | |
| 135 'system/message_in_transit.h', | |
| 136 'system/message_in_transit_queue.cc', | |
| 137 'system/message_in_transit_queue.h', | |
| 138 'system/message_pipe.cc', | |
| 139 'system/message_pipe.h', | |
| 140 'system/message_pipe_dispatcher.cc', | |
| 141 'system/message_pipe_dispatcher.h', | |
| 142 'system/message_pipe_endpoint.cc', | |
| 143 'system/message_pipe_endpoint.h', | |
| 144 'system/options_validation.h', | |
| 145 'system/platform_handle_dispatcher.cc', | |
| 146 'system/platform_handle_dispatcher.h', | |
| 147 'system/proxy_message_pipe_endpoint.cc', | |
| 148 'system/proxy_message_pipe_endpoint.h', | |
| 149 'system/raw_channel.cc', | |
| 150 'system/raw_channel.h', | |
| 151 'system/raw_channel_posix.cc', | |
| 152 'system/raw_channel_win.cc', | |
| 153 'system/raw_shared_buffer.cc', | |
| 154 'system/raw_shared_buffer.h', | |
| 155 'system/raw_shared_buffer_posix.cc', | |
| 156 'system/raw_shared_buffer_win.cc', | |
| 157 'system/shared_buffer_dispatcher.cc', | |
| 158 'system/shared_buffer_dispatcher.h', | |
| 159 'system/simple_dispatcher.cc', | |
| 160 'system/simple_dispatcher.h', | |
| 161 'system/transport_data.cc', | |
| 162 'system/transport_data.h', | |
| 163 'system/waiter.cc', | |
| 164 'system/waiter.h', | |
| 165 'system/waiter_list.cc', | |
| 166 'system/waiter_list.h', | |
| 167 # Test-only code: | |
| 168 # TODO(vtl): It's a little unfortunate that these end up in the same | |
| 169 # component as non-test-only code. In the static build, this code should | |
| 170 # hopefully be dead-stripped. | |
| 171 'embedder/test_embedder.cc', | |
| 172 'embedder/test_embedder.h', | |
| 173 ], | |
| 174 'all_dependent_settings': { | |
| 175 # Ensures that dependent projects import the core functions on Windows. | |
| 176 'defines': ['MOJO_USE_SYSTEM_IMPL'], | |
| 177 } | |
| 178 }, | |
| 179 { | |
| 180 'target_name': 'mojo_system_unittests', | |
| 181 'type': 'executable', | |
| 182 'dependencies': [ | |
| 183 '../base/base.gyp:base', | |
| 184 '../testing/gtest.gyp:gtest', | |
| 185 'mojo_common_test_support', | |
| 186 'mojo_system_impl', | |
| 187 ], | |
| 188 'sources': [ | |
| 189 'embedder/embedder_unittest.cc', | |
| 190 'embedder/platform_channel_pair_posix_unittest.cc', | |
| 191 'system/channel_unittest.cc', | |
| 192 'system/core_unittest.cc', | |
| 193 'system/core_test_base.cc', | |
| 194 'system/core_test_base.h', | |
| 195 'system/data_pipe_unittest.cc', | |
| 196 'system/dispatcher_unittest.cc', | |
| 197 'system/local_data_pipe_unittest.cc', | |
| 198 'system/memory_unittest.cc', | |
| 199 'system/message_pipe_dispatcher_unittest.cc', | |
| 200 'system/message_pipe_unittest.cc', | |
| 201 'system/multiprocess_message_pipe_unittest.cc', | |
| 202 'system/options_validation_unittest.cc', | |
| 203 'system/platform_handle_dispatcher_unittest.cc', | |
| 204 'system/raw_channel_unittest.cc', | |
| 205 'system/raw_shared_buffer_unittest.cc', | |
| 206 'system/remote_message_pipe_unittest.cc', | |
| 207 'system/run_all_unittests.cc', | |
| 208 'system/shared_buffer_dispatcher_unittest.cc', | |
| 209 'system/simple_dispatcher_unittest.cc', | |
| 210 'system/test_utils.cc', | |
| 211 'system/test_utils.h', | |
| 212 'system/waiter_list_unittest.cc', | |
| 213 'system/waiter_test_utils.cc', | |
| 214 'system/waiter_test_utils.h', | |
| 215 'system/waiter_unittest.cc', | |
| 216 ], | |
| 217 }, | |
| 218 { | |
| 219 'target_name': 'mojo_test_support_impl', | |
| 220 'type': 'static_library', | |
| 221 'dependencies': [ | |
| 222 '../base/base.gyp:base', | |
| 223 ], | |
| 224 'sources': [ | |
| 225 'common/test/test_support_impl.cc', | |
| 226 'common/test/test_support_impl.h', | |
| 227 ], | |
| 228 }, | |
| 229 { | |
| 230 # GN version: //mojo/common | |
| 231 'target_name': 'mojo_common_lib', | |
| 232 'type': '<(component)', | |
| 233 'defines': [ | |
| 234 'MOJO_COMMON_IMPLEMENTATION', | |
| 235 ], | |
| 236 'dependencies': [ | |
| 237 '../base/base.gyp:base', | |
| 238 '../url/url.gyp:url_lib', | |
| 239 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 240 '<(mojo_system_for_component)', | |
| 241 ], | |
| 242 'export_dependent_settings': [ | |
| 243 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 244 ], | |
| 245 'sources': [ | |
| 246 'common/common_type_converters.cc', | |
| 247 'common/common_type_converters.h', | |
| 248 'common/data_pipe_utils.cc', | |
| 249 'common/data_pipe_utils.h', | |
| 250 'common/handle_watcher.cc', | |
| 251 'common/handle_watcher.h', | |
| 252 'common/message_pump_mojo.cc', | |
| 253 'common/message_pump_mojo.h', | |
| 254 'common/message_pump_mojo_handler.h', | |
| 255 'common/time_helper.cc', | |
| 256 'common/time_helper.h', | |
| 257 ], | |
| 258 }, | |
| 259 { | |
| 260 'target_name': 'mojo_common_test_support', | |
| 261 'type': 'static_library', | |
| 262 'dependencies': [ | |
| 263 '../base/base.gyp:base', | |
| 264 '../base/base.gyp:test_support_base', | |
| 265 '../testing/gtest.gyp:gtest', | |
| 266 'mojo_system_impl', | |
| 267 ], | |
| 268 'sources': [ | |
| 269 'common/test/multiprocess_test_helper.cc', | |
| 270 'common/test/multiprocess_test_helper.h', | |
| 271 'common/test/test_utils.h', | |
| 272 'common/test/test_utils_posix.cc', | |
| 273 'common/test/test_utils_win.cc', | |
| 274 ], | |
| 275 }, | |
| 276 { | |
| 277 'target_name': 'mojo_common_unittests', | |
| 278 'type': 'executable', | |
| 279 'dependencies': [ | |
| 280 '../base/base.gyp:base', | |
| 281 '../base/base.gyp:base_message_loop_tests', | |
| 282 '../testing/gtest.gyp:gtest', | |
| 283 '../url/url.gyp:url_lib', | |
| 284 'mojo_cpp_bindings', | |
| 285 'mojo_environment_chromium', | |
| 286 'mojo_common_lib', | |
| 287 'mojo_common_test_support', | |
| 288 'mojo_public_test_utils', | |
| 289 'mojo_run_all_unittests', | |
| 290 ], | |
| 291 'sources': [ | |
| 292 'common/common_type_converters_unittest.cc', | |
| 293 'common/handle_watcher_unittest.cc', | |
| 294 'common/message_pump_mojo_unittest.cc', | |
| 295 'common/test/multiprocess_test_helper_unittest.cc', | |
| 296 ], | |
| 297 }, | |
| 298 { | |
| 299 # GN version: //mojo/environment:chromium | |
| 300 'target_name': 'mojo_environment_chromium', | |
| 301 'type': 'static_library', | |
| 302 'dependencies': [ | |
| 303 'mojo_environment_chromium_impl', | |
| 304 ], | |
| 305 'sources': [ | |
| 306 'environment/environment.cc', | |
| 307 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) | |
| 308 "public/cpp/environment/logging.h", | |
| 309 "public/cpp/environment/lib/logging.cc", | |
| 310 ], | |
| 311 'include_dirs': [ | |
| 312 '..', | |
| 313 ], | |
| 314 'export_dependent_settings': [ | |
| 315 'mojo_environment_chromium_impl', | |
| 316 ], | |
| 317 }, | |
| 318 { | |
| 319 # GN version: //mojo/environment:chromium_impl | |
| 320 'target_name': 'mojo_environment_chromium_impl', | |
| 321 'type': '<(component)', | |
| 322 'defines': [ | |
| 323 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION', | |
| 324 ], | |
| 325 'dependencies': [ | |
| 326 '../base/base.gyp:base', | |
| 327 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
| 328 'mojo_common_lib', | |
| 329 '<(mojo_system_for_component)', | |
| 330 ], | |
| 331 'sources': [ | |
| 332 'environment/default_async_waiter_impl.cc', | |
| 333 'environment/default_async_waiter_impl.h', | |
| 334 'environment/default_logger_impl.cc', | |
| 335 'environment/default_logger_impl.h', | |
| 336 ], | |
| 337 'include_dirs': [ | |
| 338 '..', | |
| 339 ], | |
| 340 }, | |
| 341 { | |
| 342 # GN version: //mojo/bindings/js | |
| 343 'target_name': 'mojo_js_bindings_lib', | |
| 344 'type': 'static_library', | |
| 345 'dependencies': [ | |
| 346 '../base/base.gyp:base', | |
| 347 '../gin/gin.gyp:gin', | |
| 348 '../v8/tools/gyp/v8.gyp:v8', | |
| 349 'mojo_common_lib', | |
| 350 ], | |
| 351 'export_dependent_settings': [ | |
| 352 '../base/base.gyp:base', | |
| 353 '../gin/gin.gyp:gin', | |
| 354 'mojo_common_lib', | |
| 355 ], | |
| 356 'sources': [ | |
| 357 # Sources list duplicated in GN build. | |
| 358 'bindings/js/core.cc', | |
| 359 'bindings/js/core.h', | |
| 360 'bindings/js/handle.cc', | |
| 361 'bindings/js/handle.h', | |
| 362 'bindings/js/support.cc', | |
| 363 'bindings/js/support.h', | |
| 364 'bindings/js/waiting_callback.cc', | |
| 365 'bindings/js/waiting_callback.h', | |
| 366 ], | |
| 367 }, | |
| 368 { | |
| 369 'target_name': 'mojo_message_generator', | |
| 370 'type': 'executable', | |
| 371 'dependencies': [ | |
| 372 '../base/base.gyp:base', | |
| 373 '../testing/gtest.gyp:gtest', | |
| 374 'mojo_common_lib', | |
| 375 'mojo_cpp_bindings', | |
| 376 'mojo_environment_chromium', | |
| 377 'mojo_system_impl', | |
| 378 ], | |
| 379 'sources': [ | |
| 380 'tools/message_generator.cc', | |
| 381 ], | |
| 382 }, | |
| 383 ], | |
| 384 'conditions': [ | |
| 385 ['OS=="android"', { | |
| 386 'targets': [ | |
| 387 { | |
| 388 'target_name': 'mojo_jni_headers', | |
| 389 'type': 'none', | |
| 390 'dependencies': [ | |
| 391 'mojo_java_set_jni_headers', | |
| 392 ], | |
| 393 'sources': [ | |
| 394 'android/javatests/src/org/chromium/mojo/MojoTestCase.java', | |
| 395 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java', | |
| 396 'services/native_viewport/android/src/org/chromium/mojo/NativeViewpo rtAndroid.java', | |
| 397 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java', | |
| 398 ], | |
| 399 'variables': { | |
| 400 'jni_gen_package': 'mojo', | |
| 401 }, | |
| 402 'includes': [ '../build/jni_generator.gypi' ], | |
| 403 }, | |
| 404 { | |
| 405 'target_name': 'mojo_java_set_jni_headers', | |
| 406 'type': 'none', | |
| 407 'variables': { | |
| 408 'jni_gen_package': 'mojo', | |
| 409 'input_java_class': 'java/util/HashSet.class', | |
| 410 }, | |
| 411 'includes': [ '../build/jar_file_jni_generator.gypi' ], | |
| 412 }, | |
| 413 { | |
| 414 'target_name': 'mojo_system_java', | |
| 415 'type': 'none', | |
| 416 'dependencies': [ | |
| 417 '../base/base.gyp:base_java', | |
| 418 'mojo_public_java', | |
| 419 ], | |
| 420 'variables': { | |
| 421 'java_in_dir': '<(DEPTH)/mojo/android/system', | |
| 422 }, | |
| 423 'includes': [ '../build/java.gypi' ], | |
| 424 }, | |
| 425 { | |
| 426 'target_name': 'libmojo_system_java', | |
| 427 'type': 'static_library', | |
| 428 'dependencies': [ | |
| 429 '../base/base.gyp:base', | |
| 430 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', | |
| 431 'mojo_common_lib', | |
| 432 'mojo_environment_chromium', | |
| 433 'mojo_jni_headers', | |
| 434 'mojo_system_impl', | |
| 435 # 'mojo_shell_lib', | |
|
viettrungluu
2014/07/28 22:18:53
?
Hajime Morrita
2014/07/28 22:40:39
Removed.
| |
| 436 ], | |
| 437 'sources': [ | |
| 438 'android/system/core_impl.cc', | |
| 439 'android/system/core_impl.h', | |
| 440 ], | |
| 441 }, | |
| 442 { | |
| 443 'target_name': 'libmojo_java_unittest', | |
| 444 'type': 'shared_library', | |
| 445 'dependencies': [ | |
| 446 '../base/base.gyp:base', | |
| 447 '../base/base.gyp:test_support_base', | |
| 448 'libmojo_system_java', | |
| 449 'mojo_jni_headers', | |
| 450 ], | |
| 451 'defines': [ | |
| 452 'UNIT_TEST' # As exported from testing/gtest.gyp:gtest. | |
| 453 ], | |
| 454 'sources': [ | |
| 455 'android/javatests/mojo_test_case.cc', | |
| 456 'android/javatests/mojo_test_case.h', | |
| 457 'android/javatests/init_library.cc', | |
| 458 ], | |
| 459 }, | |
| 460 { | |
| 461 'target_name': 'mojo_test_apk', | |
| 462 'type': 'none', | |
| 463 'dependencies': [ | |
| 464 'mojo_bindings_java', | |
| 465 'mojo_public_test_interfaces', | |
| 466 'mojo_system_java', | |
| 467 '../base/base.gyp:base_java_test_support', | |
| 468 ], | |
| 469 'variables': { | |
| 470 'apk_name': 'MojoTest', | |
| 471 'java_in_dir': '<(DEPTH)/mojo/android/javatests', | |
| 472 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk', | |
| 473 'native_lib_target': 'libmojo_java_unittest', | |
| 474 'is_test_apk': 1, | |
| 475 # Given that this apk tests itself, it needs to bring emma with it | |
| 476 # when instrumented. | |
| 477 'conditions': [ | |
| 478 ['emma_coverage != 0', { | |
| 479 'emma_instrument': 1, | |
| 480 }], | |
| 481 ], | |
| 482 }, | |
| 483 'includes': [ '../build/java_apk.gypi' ], | |
| 484 }, | |
| 485 ] | |
| 486 }], | |
| 487 ['test_isolation_mode != "noop"', { | |
| 488 'targets': [ | |
| 489 { | |
| 490 'target_name': 'mojo_js_unittests_run', | |
| 491 'type': 'none', | |
| 492 'dependencies': [ | |
| 493 'mojo_js_unittests', | |
| 494 ], | |
| 495 'includes': [ | |
| 496 '../build/isolate.gypi', | |
| 497 'mojo_js_unittests.isolate', | |
| 498 ], | |
| 499 'sources': [ | |
| 500 'mojo_js_unittests.isolate', | |
| 501 ], | |
| 502 }, | |
| 503 ], | |
| 504 }], | |
| 505 ] | |
| 506 } | |
| OLD | NEW |