| 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 gypi_values = exec_script("//build/gypi_to_gn.py", | 5 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 6 [ rebase_path("ppapi_sources.gypi") ], | 6 [ rebase_path("ppapi_sources.gypi") ], |
| 7 "scope", | 7 "scope", |
| 8 [ "ppapi_sources.gypi" ]) | 8 [ "ppapi_sources.gypi" ]) |
| 9 | 9 |
| 10 # TODO(GYP) support chrome_multiple_dll | 10 # TODO(GYP) support chrome_multiple_dll |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 # | 87 # |
| 88 # defines = [ "GL_GLEXT_PROTOTYPES" ] | 88 # defines = [ "GL_GLEXT_PROTOTYPES" ] |
| 89 # include_dirs = [ "lib/gl/include" ] | 89 # include_dirs = [ "lib/gl/include" ] |
| 90 # | 90 # |
| 91 # deps = [ | 91 # deps = [ |
| 92 # ":ppapi_cpp", | 92 # ":ppapi_cpp", |
| 93 # ":ppapi_shared", | 93 # ":ppapi_shared", |
| 94 # ] | 94 # ] |
| 95 #} | 95 #} |
| 96 | 96 |
| 97 if (is_nacl) { |
| 98 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 99 [ rebase_path("ppapi_sources.gypi") ], |
| 100 "scope", |
| 101 [ "ppapi_sources.gypi" ]) |
| 102 |
| 103 component("ppapi_cpp_lib") { |
| 104 sources = gypi_values.cpp_source_files + [ |
| 105 "cpp/module_embedder.h", |
| 106 "cpp/ppp_entrypoints.cc", |
| 107 ] |
| 108 } |
| 109 |
| 110 component("ppapi_gles2_lib") { |
| 111 sources = [ |
| 112 "lib/gl/gles2/gl2ext_ppapi.c", |
| 113 "lib/gl/gles2/gl2ext_ppapi.h", |
| 114 "lib/gl/gles2/gles2.c", |
| 115 ] |
| 116 |
| 117 include_dirs = [ "lib/gl/include" ] |
| 118 } |
| 119 } |
| 120 |
| 97 component("ppapi_shared") { | 121 component("ppapi_shared") { |
| 98 sources = [ | 122 sources = [ |
| 99 "shared_impl/array_var.cc", | 123 "shared_impl/array_var.cc", |
| 100 "shared_impl/array_var.h", | 124 "shared_impl/array_var.h", |
| 101 "shared_impl/array_writer.cc", | 125 "shared_impl/array_writer.cc", |
| 102 "shared_impl/array_writer.h", | 126 "shared_impl/array_writer.h", |
| 103 "shared_impl/callback_tracker.cc", | 127 "shared_impl/callback_tracker.cc", |
| 104 "shared_impl/callback_tracker.h", | 128 "shared_impl/callback_tracker.h", |
| 105 "shared_impl/compositor_layer_data.cc", | 129 "shared_impl/compositor_layer_data.cc", |
| 106 "shared_impl/compositor_layer_data.h", | 130 "shared_impl/compositor_layer_data.h", |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 "thunk/ppb_url_loader_api.h", | 343 "thunk/ppb_url_loader_api.h", |
| 320 "thunk/ppb_url_loader_thunk.cc", | 344 "thunk/ppb_url_loader_thunk.cc", |
| 321 "thunk/ppb_url_loader_trusted_thunk.cc", | 345 "thunk/ppb_url_loader_trusted_thunk.cc", |
| 322 "thunk/ppb_url_request_info_api.h", | 346 "thunk/ppb_url_request_info_api.h", |
| 323 "thunk/ppb_url_request_info_thunk.cc", | 347 "thunk/ppb_url_request_info_thunk.cc", |
| 324 "thunk/ppb_url_response_info_api.h", | 348 "thunk/ppb_url_response_info_api.h", |
| 325 "thunk/ppb_url_response_info_thunk.cc", | 349 "thunk/ppb_url_response_info_thunk.cc", |
| 326 "thunk/ppb_var_array_thunk.cc", | 350 "thunk/ppb_var_array_thunk.cc", |
| 327 "thunk/ppb_var_dictionary_thunk.cc", | 351 "thunk/ppb_var_dictionary_thunk.cc", |
| 328 "thunk/ppb_video_capture_api.h", | 352 "thunk/ppb_video_capture_api.h", |
| 329 "thunk/ppb_video_capture_thunk.cc", | |
| 330 "thunk/ppb_video_decoder_api.h", | 353 "thunk/ppb_video_decoder_api.h", |
| 331 "thunk/ppb_video_decoder_dev_api.h", | 354 "thunk/ppb_video_decoder_dev_api.h", |
| 332 "thunk/ppb_video_decoder_thunk.cc", | 355 "thunk/ppb_video_decoder_thunk.cc", |
| 333 "thunk/ppb_video_destination_private_api.h", | 356 "thunk/ppb_video_destination_private_api.h", |
| 334 "thunk/ppb_video_destination_private_thunk.cc", | 357 "thunk/ppb_video_destination_private_thunk.cc", |
| 335 "thunk/ppb_video_encoder_api.h", | 358 "thunk/ppb_video_encoder_api.h", |
| 336 "thunk/ppb_video_encoder_thunk.cc", | 359 "thunk/ppb_video_encoder_thunk.cc", |
| 337 "thunk/ppb_video_frame_api.h", | 360 "thunk/ppb_video_frame_api.h", |
| 338 "thunk/ppb_video_frame_thunk.cc", | 361 "thunk/ppb_video_frame_thunk.cc", |
| 339 "thunk/ppb_video_source_private_api.h", | 362 "thunk/ppb_video_source_private_api.h", |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 "thunk/ppb_flash_fullscreen_thunk.cc", | 399 "thunk/ppb_flash_fullscreen_thunk.cc", |
| 377 "thunk/ppb_flash_menu_thunk.cc", | 400 "thunk/ppb_flash_menu_thunk.cc", |
| 378 "thunk/ppb_flash_thunk.cc", | 401 "thunk/ppb_flash_thunk.cc", |
| 379 "thunk/ppb_flash_message_loop_thunk.cc", | 402 "thunk/ppb_flash_message_loop_thunk.cc", |
| 380 "thunk/ppb_gles_chromium_texture_mapping_thunk.cc", | 403 "thunk/ppb_gles_chromium_texture_mapping_thunk.cc", |
| 381 "thunk/ppb_pdf_thunk.cc", | 404 "thunk/ppb_pdf_thunk.cc", |
| 382 "thunk/ppb_platform_verification_private_thunk.cc", | 405 "thunk/ppb_platform_verification_private_thunk.cc", |
| 383 "thunk/ppb_scrollbar_thunk.cc", | 406 "thunk/ppb_scrollbar_thunk.cc", |
| 384 "thunk/ppb_talk_private_thunk.cc", | 407 "thunk/ppb_talk_private_thunk.cc", |
| 385 "thunk/ppb_url_util_thunk.cc", | 408 "thunk/ppb_url_util_thunk.cc", |
| 409 "thunk/ppb_video_capture_thunk.cc", |
| 386 "thunk/ppb_video_decoder_dev_thunk.cc", | 410 "thunk/ppb_video_decoder_dev_thunk.cc", |
| 387 ] | 411 ] |
| 388 } | 412 } |
| 389 | 413 |
| 390 # We exclude a few more things for nacl_win64, to avoid pulling in more | 414 # We exclude a few more things for nacl_win64, to avoid pulling in more |
| 391 # dependencies. | 415 # dependencies. |
| 392 if (is_win && cpu_arch == "x64" && current_toolchain != default_toolchain) { | 416 if (is_win && cpu_arch == "x64" && current_toolchain != default_toolchain) { |
| 393 sources -= [ | 417 sources -= [ |
| 394 "shared_impl/ppb_audio_shared.cc", | 418 "shared_impl/ppb_audio_shared.cc", |
| 395 "shared_impl/ppb_graphics_3d_shared.cc", | 419 "shared_impl/ppb_graphics_3d_shared.cc", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 424 "//gpu/command_buffer/common", | 448 "//gpu/command_buffer/common", |
| 425 "//ipc", | 449 "//ipc", |
| 426 "//media:shared_memory_support", | 450 "//media:shared_memory_support", |
| 427 "//skia", | 451 "//skia", |
| 428 "//third_party/icu:icuuc", | 452 "//third_party/icu:icuuc", |
| 429 "//ui/events:events_base", | 453 "//ui/events:events_base", |
| 430 "//ui/surface", | 454 "//ui/surface", |
| 431 "//url", | 455 "//url", |
| 432 ] | 456 ] |
| 433 | 457 |
| 458 if (is_nacl) { |
| 459 deps -= [ |
| 460 "//base/third_party/dynamic_annotations", |
| 461 "//skia", |
| 462 "//ui/events:events_base", |
| 463 "//ui/surface", |
| 464 ] |
| 465 |
| 466 public_deps -= [ blink_target ] |
| 467 } |
| 468 |
| 434 if (is_mac) { | 469 if (is_mac) { |
| 435 libs = [ "QuartzCore.framework" ] | 470 libs = [ "QuartzCore.framework" ] |
| 436 } else if (is_win) { | 471 } else if (is_win) { |
| 437 cflags = [ "/wd4267" ] # size_t to int truncation. | 472 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 438 } | 473 } |
| 439 } | 474 } |
| 440 | 475 |
| 441 source_set("ppapi_ipc") { | 476 source_set("ppapi_ipc") { |
| 442 sources = [ | 477 sources = [ |
| 443 "proxy/nacl_message_scanner.cc", | 478 "proxy/nacl_message_scanner.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 468 ":ppapi_shared", | 503 ":ppapi_shared", |
| 469 "//base", | 504 "//base", |
| 470 "//gpu/ipc", | 505 "//gpu/ipc", |
| 471 "//ipc", | 506 "//ipc", |
| 472 "//skia", | 507 "//skia", |
| 473 "//ui/events/ipc", | 508 "//ui/events/ipc", |
| 474 ] | 509 ] |
| 475 | 510 |
| 476 if (is_nacl) { | 511 if (is_nacl) { |
| 477 sources -= [ "proxy/serialized_flash_menu.cc" ] | 512 sources -= [ "proxy/serialized_flash_menu.cc" ] |
| 513 |
| 514 deps -= [ |
| 515 "//skia", |
| 516 "//ui/events/ipc", |
| 517 ] |
| 478 } | 518 } |
| 479 } | 519 } |
| 480 | 520 |
| 481 component("ppapi_proxy") { | 521 component("ppapi_proxy") { |
| 482 sources = [ | 522 sources = [ |
| 483 # Take some standalone files from the C++ wrapper allowing us to more | 523 # Take some standalone files from the C++ wrapper allowing us to more |
| 484 # easily make async callbacks in the proxy. We can"t depend on the | 524 # easily make async callbacks in the proxy. We can"t depend on the |
| 485 # full C++ wrappers at this layer since the C++ wrappers expect | 525 # full C++ wrappers at this layer since the C++ wrappers expect |
| 486 # symbols defining the globals for "being a plugin" which we are not. | 526 # symbols defining the globals for "being a plugin" which we are not. |
| 487 # These callback files are standalone. | 527 # These callback files are standalone. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 "proxy/udp_socket_resource_base.h", | 683 "proxy/udp_socket_resource_base.h", |
| 644 "proxy/uma_private_resource.cc", | 684 "proxy/uma_private_resource.cc", |
| 645 "proxy/uma_private_resource.h", | 685 "proxy/uma_private_resource.h", |
| 646 "proxy/url_loader_resource.cc", | 686 "proxy/url_loader_resource.cc", |
| 647 "proxy/url_loader_resource.h", | 687 "proxy/url_loader_resource.h", |
| 648 "proxy/url_request_info_resource.cc", | 688 "proxy/url_request_info_resource.cc", |
| 649 "proxy/url_request_info_resource.h", | 689 "proxy/url_request_info_resource.h", |
| 650 "proxy/url_response_info_resource.cc", | 690 "proxy/url_response_info_resource.cc", |
| 651 "proxy/url_response_info_resource.h", | 691 "proxy/url_response_info_resource.h", |
| 652 "proxy/var_serialization_rules.h", | 692 "proxy/var_serialization_rules.h", |
| 693 "proxy/video_decoder_resource.cc", |
| 694 "proxy/video_decoder_resource.h", |
| 695 "proxy/video_encoder_resource.cc", |
| 696 "proxy/video_encoder_resource.h", |
| 653 "proxy/video_destination_resource.cc", | 697 "proxy/video_destination_resource.cc", |
| 654 "proxy/video_destination_resource.h", | 698 "proxy/video_destination_resource.h", |
| 655 "proxy/video_frame_resource.cc", | 699 "proxy/video_frame_resource.cc", |
| 656 "proxy/video_frame_resource.h", | 700 "proxy/video_frame_resource.h", |
| 657 "proxy/video_source_resource.cc", | 701 "proxy/video_source_resource.cc", |
| 658 "proxy/video_source_resource.h", | 702 "proxy/video_source_resource.h", |
| 659 "proxy/websocket_resource.cc", | 703 "proxy/websocket_resource.cc", |
| 660 "proxy/websocket_resource.h", | 704 "proxy/websocket_resource.h", |
| 661 ] | 705 ] |
| 662 | 706 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 "proxy/ppb_flash_message_loop_proxy.cc", | 757 "proxy/ppb_flash_message_loop_proxy.cc", |
| 714 "proxy/ppb_flash_message_loop_proxy.h", | 758 "proxy/ppb_flash_message_loop_proxy.h", |
| 715 "proxy/ppb_video_decoder_proxy.cc", | 759 "proxy/ppb_video_decoder_proxy.cc", |
| 716 "proxy/ppb_video_decoder_proxy.h", | 760 "proxy/ppb_video_decoder_proxy.h", |
| 717 "proxy/ppp_content_decryptor_private_proxy.cc", | 761 "proxy/ppp_content_decryptor_private_proxy.cc", |
| 718 "proxy/ppp_content_decryptor_private_proxy.h", | 762 "proxy/ppp_content_decryptor_private_proxy.h", |
| 719 "proxy/ppp_instance_private_proxy.cc", | 763 "proxy/ppp_instance_private_proxy.cc", |
| 720 "proxy/ppp_instance_private_proxy.h", | 764 "proxy/ppp_instance_private_proxy.h", |
| 721 "proxy/ppp_video_decoder_proxy.cc", | 765 "proxy/ppp_video_decoder_proxy.cc", |
| 722 "proxy/ppp_video_decoder_proxy.h", | 766 "proxy/ppp_video_decoder_proxy.h", |
| 723 "proxy/video_decoder_resource.cc", | |
| 724 "proxy/video_decoder_resource.h", | |
| 725 "proxy/video_encoder_resource.cc", | |
| 726 "proxy/video_encoder_resource.h", | |
| 727 "proxy/talk_resource.cc", | 767 "proxy/talk_resource.cc", |
| 728 "proxy/talk_resource.h", | 768 "proxy/talk_resource.h", |
| 729 "proxy/video_capture_resource.cc", | 769 "proxy/video_capture_resource.cc", |
| 730 "proxy/video_capture_resource.h", | 770 "proxy/video_capture_resource.h", |
| 731 ] | 771 ] |
| 732 } | 772 } |
| 733 | 773 |
| 734 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] | 774 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] |
| 735 | 775 |
| 736 deps = [ | 776 deps = [ |
| 737 ":ppapi_c", | 777 ":ppapi_c", |
| 738 ":ppapi_shared", | 778 ":ppapi_shared", |
| 739 ":ppapi_ipc", | 779 ":ppapi_ipc", |
| 740 "//base", | 780 "//base", |
| 741 "//base/third_party/dynamic_annotations", | 781 "//base/third_party/dynamic_annotations", |
| 742 "//gin", | 782 "//gin", |
| 743 "//gpu/command_buffer/client:gles2_implementation", | 783 "//gpu/command_buffer/client:gles2_implementation", |
| 744 "//gpu/ipc", | 784 "//gpu/ipc", |
| 745 "//media:shared_memory_support", | 785 "//media:shared_memory_support", |
| 746 "//ipc", | 786 "//ipc", |
| 747 "//skia", | 787 "//skia", |
| 748 "//third_party/icu", | 788 "//third_party/icu", |
| 749 "//ui/events:events_base", | 789 "//ui/events:events_base", |
| 750 "//ui/surface", | 790 "//ui/surface", |
| 751 blink_target, | 791 blink_target, |
| 752 ] | 792 ] |
| 753 | 793 |
| 794 if (is_nacl) { |
| 795 deps -= [ |
| 796 "//base/third_party/dynamic_annotations", |
| 797 "//gin", |
| 798 "//skia", |
| 799 "//ui/events:events_base", |
| 800 "//ui/surface", |
| 801 blink_target, |
| 802 ] |
| 803 |
| 804 deps += [ "//ui/events:latency_info" ] |
| 805 } |
| 806 |
| 754 if (is_win) { | 807 if (is_win) { |
| 755 cflags = [ "/wd4267" ] # size_t to int truncation. | 808 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 756 } | 809 } |
| 757 } | 810 } |
| 758 | 811 |
| 759 component("ppapi_host") { | 812 component("ppapi_host") { |
| 760 sources = [ | 813 sources = [ |
| 761 "host/dispatch_host_message.h", | 814 "host/dispatch_host_message.h", |
| 762 "host/error_conversion.cc", | 815 "host/error_conversion.cc", |
| 763 "host/error_conversion.h", | 816 "host/error_conversion.h", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 ":ppapi_proxy", | 865 ":ppapi_proxy", |
| 813 ":ppapi_shared", | 866 ":ppapi_shared", |
| 814 "//base/test:test_support", | 867 "//base/test:test_support", |
| 815 "//ipc", | 868 "//ipc", |
| 816 "//ipc:test_support", | 869 "//ipc:test_support", |
| 817 "//testing/gmock", | 870 "//testing/gmock", |
| 818 "//testing/gtest", | 871 "//testing/gtest", |
| 819 ] | 872 ] |
| 820 } | 873 } |
| 821 # TODO(GYP) other targets from ppapi_tests.gyp | 874 # TODO(GYP) other targets from ppapi_tests.gyp |
| OLD | NEW |