| 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_frame_api.h", | 358 "thunk/ppb_video_frame_api.h", |
| 336 "thunk/ppb_video_frame_thunk.cc", | 359 "thunk/ppb_video_frame_thunk.cc", |
| 337 "thunk/ppb_video_source_private_api.h", | 360 "thunk/ppb_video_source_private_api.h", |
| 338 "thunk/ppb_video_source_private_thunk.cc", | 361 "thunk/ppb_video_source_private_thunk.cc", |
| 339 "thunk/ppb_view_api.h", | 362 "thunk/ppb_view_api.h", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 "thunk/ppb_flash_fullscreen_thunk.cc", | 397 "thunk/ppb_flash_fullscreen_thunk.cc", |
| 375 "thunk/ppb_flash_menu_thunk.cc", | 398 "thunk/ppb_flash_menu_thunk.cc", |
| 376 "thunk/ppb_flash_thunk.cc", | 399 "thunk/ppb_flash_thunk.cc", |
| 377 "thunk/ppb_flash_message_loop_thunk.cc", | 400 "thunk/ppb_flash_message_loop_thunk.cc", |
| 378 "thunk/ppb_gles_chromium_texture_mapping_thunk.cc", | 401 "thunk/ppb_gles_chromium_texture_mapping_thunk.cc", |
| 379 "thunk/ppb_pdf_thunk.cc", | 402 "thunk/ppb_pdf_thunk.cc", |
| 380 "thunk/ppb_platform_verification_private_thunk.cc", | 403 "thunk/ppb_platform_verification_private_thunk.cc", |
| 381 "thunk/ppb_scrollbar_thunk.cc", | 404 "thunk/ppb_scrollbar_thunk.cc", |
| 382 "thunk/ppb_talk_private_thunk.cc", | 405 "thunk/ppb_talk_private_thunk.cc", |
| 383 "thunk/ppb_url_util_thunk.cc", | 406 "thunk/ppb_url_util_thunk.cc", |
| 407 "thunk/ppb_video_capture_thunk.cc", |
| 384 "thunk/ppb_video_decoder_dev_thunk.cc", | 408 "thunk/ppb_video_decoder_dev_thunk.cc", |
| 385 ] | 409 ] |
| 386 } | 410 } |
| 387 | 411 |
| 388 # We exclude a few more things for nacl_win64, to avoid pulling in more | 412 # We exclude a few more things for nacl_win64, to avoid pulling in more |
| 389 # dependencies. | 413 # dependencies. |
| 390 if (is_win && cpu_arch == "x64" && current_toolchain != default_toolchain) { | 414 if (is_win && cpu_arch == "x64" && current_toolchain != default_toolchain) { |
| 391 sources -= [ | 415 sources -= [ |
| 392 "shared_impl/ppb_audio_shared.cc", | 416 "shared_impl/ppb_audio_shared.cc", |
| 393 "shared_impl/ppb_graphics_3d_shared.cc", | 417 "shared_impl/ppb_graphics_3d_shared.cc", |
| (...skipping 28 matching lines...) Expand all Loading... |
| 422 "//gpu/command_buffer/common", | 446 "//gpu/command_buffer/common", |
| 423 "//ipc", | 447 "//ipc", |
| 424 "//media:shared_memory_support", | 448 "//media:shared_memory_support", |
| 425 "//skia", | 449 "//skia", |
| 426 "//third_party/icu:icuuc", | 450 "//third_party/icu:icuuc", |
| 427 "//ui/events:events_base", | 451 "//ui/events:events_base", |
| 428 "//ui/surface", | 452 "//ui/surface", |
| 429 "//url", | 453 "//url", |
| 430 ] | 454 ] |
| 431 | 455 |
| 456 if (is_nacl) { |
| 457 deps -= [ |
| 458 "//base/third_party/dynamic_annotations", |
| 459 "//skia", |
| 460 "//ui/events:events_base", |
| 461 "//ui/surface", |
| 462 ] |
| 463 |
| 464 public_deps -= [ blink_target ] |
| 465 } |
| 466 |
| 432 if (is_mac) { | 467 if (is_mac) { |
| 433 libs = [ "QuartzCore.framework" ] | 468 libs = [ "QuartzCore.framework" ] |
| 434 } else if (is_win) { | 469 } else if (is_win) { |
| 435 cflags = [ "/wd4267" ] # size_t to int truncation. | 470 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 436 } | 471 } |
| 437 } | 472 } |
| 438 | 473 |
| 439 source_set("ppapi_ipc") { | 474 source_set("ppapi_ipc") { |
| 440 sources = [ | 475 sources = [ |
| 441 "proxy/nacl_message_scanner.cc", | 476 "proxy/nacl_message_scanner.cc", |
| (...skipping 24 matching lines...) Expand all Loading... |
| 466 ":ppapi_shared", | 501 ":ppapi_shared", |
| 467 "//base", | 502 "//base", |
| 468 "//gpu/ipc", | 503 "//gpu/ipc", |
| 469 "//ipc", | 504 "//ipc", |
| 470 "//skia", | 505 "//skia", |
| 471 "//ui/events/ipc", | 506 "//ui/events/ipc", |
| 472 ] | 507 ] |
| 473 | 508 |
| 474 if (is_nacl) { | 509 if (is_nacl) { |
| 475 sources -= [ "proxy/serialized_flash_menu.cc" ] | 510 sources -= [ "proxy/serialized_flash_menu.cc" ] |
| 511 |
| 512 deps -= [ |
| 513 "//skia", |
| 514 "//ui/events/ipc", |
| 515 ] |
| 476 } | 516 } |
| 477 } | 517 } |
| 478 | 518 |
| 479 component("ppapi_proxy") { | 519 component("ppapi_proxy") { |
| 480 sources = [ | 520 sources = [ |
| 481 # Take some standalone files from the C++ wrapper allowing us to more | 521 # Take some standalone files from the C++ wrapper allowing us to more |
| 482 # easily make async callbacks in the proxy. We can"t depend on the | 522 # easily make async callbacks in the proxy. We can"t depend on the |
| 483 # full C++ wrappers at this layer since the C++ wrappers expect | 523 # full C++ wrappers at this layer since the C++ wrappers expect |
| 484 # symbols defining the globals for "being a plugin" which we are not. | 524 # symbols defining the globals for "being a plugin" which we are not. |
| 485 # These callback files are standalone. | 525 # These callback files are standalone. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 641 "proxy/udp_socket_resource_base.h", | 681 "proxy/udp_socket_resource_base.h", |
| 642 "proxy/uma_private_resource.cc", | 682 "proxy/uma_private_resource.cc", |
| 643 "proxy/uma_private_resource.h", | 683 "proxy/uma_private_resource.h", |
| 644 "proxy/url_loader_resource.cc", | 684 "proxy/url_loader_resource.cc", |
| 645 "proxy/url_loader_resource.h", | 685 "proxy/url_loader_resource.h", |
| 646 "proxy/url_request_info_resource.cc", | 686 "proxy/url_request_info_resource.cc", |
| 647 "proxy/url_request_info_resource.h", | 687 "proxy/url_request_info_resource.h", |
| 648 "proxy/url_response_info_resource.cc", | 688 "proxy/url_response_info_resource.cc", |
| 649 "proxy/url_response_info_resource.h", | 689 "proxy/url_response_info_resource.h", |
| 650 "proxy/var_serialization_rules.h", | 690 "proxy/var_serialization_rules.h", |
| 691 "proxy/video_decoder_resource.cc", |
| 692 "proxy/video_decoder_resource.h", |
| 651 "proxy/video_destination_resource.cc", | 693 "proxy/video_destination_resource.cc", |
| 652 "proxy/video_destination_resource.h", | 694 "proxy/video_destination_resource.h", |
| 653 "proxy/video_frame_resource.cc", | 695 "proxy/video_frame_resource.cc", |
| 654 "proxy/video_frame_resource.h", | 696 "proxy/video_frame_resource.h", |
| 655 "proxy/video_source_resource.cc", | 697 "proxy/video_source_resource.cc", |
| 656 "proxy/video_source_resource.h", | 698 "proxy/video_source_resource.h", |
| 657 "proxy/websocket_resource.cc", | 699 "proxy/websocket_resource.cc", |
| 658 "proxy/websocket_resource.h", | 700 "proxy/websocket_resource.h", |
| 659 ] | 701 ] |
| 660 | 702 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 "proxy/ppb_flash_message_loop_proxy.cc", | 753 "proxy/ppb_flash_message_loop_proxy.cc", |
| 712 "proxy/ppb_flash_message_loop_proxy.h", | 754 "proxy/ppb_flash_message_loop_proxy.h", |
| 713 "proxy/ppb_video_decoder_proxy.cc", | 755 "proxy/ppb_video_decoder_proxy.cc", |
| 714 "proxy/ppb_video_decoder_proxy.h", | 756 "proxy/ppb_video_decoder_proxy.h", |
| 715 "proxy/ppp_content_decryptor_private_proxy.cc", | 757 "proxy/ppp_content_decryptor_private_proxy.cc", |
| 716 "proxy/ppp_content_decryptor_private_proxy.h", | 758 "proxy/ppp_content_decryptor_private_proxy.h", |
| 717 "proxy/ppp_instance_private_proxy.cc", | 759 "proxy/ppp_instance_private_proxy.cc", |
| 718 "proxy/ppp_instance_private_proxy.h", | 760 "proxy/ppp_instance_private_proxy.h", |
| 719 "proxy/ppp_video_decoder_proxy.cc", | 761 "proxy/ppp_video_decoder_proxy.cc", |
| 720 "proxy/ppp_video_decoder_proxy.h", | 762 "proxy/ppp_video_decoder_proxy.h", |
| 721 "proxy/video_decoder_resource.cc", | |
| 722 "proxy/video_decoder_resource.h", | |
| 723 "proxy/talk_resource.cc", | 763 "proxy/talk_resource.cc", |
| 724 "proxy/talk_resource.h", | 764 "proxy/talk_resource.h", |
| 725 "proxy/video_capture_resource.cc", | 765 "proxy/video_capture_resource.cc", |
| 726 "proxy/video_capture_resource.h", | 766 "proxy/video_capture_resource.h", |
| 727 ] | 767 ] |
| 728 } | 768 } |
| 729 | 769 |
| 730 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] | 770 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] |
| 731 | 771 |
| 732 deps = [ | 772 deps = [ |
| 733 ":ppapi_c", | 773 ":ppapi_c", |
| 734 ":ppapi_shared", | 774 ":ppapi_shared", |
| 735 ":ppapi_ipc", | 775 ":ppapi_ipc", |
| 736 "//base", | 776 "//base", |
| 737 "//base/third_party/dynamic_annotations", | 777 "//base/third_party/dynamic_annotations", |
| 738 "//gin", | 778 "//gin", |
| 739 "//gpu/command_buffer/client:gles2_implementation", | 779 "//gpu/command_buffer/client:gles2_implementation", |
| 740 "//gpu/ipc", | 780 "//gpu/ipc", |
| 741 "//media:shared_memory_support", | 781 "//media:shared_memory_support", |
| 742 "//ipc", | 782 "//ipc", |
| 743 "//skia", | 783 "//skia", |
| 744 "//third_party/icu", | 784 "//third_party/icu", |
| 745 "//ui/events:events_base", | 785 "//ui/events:events_base", |
| 746 "//ui/surface", | 786 "//ui/surface", |
| 747 blink_target, | 787 blink_target, |
| 748 ] | 788 ] |
| 749 | 789 |
| 790 if (is_nacl) { |
| 791 deps -= [ |
| 792 "//base/third_party/dynamic_annotations", |
| 793 "//gin", |
| 794 "//skia", |
| 795 "//ui/events:events_base", |
| 796 "//ui/surface", |
| 797 blink_target, |
| 798 ] |
| 799 |
| 800 deps += [ "//ui/events:latency_info" ] |
| 801 } |
| 802 |
| 750 if (is_win) { | 803 if (is_win) { |
| 751 cflags = [ "/wd4267" ] # size_t to int truncation. | 804 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 752 } | 805 } |
| 753 } | 806 } |
| 754 | 807 |
| 755 component("ppapi_host") { | 808 component("ppapi_host") { |
| 756 sources = [ | 809 sources = [ |
| 757 "host/dispatch_host_message.h", | 810 "host/dispatch_host_message.h", |
| 758 "host/error_conversion.cc", | 811 "host/error_conversion.cc", |
| 759 "host/error_conversion.h", | 812 "host/error_conversion.h", |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 ":ppapi_proxy", | 861 ":ppapi_proxy", |
| 809 ":ppapi_shared", | 862 ":ppapi_shared", |
| 810 "//base/test:test_support", | 863 "//base/test:test_support", |
| 811 "//ipc", | 864 "//ipc", |
| 812 "//ipc:test_support", | 865 "//ipc:test_support", |
| 813 "//testing/gmock", | 866 "//testing/gmock", |
| 814 "//testing/gtest", | 867 "//testing/gtest", |
| 815 ] | 868 ] |
| 816 } | 869 } |
| 817 # TODO(GYP) other targets from ppapi_tests.gyp | 870 # TODO(GYP) other targets from ppapi_tests.gyp |
| OLD | NEW |