| 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 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//content/child/child.gni") | 8 import("//content/child/child.gni") |
| 9 | 9 |
| 10 source_set("child") { | 10 source_set("child") { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 ] | 40 ] |
| 41 } | 41 } |
| 42 | 42 |
| 43 if (!enable_plugins) { | 43 if (!enable_plugins) { |
| 44 sources -= [ | 44 sources -= [ |
| 45 "browser_font_resource_trusted.cc", | 45 "browser_font_resource_trusted.cc", |
| 46 "npapi/plugin_host.cc", | 46 "npapi/plugin_host.cc", |
| 47 "npapi/plugin_host.h", | 47 "npapi/plugin_host.h", |
| 48 "npapi/plugin_instance.cc", | 48 "npapi/plugin_instance.cc", |
| 49 "npapi/plugin_instance.h", | 49 "npapi/plugin_instance.h", |
| 50 "npapi/plugin_instance_mac.mm", | |
| 51 "npapi/plugin_lib.cc", | 50 "npapi/plugin_lib.cc", |
| 52 "npapi/plugin_lib.h", | 51 "npapi/plugin_lib.h", |
| 53 "npapi/plugin_stream.cc", | 52 "npapi/plugin_stream.cc", |
| 54 "npapi/plugin_stream.h", | 53 "npapi/plugin_stream.h", |
| 55 "npapi/plugin_stream_posix.cc", | 54 "npapi/plugin_stream_posix.cc", |
| 56 "npapi/plugin_stream_url.cc", | 55 "npapi/plugin_stream_url.cc", |
| 57 "npapi/plugin_stream_url.h", | 56 "npapi/plugin_stream_url.h", |
| 58 "npapi/plugin_stream_win.cc", | |
| 59 "npapi/plugin_string_stream.cc", | 57 "npapi/plugin_string_stream.cc", |
| 60 "npapi/plugin_string_stream.h", | 58 "npapi/plugin_string_stream.h", |
| 61 "npapi/plugin_url_fetcher.cc", | 59 "npapi/plugin_url_fetcher.cc", |
| 62 "npapi/plugin_url_fetcher.h", | 60 "npapi/plugin_url_fetcher.h", |
| 63 "npapi/plugin_web_event_converter_mac.h", | |
| 64 "npapi/plugin_web_event_converter_mac.mm", | |
| 65 "npapi/webplugin.h", | 61 "npapi/webplugin.h", |
| 66 "npapi/webplugin_accelerated_surface_mac.h", | |
| 67 "npapi/webplugin_delegate.h", | 62 "npapi/webplugin_delegate.h", |
| 68 "npapi/webplugin_delegate_impl.cc", | 63 "npapi/webplugin_delegate_impl.cc", |
| 69 "npapi/webplugin_delegate_impl.h", | 64 "npapi/webplugin_delegate_impl.h", |
| 70 "npapi/webplugin_delegate_impl_android.cc", | |
| 71 "npapi/webplugin_delegate_impl_aura.cc", | |
| 72 "npapi/webplugin_delegate_impl_mac.mm", | |
| 73 "npapi/webplugin_delegate_impl_win.cc", | |
| 74 "npapi/webplugin_ime_win.cc", | |
| 75 "npapi/webplugin_ime_win.h", | |
| 76 "npapi/webplugin_resource_client.h", | 65 "npapi/webplugin_resource_client.h", |
| 77 ] | 66 ] |
| 67 |
| 68 if (is_mac) { |
| 69 sources -= [ |
| 70 "npapi/plugin_instance_mac.mm", |
| 71 "npapi/plugin_web_event_converter_mac.h", |
| 72 "npapi/plugin_web_event_converter_mac.mm", |
| 73 "npapi/webplugin_accelerated_surface_mac.h", |
| 74 "npapi/webplugin_delegate_impl_mac.mm", |
| 75 ] |
| 76 } else if (is_win) { |
| 77 sources -= [ |
| 78 "npapi/plugin_stream_win.cc", |
| 79 "npapi/webplugin_delegate_impl_win.cc", |
| 80 "npapi/webplugin_ime_win.cc", |
| 81 "npapi/webplugin_ime_win.h", |
| 82 ] |
| 83 } else if (is_android) { |
| 84 sources -= [ |
| 85 "npapi/webplugin_delegate_impl_android.cc", |
| 86 ] |
| 87 } |
| 88 if (use_aura) { |
| 89 sources -= [ |
| 90 "npapi/webplugin_delegate_impl_aura.cc", |
| 91 ] |
| 92 } |
| 78 } | 93 } |
| 79 | 94 |
| 80 configs += [ | 95 configs += [ |
| 81 "//content:content_implementation", | 96 "//content:content_implementation", |
| 82 ] | 97 ] |
| 83 | 98 |
| 84 if (is_ios) { | 99 if (is_ios) { |
| 85 # iOS only needs a small portion of content; exclude all the | 100 # iOS only needs a small portion of content; exclude all the |
| 86 # implementation, and re-include what is used. | 101 # implementation, and re-include what is used. |
| 87 sources = [] | 102 sources = [] |
| (...skipping 19 matching lines...) Expand all Loading... |
| 107 } | 122 } |
| 108 | 123 |
| 109 if (!use_openssl) { | 124 if (!use_openssl) { |
| 110 sources += rebase_path(content_child_gypi_values.webcrypto_nss_sources, | 125 sources += rebase_path(content_child_gypi_values.webcrypto_nss_sources, |
| 111 ".", "//content") | 126 ".", "//content") |
| 112 } else { | 127 } else { |
| 113 sources += rebase_path(content_child_gypi_values.webcrypto_openssl_sources, | 128 sources += rebase_path(content_child_gypi_values.webcrypto_openssl_sources, |
| 114 ".", "//content") | 129 ".", "//content") |
| 115 } | 130 } |
| 116 } | 131 } |
| OLD | NEW |