| 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/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 import("//content/child/child.gni") | 7 import("//content/child/child.gni") |
| 8 | 8 |
| 9 source_set("child") { | 9 source_set("child") { |
| 10 # Targets external to content should always link to the public API. | 10 # Targets external to content should always link to the public API. |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ] | 71 ] |
| 72 } | 72 } |
| 73 | 73 |
| 74 if (is_android) { | 74 if (is_android) { |
| 75 deps += [ "//third_party/android_tools:cpu_features" ] | 75 deps += [ "//third_party/android_tools:cpu_features" ] |
| 76 } | 76 } |
| 77 | 77 |
| 78 if (enable_plugins) { | 78 if (enable_plugins) { |
| 79 deps += [ "//ppapi/proxy" ] | 79 deps += [ "//ppapi/proxy" ] |
| 80 } else { | 80 } else { |
| 81 sources -= [ | 81 sources -= [ "browser_font_resource_trusted.cc" ] |
| 82 "browser_font_resource_trusted.cc", | |
| 83 "npapi/plugin_host.cc", | |
| 84 "npapi/plugin_host.h", | |
| 85 "npapi/plugin_instance.cc", | |
| 86 "npapi/plugin_instance.h", | |
| 87 "npapi/plugin_lib.cc", | |
| 88 "npapi/plugin_lib.h", | |
| 89 "npapi/webplugin.h", | |
| 90 "npapi/webplugin_delegate.h", | |
| 91 "npapi/webplugin_delegate_impl.cc", | |
| 92 "npapi/webplugin_delegate_impl.h", | |
| 93 "npapi/webplugin_resource_client.h", | |
| 94 ] | |
| 95 | |
| 96 if (is_mac) { | |
| 97 sources -= [ | |
| 98 "npapi/plugin_instance_mac.mm", | |
| 99 "npapi/plugin_web_event_converter_mac.h", | |
| 100 "npapi/plugin_web_event_converter_mac.mm", | |
| 101 "npapi/webplugin_accelerated_surface_mac.h", | |
| 102 "npapi/webplugin_delegate_impl_mac.mm", | |
| 103 ] | |
| 104 } else if (is_win) { | |
| 105 sources -= [ "npapi/webplugin_delegate_impl_win.cc" ] | |
| 106 } else if (is_android) { | |
| 107 sources -= [ "npapi/webplugin_delegate_impl_android.cc" ] | |
| 108 } | |
| 109 if (use_aura) { | |
| 110 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | |
| 111 } | |
| 112 } | 82 } |
| 113 | 83 |
| 114 configs += [ | 84 configs += [ |
| 115 "//content:content_implementation", | 85 "//content:content_implementation", |
| 116 "//build/config/compiler:no_size_t_to_int_warning", | 86 "//build/config/compiler:no_size_t_to_int_warning", |
| 117 ] | 87 ] |
| 118 | |
| 119 if (use_aura && is_mac) { | |
| 120 # This file is already excluded on non-Mac. | |
| 121 sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ] | |
| 122 } | |
| 123 | |
| 124 if (is_win || !use_aura) { | |
| 125 sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ] | |
| 126 } | |
| 127 } | 88 } |
| OLD | NEW |