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

Unified Diff: content/child/BUILD.gn

Issue 309573007: Add content/child to the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Android Created 6 years, 7 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 | « BUILD.gn ('k') | content/child/child.gni » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..618de030e4f9e28e841eb973d5283b804da15309
--- /dev/null
+++ b/content/child/BUILD.gn
@@ -0,0 +1,114 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/crypto.gni")
+import("//build/config/features.gni")
+import("//build/config/ui.gni")
+import("//content/child/child.gni")
+
+source_set("child") {
+ # Only targets in the content tree can depend directly on this target.
+ visibility = [ "//content/*" ]
+
+ sources = rebase_path(content_child_gypi_values.private_child_sources,
+ ".", "//content")
+
+ deps = [
+ "//base",
+ "//components/tracing",
+ "//mojo/public/interfaces/service_provider",
+ "//skia",
+ "//third_party/icu",
+ "//ui/base",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//url",
+ #'../mojo/mojo.gyp:mojo_environment_chromium', # TODO(GYP)
+ ]
+
+ if (!use_default_render_theme) {
+ sources -= [
+ "webthemeengine_impl_default.cc",
+ "webthemeengine_impl_default.h",
+ ]
+ }
+
+ if (is_android) {
+ deps += [
+ "//third_party/android_tools:cpu_features",
+ ]
+ }
+
+ if (!enable_plugins) {
+ sources -= [
+ "browser_font_resource_trusted.cc",
+ "npapi/plugin_host.cc",
+ "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",
+ "npapi/plugin_stream.h",
+ "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",
+ ]
+ }
+
+ configs += [
+ "//content:content_implementation",
+ ]
+
+ if (is_ios) {
+ # iOS only needs a small portion of content; exclude all the
+ # implementation, and re-include what is used.
+ sources = []
+ } else {
+ deps += [
+ "//crypto:platform",
+ #"//third_party/WebKit/public:blink", # TODO(GYP)
+ "//third_party/npapi",
+ "//webkit:resources",
+ "//webkit:strings",
+ "//webkit/child",
+ "//webkit/common",
+ ]
+ }
+
+ if (use_aura && is_mac) {
+ # This file is already excluded on non-Mac.
+ sources -= [ "npapi/webplugin_delegate_impl_mac.mm" ]
+ }
+
+ if (is_win) {
+ sources -= [ "npapi/webplugin_delegate_impl_aura.cc" ]
+ }
+
+ if (!use_openssl) {
+ sources -= [ "webcrypto/platform_crypto_openssl.cc" ]
+ } else {
+ sources -= [ "webcrypto/platform_crypto_nss.cc" ]
+ }
+}
« no previous file with comments | « BUILD.gn ('k') | content/child/child.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698