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

Unified Diff: chrome/utility/BUILD.gn

Issue 348363002: Add chrome/plugin and chrome/utility to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « chrome/plugin/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/BUILD.gn
diff --git a/chrome/utility/BUILD.gn b/chrome/utility/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..9eb5cc0c97625b65c928cf418d12957c5b85361c
--- /dev/null
+++ b/chrome/utility/BUILD.gn
@@ -0,0 +1,89 @@
+# 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")
+
+gypi_values = exec_script(
+ "//build/gypi_to_gn.py",
+ [ rebase_path("../chrome_utility.gypi") ],
+ "scope",
+ [ "../chrome_utility.gypi" ])
+
+static_library("utility") {
+ sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
+
+ deps = [
+ "//base",
+ #'../components/components_strings.gyp:components_strings', TODO(GYP)
+ #'../components/components.gyp:url_fixer', TODO(GYP)
+ "//content/public/common",
+ "//content/public/utility",
+ #'../media/media.gyp:media', TODO(GYP)
+ "//skia",
+ "//third_party/libxml",
+ "//chrome:resources",
+ "//chrome:strings",
+ "//chrome/common",
+ "//chrome/common/extensions/api",
+ ]
+
+ if (is_win || is_mac) {
+ sources += rebase_path(
+ gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..")
+ #deps += [ "//components/wifi" ] TODO(GYP)
+ }
+ if (is_mac) {
+ sources += [
+ "media_galleries/iphoto_library_parser.cc",
+ "media_galleries/iphoto_library_parser.h",
+ ]
+ }
+
+ if (is_android) {
+ sources -= [ "profile_import_handler.cc" ]
+ } else {
+ sources += rebase_path(gypi_values.chrome_utility_importer_sources,
+ ".", "..")
+ sources += rebase_path(gypi_values.chrome_utility_shared_media_sources,
+ ".", "..")
+ #deps += [ "//third_party/libexif" ] TODO(GYP)
+ }
+
+ if (!use_openssl) {
+ sources -= [ "importer/nss_decryptor.cc" ]
+ if (!is_win && !is_mac) {
+ sources += [
+ "importer/nss_decryptor_system_nss.cc",
+ "importer/nss_decryptor_system_nss.h",
+ ]
+ deps += [
+ "//crypto",
+ "//crypto:platform",
+ ]
+ }
+ }
+
+
+ if (!is_win && !is_mac) {
+ sources += [ "image_writer/image_writer_stub.cc" ]
+ }
+ if (enable_printing != 1) {
+ sources -= [
+ "printing_handler.cc",
+ "printing_handler.h",
+ ]
+ }
+
+ if (!enable_mdns) {
+ sources -= [
+ "local_discovery/service_discovery_message_handler.cc",
+ "local_discovery/service_discovery_message_handler.h",
+ ]
+ }
+
+ forward_dependent_configs_from = [
+ "//chrome/common/extensions/api",
+ ]
+}
« no previous file with comments | « chrome/plugin/BUILD.gn ('k') | content/child/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698