OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
11 'target_name': 'ios_web_app', | 11 'target_name': 'ios_web_app', |
12 'type': 'static_library', | 12 'type': 'static_library', |
13 'include_dirs': [ | 13 'include_dirs': [ |
14 '../..', | 14 '../..', |
15 ], | 15 ], |
16 'dependencies': [ | 16 'dependencies': [ |
17 'ios_web', | 17 'ios_web', |
18 'ios_web_thread', | |
19 '../../base/base.gyp:base', | 18 '../../base/base.gyp:base', |
20 '../../base/base.gyp:base_i18n', | 19 '../../base/base.gyp:base_i18n', |
21 '../../crypto/crypto.gyp:crypto', | 20 '../../crypto/crypto.gyp:crypto', |
22 '../../net/net.gyp:net', | 21 '../../net/net.gyp:net', |
23 '../../ui/base/ui_base.gyp:ui_base', | 22 '../../ui/base/ui_base.gyp:ui_base', |
24 '../../ui/gfx/gfx.gyp:gfx', | 23 '../../ui/gfx/gfx.gyp:gfx', |
25 '../../ui/gfx/gfx.gyp:gfx_geometry', | 24 '../../ui/gfx/gfx.gyp:gfx_geometry', |
26 ], | 25 ], |
27 'sources': [ | 26 'sources': [ |
28 'app/web_main.mm', | 27 'app/web_main.mm', |
29 'app/web_main_loop.h', | 28 'app/web_main_loop.h', |
30 'app/web_main_loop.mm', | 29 'app/web_main_loop.mm', |
31 'app/web_main_runner.h', | 30 'app/web_main_runner.h', |
32 'app/web_main_runner.mm', | 31 'app/web_main_runner.mm', |
33 'public/app/web_main.h', | 32 'public/app/web_main.h', |
34 'public/app/web_main_delegate.h', | 33 'public/app/web_main_delegate.h', |
35 'public/app/web_main_parts.h', | 34 'public/app/web_main_parts.h', |
36 ], | 35 ], |
37 }, | 36 }, |
38 # Note: any embedder using ios_web will for now need to include either | |
39 # ios_web_thread (any new embedder) or ios_web_content_thread_shim (Chrome). | |
40 # This will become unnecessary once Chrome switches to using ios_web_thread, | |
41 # at which point that will be folded into this target. | |
42 { | 37 { |
43 # GN version: //ios/web | 38 # GN version: //ios/web |
44 'target_name': 'ios_web', | 39 'target_name': 'ios_web', |
45 'type': 'static_library', | 40 'type': 'static_library', |
46 'include_dirs': [ | 41 'include_dirs': [ |
47 '../..', | 42 '../..', |
48 ], | 43 ], |
49 'dependencies': [ | 44 'dependencies': [ |
50 'ios_web_core', | 45 'ios_web_core', |
51 'js_resources', | 46 'js_resources', |
52 'user_agent', | 47 'user_agent', |
53 '../../base/base.gyp:base', | 48 '../../base/base.gyp:base', |
54 '../../components/url_formatter/url_formatter.gyp:url_formatter', | 49 '../../components/url_formatter/url_formatter.gyp:url_formatter', |
55 '../../content/content.gyp:content_browser', | |
56 '../../ios/net/ios_net.gyp:ios_net', | 50 '../../ios/net/ios_net.gyp:ios_net', |
57 '../../ios/third_party/blink/blink_html_tokenizer.gyp:blink_html_tokeniz
er', | 51 '../../ios/third_party/blink/blink_html_tokenizer.gyp:blink_html_tokeniz
er', |
58 '../../net/net.gyp:net', | 52 '../../net/net.gyp:net', |
59 '../../ui/base/ui_base.gyp:ui_base', | 53 '../../ui/base/ui_base.gyp:ui_base', |
60 '../../ui/gfx/gfx.gyp:gfx', | 54 '../../ui/gfx/gfx.gyp:gfx', |
61 '../../ui/gfx/gfx.gyp:gfx_geometry', | 55 '../../ui/gfx/gfx.gyp:gfx_geometry', |
62 '../../ui/resources/ui_resources.gyp:ui_resources', | 56 '../../ui/resources/ui_resources.gyp:ui_resources', |
63 '../../url/url.gyp:url_lib', | 57 '../../url/url.gyp:url_lib', |
64 ], | 58 ], |
65 'sources': [ | 59 'sources': [ |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 'webui/url_data_source_ios_impl.cc', | 305 'webui/url_data_source_ios_impl.cc', |
312 'webui/url_data_source_ios_impl.h', | 306 'webui/url_data_source_ios_impl.h', |
313 'webui/url_fetcher_block_adapter.h', | 307 'webui/url_fetcher_block_adapter.h', |
314 'webui/url_fetcher_block_adapter.mm', | 308 'webui/url_fetcher_block_adapter.mm', |
315 'webui/web_ui_ios_controller_factory_registry.cc', | 309 'webui/web_ui_ios_controller_factory_registry.cc', |
316 'webui/web_ui_ios_controller_factory_registry.h', | 310 'webui/web_ui_ios_controller_factory_registry.h', |
317 'webui/web_ui_ios_data_source_impl.cc', | 311 'webui/web_ui_ios_data_source_impl.cc', |
318 'webui/web_ui_ios_data_source_impl.h', | 312 'webui/web_ui_ios_data_source_impl.h', |
319 'webui/web_ui_ios_impl.h', | 313 'webui/web_ui_ios_impl.h', |
320 'webui/web_ui_ios_impl.mm', | 314 'webui/web_ui_ios_impl.mm', |
| 315 'web_thread_impl.cc', |
| 316 'web_thread_impl.h', |
321 ], | 317 ], |
322 'link_settings': { | 318 'link_settings': { |
323 # TODO(crbug.com/541549): change to regular linking once support for | 319 # TODO(crbug.com/541549): change to regular linking once support for |
324 # iOS 7 is dropped. | 320 # iOS 7 is dropped. |
325 'xcode_settings': { | 321 'xcode_settings': { |
326 'OTHER_LDFLAGS': [ | 322 'OTHER_LDFLAGS': [ |
327 '-weak_framework WebKit', | 323 '-weak_framework WebKit', |
328 ] | 324 ] |
329 }, | 325 }, |
330 }, | 326 }, |
331 }, | 327 }, |
332 # Target that builds the actual WebThread implementation. This is a | |
333 # separate target since it can't yet be used by Chrome (see comment below). | |
334 { | |
335 'target_name': 'ios_web_thread', | |
336 'type': 'static_library', | |
337 'dependencies': [ | |
338 '../../base/base.gyp:base', | |
339 '../../net/net.gyp:net', | |
340 ], | |
341 'include_dirs': [ | |
342 '../..', | |
343 ], | |
344 'sources': [ | |
345 'web_thread_impl.cc', | |
346 'web_thread_impl.h', | |
347 ], | |
348 }, | |
349 # Target that builds the files that shim WebThread functions to their | |
350 # corresponding content equivalents. This is a separate target since it | |
351 # is needed by Chrome, which still uses content startup (which creates | |
352 # content threads), but isn't used by web_shell. | |
353 { | |
354 'target_name': 'ios_web_content_thread_shim', | |
355 'type': 'static_library', | |
356 'dependencies': [ | |
357 '../../base/base.gyp:base', | |
358 '../../content/content.gyp:content_browser', | |
359 ], | |
360 'include_dirs': [ | |
361 '../..', | |
362 ], | |
363 'sources': [ | |
364 'web_thread_adapter.cc', | |
365 'web_thread_adapter.h', | |
366 ], | |
367 }, | |
368 # Target shared by ios_web and CrNet. | 328 # Target shared by ios_web and CrNet. |
369 { | 329 { |
370 # GN version: //ios/web:core | 330 # GN version: //ios/web:core |
371 'target_name': 'ios_web_core', | 331 'target_name': 'ios_web_core', |
372 'type': 'static_library', | 332 'type': 'static_library', |
373 'dependencies': [ | 333 'dependencies': [ |
374 '../../base/base.gyp:base', | 334 '../../base/base.gyp:base', |
375 ], | 335 ], |
376 'include_dirs': [ | 336 'include_dirs': [ |
377 '../..', | 337 '../..', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 '<(SHARED_INTERMEDIATE_DIR)/window_id.js', | 424 '<(SHARED_INTERMEDIATE_DIR)/window_id.js', |
465 '<(SHARED_INTERMEDIATE_DIR)/web_ui.js', | 425 '<(SHARED_INTERMEDIATE_DIR)/web_ui.js', |
466 ], | 426 ], |
467 }, | 427 }, |
468 'includes': [ | 428 'includes': [ |
469 'js_compile_checked.gypi' | 429 'js_compile_checked.gypi' |
470 ], | 430 ], |
471 }, | 431 }, |
472 { | 432 { |
473 # GN version: //ios/web:test_support | 433 # GN version: //ios/web:test_support |
474 'target_name': 'test_support_ios_web', | 434 'target_name': 'ios_web_test_support', |
475 'type': 'static_library', | 435 'type': 'static_library', |
476 'dependencies': [ | 436 'dependencies': [ |
477 'ios_web_thread', | |
478 'test_support_ios_web_without_threads', | |
479 ], | |
480 'include_dirs': [ | |
481 '../..', | |
482 ], | |
483 'sources': [ | |
484 'test/test_web_thread.cc', | |
485 'test/test_web_thread_bundle.cc', | |
486 ], | |
487 }, | |
488 { | |
489 'target_name': 'test_support_ios_web_with_content_thread_shim', | |
490 'type': 'static_library', | |
491 'dependencies': [ | |
492 'ios_web_content_thread_shim', | |
493 'test_support_ios_web_without_threads', | |
494 ], | |
495 'include_dirs': [ | |
496 '../..', | |
497 ], | |
498 'sources': [ | |
499 'test/test_web_thread_adapter.cc', | |
500 'test/test_web_thread_bundle_adapter.cc', | |
501 ], | |
502 }, | |
503 # A test support target that does not include TestWebThread. This is | |
504 # separate because tests that rely on the the shim thread implementation | |
505 # can't use TestWebThread/TestWebThreadBundle. | |
506 # TODO(stuartmorgan): Fold this into test_support_ios_web once | |
507 # the WebThread-to-BrowserThread shim is gone. | |
508 { | |
509 'target_name': 'test_support_ios_web_without_threads', | |
510 'type': 'static_library', | |
511 'dependencies': [ | |
512 'ios_web', | |
513 '../../content/content_shell_and_tests.gyp:test_support_content', | |
514 '../../ios/testing/ios_testing.gyp:ocmock_support', | 437 '../../ios/testing/ios_testing.gyp:ocmock_support', |
515 '../../ios/third_party/gcdwebserver/gcdwebserver.gyp:gcdwebserver', | 438 '../../ios/third_party/gcdwebserver/gcdwebserver.gyp:gcdwebserver', |
516 '../../testing/gmock.gyp:gmock', | 439 '../../testing/gmock.gyp:gmock', |
517 '../../testing/gtest.gyp:gtest', | 440 '../../testing/gtest.gyp:gtest', |
518 '../../third_party/ocmock/ocmock.gyp:ocmock', | 441 '../../third_party/ocmock/ocmock.gyp:ocmock', |
| 442 'ios_web', |
519 ], | 443 ], |
520 'include_dirs': [ | 444 'include_dirs': [ |
521 '../..', | 445 '../..', |
522 ], | 446 ], |
523 'sources': [ | 447 'sources': [ |
524 'public/test/crw_test_js_injection_receiver.h', | 448 'public/test/crw_test_js_injection_receiver.h', |
525 'public/test/crw_test_js_injection_receiver.mm', | 449 'public/test/crw_test_js_injection_receiver.mm', |
526 'public/test/http_server.h', | 450 'public/test/http_server.h', |
527 'public/test/http_server.mm', | 451 'public/test/http_server.mm', |
528 'public/test/js_test_util.h', | 452 'public/test/js_test_util.h', |
(...skipping 12 matching lines...) Expand all Loading... |
541 'public/test/test_web_client.mm', | 465 'public/test/test_web_client.mm', |
542 'public/test/test_web_state.cc', | 466 'public/test/test_web_state.cc', |
543 'public/test/test_web_state.h', | 467 'public/test/test_web_state.h', |
544 'public/test/test_web_thread.h', | 468 'public/test/test_web_thread.h', |
545 'public/test/test_web_thread_bundle.h', | 469 'public/test/test_web_thread_bundle.h', |
546 'public/test/test_web_view_content_view.h', | 470 'public/test/test_web_view_content_view.h', |
547 'public/test/test_web_view_content_view.mm', | 471 'public/test/test_web_view_content_view.mm', |
548 'public/test/web_test_util.h', | 472 'public/test/web_test_util.h', |
549 'test/crw_fake_web_controller_observer.h', | 473 'test/crw_fake_web_controller_observer.h', |
550 'test/crw_fake_web_controller_observer.mm', | 474 'test/crw_fake_web_controller_observer.mm', |
| 475 'test/test_web_thread.cc', |
| 476 'test/test_web_thread_bundle.cc', |
551 'test/web_test.h', | 477 'test/web_test.h', |
552 'test/web_test.mm', | 478 'test/web_test.mm', |
553 'test/web_test_suite.cc', | 479 'test/web_test_suite.cc', |
554 'test/web_test_suite.h', | 480 'test/web_test_suite.h', |
555 'test/wk_web_view_crash_utils.h', | 481 'test/wk_web_view_crash_utils.h', |
556 'test/wk_web_view_crash_utils.mm', | 482 'test/wk_web_view_crash_utils.mm', |
557 ], | 483 ], |
558 }, | 484 }, |
559 { | 485 { |
560 # GN version: //ios/web:user_agent | 486 # GN version: //ios/web:user_agent |
561 'target_name': 'user_agent', | 487 'target_name': 'user_agent', |
562 'type': 'static_library', | 488 'type': 'static_library', |
563 'include_dirs': [ | 489 'include_dirs': [ |
564 '../..', | 490 '../..', |
565 ], | 491 ], |
566 'dependencies': [ | 492 'dependencies': [ |
567 '../../base/base.gyp:base' | 493 '../../base/base.gyp:base' |
568 ], | 494 ], |
569 'sources': [ | 495 'sources': [ |
570 'public/user_agent.h', | 496 'public/user_agent.h', |
571 'public/user_agent.mm', | 497 'public/user_agent.mm', |
572 ], | 498 ], |
573 }, | 499 }, |
574 ], | 500 ], |
575 } | 501 } |
OLD | NEW |