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