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 11 matching lines...) Expand all Loading... |
22 # Some targets need to depend on the PPAPI version only. This target exists so | 22 # Some targets need to depend on the PPAPI version only. This target exists so |
23 # they can include this header without header check warnings. | 23 # they can include this header without header check warnings. |
24 source_set("ppapi_macros") { | 24 source_set("ppapi_macros") { |
25 sources = [ | 25 sources = [ |
26 "c/pp_macros.h", | 26 "c/pp_macros.h", |
27 ] | 27 ] |
28 } | 28 } |
29 | 29 |
30 source_set("ppapi_cpp_objects") { | 30 source_set("ppapi_cpp_objects") { |
31 sources = gypi_values.cpp_source_files | 31 sources = gypi_values.cpp_source_files |
32 | |
33 if (is_win) { | |
34 cflags = [ "/we4244" ] # Implicit conversion, possible loss of data. | |
35 } else { | |
36 cflags = [ | |
37 "-Wextra", | |
38 "-pedantic", | |
39 ] | |
40 } | |
41 } | 32 } |
42 | 33 |
43 source_set("ppapi_cpp") { | 34 source_set("ppapi_cpp") { |
44 sources = [ | 35 sources = [ |
45 "cpp/module_embedder.h", | 36 "cpp/module_embedder.h", |
46 "cpp/ppp_entrypoints.cc", | 37 "cpp/ppp_entrypoints.cc", |
47 ] | 38 ] |
48 | 39 |
49 if (is_posix) { | |
50 cflags = [ | |
51 "-Wextra", | |
52 "-pedantic", | |
53 ] | |
54 } | |
55 | |
56 deps = [ | 40 deps = [ |
57 ":ppapi_c", | 41 ":ppapi_c", |
58 ":ppapi_cpp_objects", | 42 ":ppapi_cpp_objects", |
59 ] | 43 ] |
60 } | 44 } |
61 | 45 |
62 source_set("ppapi_internal_module") { | 46 source_set("ppapi_internal_module") { |
63 sources = [ | 47 sources = [ |
64 "cpp/private/internal_module.cc", | 48 "cpp/private/internal_module.cc", |
65 "cpp/private/internal_module.h", | 49 "cpp/private/internal_module.h", |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 "//media:shared_memory_support", | 410 "//media:shared_memory_support", |
427 "//skia", | 411 "//skia", |
428 "//third_party/icu:icuuc", | 412 "//third_party/icu:icuuc", |
429 "//ui/events:events_base", | 413 "//ui/events:events_base", |
430 "//ui/surface", | 414 "//ui/surface", |
431 "//url", | 415 "//url", |
432 ] | 416 ] |
433 | 417 |
434 if (is_mac) { | 418 if (is_mac) { |
435 libs = [ "QuartzCore.framework" ] | 419 libs = [ "QuartzCore.framework" ] |
436 } else if (is_win) { | |
437 cflags = [ "/wd4267" ] # size_t to int truncation. | |
438 } | 420 } |
439 } | 421 } |
440 | 422 |
441 source_set("ppapi_ipc") { | 423 source_set("ppapi_ipc") { |
442 sources = [ | 424 sources = [ |
443 "proxy/nacl_message_scanner.cc", | 425 "proxy/nacl_message_scanner.cc", |
444 "proxy/nacl_message_scanner.h", | 426 "proxy/nacl_message_scanner.h", |
445 "proxy/ppapi_messages.cc", | 427 "proxy/ppapi_messages.cc", |
446 "proxy/ppapi_messages.h", | 428 "proxy/ppapi_messages.h", |
447 "proxy/ppapi_param_traits.cc", | 429 "proxy/ppapi_param_traits.cc", |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 "//gpu/command_buffer/client:gles2_implementation", | 725 "//gpu/command_buffer/client:gles2_implementation", |
744 "//gpu/ipc", | 726 "//gpu/ipc", |
745 "//media:shared_memory_support", | 727 "//media:shared_memory_support", |
746 "//ipc", | 728 "//ipc", |
747 "//skia", | 729 "//skia", |
748 "//third_party/icu", | 730 "//third_party/icu", |
749 "//ui/events:events_base", | 731 "//ui/events:events_base", |
750 "//ui/surface", | 732 "//ui/surface", |
751 blink_target, | 733 blink_target, |
752 ] | 734 ] |
753 | |
754 if (is_win) { | |
755 cflags = [ "/wd4267" ] # size_t to int truncation. | |
756 } | |
757 } | 735 } |
758 | 736 |
759 component("ppapi_host") { | 737 component("ppapi_host") { |
760 sources = [ | 738 sources = [ |
761 "host/dispatch_host_message.h", | 739 "host/dispatch_host_message.h", |
762 "host/error_conversion.cc", | 740 "host/error_conversion.cc", |
763 "host/error_conversion.h", | 741 "host/error_conversion.h", |
764 "host/host_factory.h", | 742 "host/host_factory.h", |
765 "host/host_message_context.cc", | 743 "host/host_message_context.cc", |
766 "host/host_message_context.h", | 744 "host/host_message_context.h", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
812 ":ppapi_proxy", | 790 ":ppapi_proxy", |
813 ":ppapi_shared", | 791 ":ppapi_shared", |
814 "//base/test:test_support", | 792 "//base/test:test_support", |
815 "//ipc", | 793 "//ipc", |
816 "//ipc:test_support", | 794 "//ipc:test_support", |
817 "//testing/gmock", | 795 "//testing/gmock", |
818 "//testing/gtest", | 796 "//testing/gtest", |
819 ] | 797 ] |
820 } | 798 } |
821 # TODO(GYP) other targets from ppapi_tests.gyp | 799 # TODO(GYP) other targets from ppapi_tests.gyp |
OLD | NEW |