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("//build/gypi_to_gn.py", |
6 "//build/gypi_to_gn.py", | 6 [ rebase_path("ppapi_sources.gypi") ], |
7 [ rebase_path("ppapi_sources.gypi") ], | 7 "scope", |
8 "scope", | 8 [ "ppapi_sources.gypi" ]) |
9 [ "ppapi_sources.gypi" ]) | |
10 | 9 |
11 # TODO(GYP) support chrome_multiple_dll | 10 # TODO(GYP) support chrome_multiple_dll |
12 #if (chrome_multiple_dll) { | 11 #if (chrome_multiple_dll) { |
13 # blink_target = "//third_party/WebKit/public:blink_minimal" | 12 # blink_target = "//third_party/WebKit/public:blink_minimal" |
14 #} else { | 13 #} else { |
15 blink_target = "//third_party/WebKit/public:blink" | 14 blink_target = "//third_party/WebKit/public:blink" |
16 #} | 15 #} |
17 | 16 |
18 # These are just headers. | 17 # These are just headers. |
19 source_set("ppapi_c") { | 18 source_set("ppapi_c") { |
20 sources = gypi_values.c_source_files | 19 sources = gypi_values.c_source_files |
21 } | 20 } |
22 | 21 |
23 # 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 |
24 # they can include this header without header check warnings. | 23 # they can include this header without header check warnings. |
25 source_set("ppapi_macros") { | 24 source_set("ppapi_macros") { |
26 sources = [ "c/pp_macros.h" ] | 25 sources = [ |
| 26 "c/pp_macros.h", |
| 27 ] |
27 } | 28 } |
28 | 29 |
29 source_set("ppapi_cpp_objects") { | 30 source_set("ppapi_cpp_objects") { |
30 sources = gypi_values.cpp_source_files | 31 sources = gypi_values.cpp_source_files |
31 | 32 |
32 if (is_win) { | 33 if (is_win) { |
33 cflags = [ | 34 cflags = [ "/we4244" ] # Implicit conversion, possible loss of data. |
34 "/we4244", # Implicit conversion, possible loss of data. | |
35 ] | |
36 } else { | 35 } else { |
37 cflags = [ | 36 cflags = [ |
38 "-Wextra", | 37 "-Wextra", |
39 "-pedantic", | 38 "-pedantic", |
40 ] | 39 ] |
41 } | 40 } |
42 } | 41 } |
43 | 42 |
44 source_set("ppapi_cpp") { | 43 source_set("ppapi_cpp") { |
45 sources = [ | 44 sources = [ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 "shared_impl/tracked_callback.cc", | 200 "shared_impl/tracked_callback.cc", |
202 "shared_impl/tracked_callback.h", | 201 "shared_impl/tracked_callback.h", |
203 "shared_impl/url_request_info_data.cc", | 202 "shared_impl/url_request_info_data.cc", |
204 "shared_impl/url_request_info_data.h", | 203 "shared_impl/url_request_info_data.h", |
205 "shared_impl/url_response_info_data.cc", | 204 "shared_impl/url_response_info_data.cc", |
206 "shared_impl/url_response_info_data.h", | 205 "shared_impl/url_response_info_data.h", |
207 "shared_impl/var.cc", | 206 "shared_impl/var.cc", |
208 "shared_impl/var.h", | 207 "shared_impl/var.h", |
209 "shared_impl/var_tracker.cc", | 208 "shared_impl/var_tracker.cc", |
210 "shared_impl/var_tracker.h", | 209 "shared_impl/var_tracker.h", |
| 210 |
211 # TODO(viettrungluu): Split these out; it won"t be used in NaCl. | 211 # TODO(viettrungluu): Split these out; it won"t be used in NaCl. |
212 "shared_impl/private/net_address_private_impl.cc", | 212 "shared_impl/private/net_address_private_impl.cc", |
213 "shared_impl/private/net_address_private_impl_constants.cc", | 213 "shared_impl/private/net_address_private_impl_constants.cc", |
214 "shared_impl/private/net_address_private_impl.h", | 214 "shared_impl/private/net_address_private_impl.h", |
215 | |
216 "shared_impl/private/ppb_x509_certificate_private_shared.cc", | 215 "shared_impl/private/ppb_x509_certificate_private_shared.cc", |
217 "shared_impl/private/ppb_x509_certificate_private_shared.h", | 216 "shared_impl/private/ppb_x509_certificate_private_shared.h", |
218 | |
219 "thunk/enter.cc", | 217 "thunk/enter.cc", |
220 "thunk/enter.h", | 218 "thunk/enter.h", |
221 "thunk/ppb_audio_api.h", | 219 "thunk/ppb_audio_api.h", |
222 "thunk/ppb_audio_config_api.h", | 220 "thunk/ppb_audio_config_api.h", |
223 "thunk/ppb_audio_config_thunk.cc", | 221 "thunk/ppb_audio_config_thunk.cc", |
224 "thunk/ppb_audio_buffer_api.h", | 222 "thunk/ppb_audio_buffer_api.h", |
225 "thunk/ppb_audio_buffer_thunk.cc", | 223 "thunk/ppb_audio_buffer_thunk.cc", |
226 "thunk/ppb_audio_input_api.h", | 224 "thunk/ppb_audio_input_api.h", |
227 "thunk/ppb_audio_thunk.cc", | 225 "thunk/ppb_audio_thunk.cc", |
228 "thunk/ppb_broker_api.h", | 226 "thunk/ppb_broker_api.h", |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 | 478 |
481 component("ppapi_proxy") { | 479 component("ppapi_proxy") { |
482 sources = [ | 480 sources = [ |
483 # Take some standalone files from the C++ wrapper allowing us to more | 481 # 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 | 482 # 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 | 483 # full C++ wrappers at this layer since the C++ wrappers expect |
486 # symbols defining the globals for "being a plugin" which we are not. | 484 # symbols defining the globals for "being a plugin" which we are not. |
487 # These callback files are standalone. | 485 # These callback files are standalone. |
488 "cpp/completion_callback.h", | 486 "cpp/completion_callback.h", |
489 "utility/completion_callback_factory.h", | 487 "utility/completion_callback_factory.h", |
490 | |
491 "proxy/audio_buffer_resource.cc", | 488 "proxy/audio_buffer_resource.cc", |
492 "proxy/audio_buffer_resource.h", | 489 "proxy/audio_buffer_resource.h", |
493 "proxy/broker_resource.cc", | 490 "proxy/broker_resource.cc", |
494 "proxy/broker_resource.h", | 491 "proxy/broker_resource.h", |
495 "proxy/compositor_layer_resource.cc", | 492 "proxy/compositor_layer_resource.cc", |
496 "proxy/compositor_layer_resource.h", | 493 "proxy/compositor_layer_resource.h", |
497 "proxy/compositor_resource.cc", | 494 "proxy/compositor_resource.cc", |
498 "proxy/compositor_resource.h", | 495 "proxy/compositor_resource.h", |
499 "proxy/connection.h", | 496 "proxy/connection.h", |
500 "proxy/dispatcher.cc", | 497 "proxy/dispatcher.cc", |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 deps = [ | 807 deps = [ |
811 ":ppapi_proxy", | 808 ":ppapi_proxy", |
812 ":ppapi_shared", | 809 ":ppapi_shared", |
813 "//base/test:test_support", | 810 "//base/test:test_support", |
814 "//ipc", | 811 "//ipc", |
815 "//ipc:test_support", | 812 "//ipc:test_support", |
816 "//testing/gmock", | 813 "//testing/gmock", |
817 "//testing/gtest", | 814 "//testing/gtest", |
818 ] | 815 ] |
819 } | 816 } |
820 | |
821 # TODO(GYP) other targets from ppapi_tests.gyp | 817 # TODO(GYP) other targets from ppapi_tests.gyp |
OLD | NEW |