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

Side by Side Diff: chrome/utility/BUILD.gn

Issue 754223003: gn format //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update for multiline output Created 6 years 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 unified diff | Download patch
« no previous file with comments | « chrome/test/chromedriver/test/webview_shell/BUILD.gn ('k') | chrome/version.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 7
8 gypi_values = exec_script( 8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 "//build/gypi_to_gn.py", 9 [ rebase_path("../chrome_utility.gypi") ],
10 [ rebase_path("../chrome_utility.gypi") ], 10 "scope",
11 "scope", 11 [ "../chrome_utility.gypi" ])
12 [ "../chrome_utility.gypi" ])
13 12
14 static_library("utility") { 13 static_library("utility") {
15 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..") 14 sources = rebase_path(gypi_values.chrome_utility_sources, ".", "..")
16 defines = [] 15 defines = []
17 16
18 public_deps = [] 17 public_deps = []
19 deps = [ 18 deps = [
20 "//base", 19 "//base",
21 "//components/strings", 20 "//components/strings",
22 "//components/url_fixer", 21 "//components/url_fixer",
23 "//content/public/common", 22 "//content/public/common",
24 "//content/public/utility", 23 "//content/public/utility",
25 "//media", 24 "//media",
26 "//skia", 25 "//skia",
27 "//third_party/libxml", 26 "//third_party/libxml",
28 "//chrome:resources", 27 "//chrome:resources",
29 "//chrome:strings", 28 "//chrome:strings",
30 "//chrome/common", 29 "//chrome/common",
31 ] 30 ]
32 31
33 if (!is_android) { 32 if (!is_android) {
34 sources += rebase_path(gypi_values.chrome_utility_importer_sources, 33 sources +=
35 ".", "..") 34 rebase_path(gypi_values.chrome_utility_importer_sources, ".", "..")
36 } 35 }
37 36
38 if (enable_extensions) { 37 if (enable_extensions) {
39 deps += [ 38 deps += [
40 "//chrome/common/extensions/api", 39 "//chrome/common/extensions/api",
41 "//extensions/utility", 40 "//extensions/utility",
41
42 #"//third_party/libexif", TODO(GYP) 42 #"//third_party/libexif", TODO(GYP)
43 ] 43 ]
44 44
45 public_deps += [ 45 public_deps += [ "//chrome/common/extensions/api" ]
46 "//chrome/common/extensions/api",
47 ]
48 46
49 sources += rebase_path(gypi_values.chrome_utility_extensions_sources, 47 sources +=
50 ".", "..") 48 rebase_path(gypi_values.chrome_utility_extensions_sources, ".", "..")
51 sources += rebase_path(gypi_values.chrome_utility_shared_media_sources, 49 sources +=
52 ".", "..") 50 rebase_path(gypi_values.chrome_utility_shared_media_sources, ".", "..")
53 51
54 if (is_win || is_mac) { 52 if (is_win || is_mac) {
55 sources += rebase_path( 53 sources +=
56 gypi_values.chrome_utility_win_mac_media_gallery_sources, ".", "..") 54 rebase_path(gypi_values.chrome_utility_win_mac_media_gallery_sources,
55 ".",
56 "..")
57 deps += [ "//components/wifi" ] 57 deps += [ "//components/wifi" ]
58 } else { 58 } else {
59 sources += [ "image_writer/image_writer_stub.cc" ] 59 sources += [ "image_writer/image_writer_stub.cc" ]
60 } 60 }
61 61
62 if (is_mac) { 62 if (is_mac) {
63 sources += rebase_path(gypi_values.chrome_utility_mac_media_gallery_source s, 63 sources +=
64 ".", "..") 64 rebase_path(gypi_values.chrome_utility_mac_media_gallery_sources,
65 ".",
66 "..")
65 } 67 }
66 } 68 }
67 69
68 if (use_openssl) { 70 if (use_openssl) {
69 if (!is_win && !is_mac && !is_android) { 71 if (!is_win && !is_mac && !is_android) {
70 sources -= [ "importer/nss_decryptor.cc" ] 72 sources -= [ "importer/nss_decryptor.cc" ]
71 } 73 }
72 } else { # !use_openssl 74 } else { # !use_openssl
73 if (!is_win && !is_mac) { 75 if (!is_win && !is_mac) {
74 sources += [ 76 sources += [
(...skipping 18 matching lines...) Expand all
93 sources -= [ 95 sources -= [
94 "local_discovery/service_discovery_message_handler.cc", 96 "local_discovery/service_discovery_message_handler.cc",
95 "local_discovery/service_discovery_message_handler.h", 97 "local_discovery/service_discovery_message_handler.h",
96 ] 98 ]
97 } 99 }
98 100
99 if (safe_browsing_mode == 1) { 101 if (safe_browsing_mode == 1) {
100 defines += [ "FULL_SAFE_BROWSING" ] 102 defines += [ "FULL_SAFE_BROWSING" ]
101 } 103 }
102 } 104 }
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/test/webview_shell/BUILD.gn ('k') | chrome/version.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698