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( | 5 gypi_values = exec_script( |
6 "//build/gypi_to_gn.py", | 6 "//build/gypi_to_gn.py", |
7 [ rebase_path("ppapi_sources.gypi") ], | 7 [ rebase_path("ppapi_sources.gypi") ], |
8 "scope", | 8 "scope", |
9 [ "ppapi_sources.gypi" ]) | 9 [ "ppapi_sources.gypi" ]) |
10 | 10 |
11 # TODO(GYP) support chrome_multiple_dll | 11 # TODO(GYP) support chrome_multiple_dll |
12 #if (chrome_multiple_dll) { | 12 #if (chrome_multiple_dll) { |
13 # blink_target = "//third_party/WebKit/public:blink_minimal" | 13 # blink_target = "//third_party/WebKit/public:blink_minimal" |
14 #} else { | 14 #} else { |
15 # blink_target = "//third_party/WebKit/public:blink" | 15 blink_target = "//third_party/WebKit/public:blink" |
16 #} | 16 #} |
17 | 17 |
18 # These are just headers. | 18 # These are just headers. |
19 source_set("ppapi_c") { | 19 source_set("ppapi_c") { |
20 sources = gypi_values.c_source_files | 20 sources = gypi_values.c_source_files |
21 } | 21 } |
22 | 22 |
23 source_set("ppapi_cpp_objects") { | 23 source_set("ppapi_cpp_objects") { |
24 sources = gypi_values.cpp_source_files | 24 sources = gypi_values.cpp_source_files |
25 | 25 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 | 397 |
398 deps = [ | 398 deps = [ |
399 ":ppapi_c", | 399 ":ppapi_c", |
400 "//base", | 400 "//base", |
401 "//base:i18n", | 401 "//base:i18n", |
402 "//base/third_party/dynamic_annotations", | 402 "//base/third_party/dynamic_annotations", |
403 "//gpu/command_buffer/client", | 403 "//gpu/command_buffer/client", |
404 "//gpu/command_buffer/client:gles2_implementation", | 404 "//gpu/command_buffer/client:gles2_implementation", |
405 "//gpu/command_buffer/common", | 405 "//gpu/command_buffer/common", |
406 "//ipc", | 406 "//ipc", |
407 #"//media:shared_memory_support", TODO(GYP) | 407 "//media:shared_memory_support", |
408 "//skia", | 408 "//skia", |
409 "//third_party/icu:icuuc", | 409 "//third_party/icu:icuuc", |
410 "//ui/surface", | 410 "//ui/surface", |
411 "//url", | 411 "//url", |
412 ] | 412 ] |
413 | 413 |
414 if (is_mac) { | 414 if (is_mac) { |
415 libs = [ "QuartzCore.framework" ] | 415 libs = [ "QuartzCore.framework" ] |
416 } else if (is_win) { | 416 } else if (is_win) { |
417 cflags = [ "/wd4267" ] # size_t to int truncation. | 417 cflags = [ "/wd4267" ] # size_t to int truncation. |
418 } | 418 } |
419 | 419 |
420 # TODO(GYP) | 420 deps += [ blink_target ] |
421 #deps += [ blink_target ] | 421 forward_dependent_configs_from = [ blink_target ] |
422 #forward_dependent_configs_from = [ blink_target ] | |
423 } | 422 } |
424 | 423 |
425 source_set("ppapi_ipc") { | 424 source_set("ppapi_ipc") { |
426 sources = [ | 425 sources = [ |
427 "proxy/nacl_message_scanner.cc", | 426 "proxy/nacl_message_scanner.cc", |
428 "proxy/nacl_message_scanner.h", | 427 "proxy/nacl_message_scanner.h", |
429 "proxy/ppapi_messages.cc", | 428 "proxy/ppapi_messages.cc", |
430 "proxy/ppapi_messages.h", | 429 "proxy/ppapi_messages.h", |
431 "proxy/ppapi_param_traits.cc", | 430 "proxy/ppapi_param_traits.cc", |
432 "proxy/ppapi_param_traits.h", | 431 "proxy/ppapi_param_traits.h", |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] | 714 defines = [ "PPAPI_PROXY_IMPLEMENTATION" ] |
716 | 715 |
717 deps = [ | 716 deps = [ |
718 ":ppapi_c", | 717 ":ppapi_c", |
719 ":ppapi_shared", | 718 ":ppapi_shared", |
720 ":ppapi_ipc", | 719 ":ppapi_ipc", |
721 "//base", | 720 "//base", |
722 "//base/third_party/dynamic_annotations", | 721 "//base/third_party/dynamic_annotations", |
723 "//gpu/command_buffer/client:gles2_implementation", | 722 "//gpu/command_buffer/client:gles2_implementation", |
724 "//gpu/ipc", | 723 "//gpu/ipc", |
725 #"//media:shared_memory_support", # TODO(GYP) | 724 "//media:shared_memory_support", |
726 "//ipc", | 725 "//ipc", |
727 "//skia", | 726 "//skia", |
728 "//third_party/icu", | 727 "//third_party/icu", |
729 "//ui/surface", | 728 "//ui/surface", |
730 #blink_target, TODO(GYP) | 729 blink_target, |
731 ] | 730 ] |
732 | 731 |
733 if (is_win) { | 732 if (is_win) { |
734 cflags = [ "/wd4267" ] # size_t to int truncation. | 733 cflags = [ "/wd4267" ] # size_t to int truncation. |
735 } | 734 } |
736 } | 735 } |
737 | 736 |
738 component("ppapi_host") { | 737 component("ppapi_host") { |
739 sources = [ | 738 sources = [ |
740 "host/dispatch_host_message.h", | 739 "host/dispatch_host_message.h", |
(...skipping 19 matching lines...) Expand all Loading... |
760 | 759 |
761 defines = [ "PPAPI_HOST_IMPLEMENTATION" ] | 760 defines = [ "PPAPI_HOST_IMPLEMENTATION" ] |
762 | 761 |
763 deps = [ | 762 deps = [ |
764 ":ppapi_c", | 763 ":ppapi_c", |
765 ":ppapi_ipc", | 764 ":ppapi_ipc", |
766 ":ppapi_proxy", | 765 ":ppapi_proxy", |
767 ":ppapi_shared", | 766 ":ppapi_shared", |
768 "//base", | 767 "//base", |
769 "//ipc", | 768 "//ipc", |
| 769 "//media:shared_memory_support", |
770 "//ui/surface", | 770 "//ui/surface", |
771 "//url", | 771 "//url", |
772 #'../media/media.gyp:shared_memory_support', TODO(GYP) | |
773 ] | 772 ] |
774 } | 773 } |
775 | 774 |
776 static_library("ppapi_unittest_shared") { | 775 static_library("ppapi_unittest_shared") { |
777 sources = [ | 776 sources = [ |
778 "proxy/ppapi_proxy_test.cc", | 777 "proxy/ppapi_proxy_test.cc", |
779 "proxy/ppapi_proxy_test.h", | 778 "proxy/ppapi_proxy_test.h", |
780 "proxy/resource_message_test_sink.cc", | 779 "proxy/resource_message_test_sink.cc", |
781 "proxy/resource_message_test_sink.h", | 780 "proxy/resource_message_test_sink.h", |
782 "shared_impl/test_globals.cc", | 781 "shared_impl/test_globals.cc", |
783 "shared_impl/test_globals.h", | 782 "shared_impl/test_globals.h", |
784 "shared_impl/unittest_utils.cc", | 783 "shared_impl/unittest_utils.cc", |
785 "shared_impl/unittest_utils.h", | 784 "shared_impl/unittest_utils.h", |
786 ] | 785 ] |
787 | 786 |
788 deps = [ | 787 deps = [ |
789 ":ppapi_proxy", | 788 ":ppapi_proxy", |
790 ":ppapi_shared", | 789 ":ppapi_shared", |
791 "//base/test:test_support", | 790 "//base/test:test_support", |
792 "//ipc", | 791 "//ipc", |
793 "//ipc:test_support", | 792 "//ipc:test_support", |
794 "//testing/gmock", | 793 "//testing/gmock", |
795 "//testing/gtest", | 794 "//testing/gtest", |
796 ] | 795 ] |
797 } | 796 } |
798 | 797 |
799 # TODO(GYP) other targets from ppapi_tests.gyp | 798 # TODO(GYP) other targets from ppapi_tests.gyp |
OLD | NEW |