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

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

Issue 1994713002: Make the dependency of enable_print_preview and enable_pdf explicit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« build/config/BUILD.gn ('K') | « build/config/BUILD.gn ('k') | no next file » | 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 import("//build/config/sysroot.gni") 7 import("//build/config/sysroot.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("../chrome_utility.gypi") ], 10 [ rebase_path("../chrome_utility.gypi") ],
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 sources += [ 93 sources += [
94 "importer/nss_decryptor_system_nss.cc", 94 "importer/nss_decryptor_system_nss.cc",
95 "importer/nss_decryptor_system_nss.h", 95 "importer/nss_decryptor_system_nss.h",
96 ] 96 ]
97 deps += [ 97 deps += [
98 "//crypto", 98 "//crypto",
99 "//crypto:platform", 99 "//crypto:platform",
100 ] 100 ]
101 } 101 }
102 102
103 if (!enable_print_preview) { 103 if (!enable_print_preview && !is_win) {
Lei Zhang 2016/05/18 21:43:37 Also, "enable_print_preview" used to imply "enable
Lei Zhang 2016/05/18 21:43:37 Would you mind negating this? if (enable_print_pr
Wei Li 2016/05/19 17:13:30 Thanks for the explanation. Done.
Wei Li 2016/05/19 17:13:30 Done.
Wei Li 2016/05/19 17:13:30 Thanks for the explanation. Done.
104 sources -= [ 104 sources -= [
105 "printing_handler.cc", 105 "printing_handler.cc",
106 "printing_handler.h", 106 "printing_handler.h",
107 ] 107 ]
108 } else {
109 deps += [ "//pdf" ]
108 } 110 }
109 111
110 if (safe_browsing_mode == 1) { 112 if (safe_browsing_mode == 1) {
111 sources += 113 sources +=
112 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..") 114 rebase_path(gypi_values.chrome_utility_safe_browsing_sources, ".", "..")
113 deps += [ "//third_party/zlib" ] 115 deps += [ "//third_party/zlib" ]
114 } 116 }
115
116 if (enable_pdf) {
117 deps += [ "//pdf" ]
118 }
119 } 117 }
120 118
121 if (is_mac) { 119 if (is_mac) {
122 import("//testing/libfuzzer/fuzzer_test.gni") 120 import("//testing/libfuzzer/fuzzer_test.gni")
123 fuzzer_test("safe_browsing_dmg_fuzzer") { 121 fuzzer_test("safe_browsing_dmg_fuzzer") {
124 sources = [ 122 sources = [
125 "safe_browsing/mac/fuzzer.cc", 123 "safe_browsing/mac/fuzzer.cc",
126 "safe_browsing/mac/hfs.cc", 124 "safe_browsing/mac/hfs.cc",
127 "safe_browsing/mac/hfs.h", 125 "safe_browsing/mac/hfs.h",
128 "safe_browsing/mac/read_stream.cc", 126 "safe_browsing/mac/read_stream.cc",
129 "safe_browsing/mac/read_stream.h", 127 "safe_browsing/mac/read_stream.h",
130 "safe_browsing/mac/udif.cc", 128 "safe_browsing/mac/udif.cc",
131 "safe_browsing/mac/udif.h", 129 "safe_browsing/mac/udif.h",
132 ] 130 ]
133 131
134 additional_configs = [ ":utility_ldflags" ] 132 additional_configs = [ ":utility_ldflags" ]
135 133
136 deps = [ 134 deps = [
137 "//base", 135 "//base",
138 "//third_party/zlib", 136 "//third_party/zlib",
139 ] 137 ]
140 } 138 }
141 } 139 }
OLDNEW
« build/config/BUILD.gn ('K') | « build/config/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698