Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2460)

Unified Diff: content/child/BUILD.gn

Issue 542883003: GN: Make content and content_shell work when !enable_plugins (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/BUILD.gn
diff --git a/content/child/BUILD.gn b/content/child/BUILD.gn
index c8e847f2cf330533a7391c689207c25f5ab5ffe1..3fd360b72e2275d3b11639fba30aa988dd1ecd6c 100644
--- a/content/child/BUILD.gn
+++ b/content/child/BUILD.gn
@@ -47,7 +47,6 @@ source_set("child") {
"npapi/plugin_host.h",
"npapi/plugin_instance.cc",
"npapi/plugin_instance.h",
- "npapi/plugin_instance_mac.mm",
"npapi/plugin_lib.cc",
"npapi/plugin_lib.h",
"npapi/plugin_stream.cc",
@@ -55,26 +54,42 @@ source_set("child") {
"npapi/plugin_stream_posix.cc",
"npapi/plugin_stream_url.cc",
"npapi/plugin_stream_url.h",
- "npapi/plugin_stream_win.cc",
"npapi/plugin_string_stream.cc",
"npapi/plugin_string_stream.h",
"npapi/plugin_url_fetcher.cc",
"npapi/plugin_url_fetcher.h",
- "npapi/plugin_web_event_converter_mac.h",
- "npapi/plugin_web_event_converter_mac.mm",
"npapi/webplugin.h",
- "npapi/webplugin_accelerated_surface_mac.h",
"npapi/webplugin_delegate.h",
"npapi/webplugin_delegate_impl.cc",
"npapi/webplugin_delegate_impl.h",
- "npapi/webplugin_delegate_impl_android.cc",
- "npapi/webplugin_delegate_impl_aura.cc",
- "npapi/webplugin_delegate_impl_mac.mm",
- "npapi/webplugin_delegate_impl_win.cc",
- "npapi/webplugin_ime_win.cc",
- "npapi/webplugin_ime_win.h",
"npapi/webplugin_resource_client.h",
]
+
+ if (is_mac) {
+ sources -= [
+ "npapi/plugin_instance_mac.mm",
+ "npapi/plugin_web_event_converter_mac.h",
+ "npapi/plugin_web_event_converter_mac.mm",
+ "npapi/webplugin_accelerated_surface_mac.h",
+ "npapi/webplugin_delegate_impl_mac.mm",
+ ]
+ } else if (is_win) {
+ sources -= [
+ "npapi/plugin_stream_win.cc",
+ "npapi/webplugin_delegate_impl_win.cc",
+ "npapi/webplugin_ime_win.cc",
+ "npapi/webplugin_ime_win.h",
+ ]
+ } else if (is_android) {
+ sources -= [
+ "npapi/webplugin_delegate_impl_android.cc",
+ ]
+ }
+ if (use_aura) {
+ sources -= [
+ "npapi/webplugin_delegate_impl_aura.cc",
+ ]
+ }
}
configs += [
« no previous file with comments | « content/BUILD.gn ('k') | content/renderer/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698