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

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

Issue 397853002: Refactor safe-browsing build-config definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase to satiate trybots Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/common_message_generator.h » ('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("//tools/grit/grit_rule.gni") 5 import("//tools/grit/grit_rule.gni")
6 6
7 gypi_values = exec_script( 7 gypi_values = exec_script(
8 "//build/gypi_to_gn.py", 8 "//build/gypi_to_gn.py",
9 [ rebase_path("../chrome_common.gypi") ], 9 [ rebase_path("../chrome_common.gypi") ],
10 "scope", 10 "scope",
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 sources -= [ "pepper_permission_util.cc" ] 215 sources -= [ "pepper_permission_util.cc" ]
216 } 216 }
217 if (!enable_webrtc) { 217 if (!enable_webrtc) {
218 sources -= [ "media/webrtc_logging_messages.h" ] 218 sources -= [ "media/webrtc_logging_messages.h" ]
219 } 219 }
220 if (enable_configuration_policy) { 220 if (enable_configuration_policy) {
221 deps += [ "//components/policy" ] 221 deps += [ "//components/policy" ]
222 } 222 }
223 223
224 if (safe_browsing_mode == 1) { 224 if (safe_browsing_mode == 1) {
225 defines += [ "FULL_SAFE_BROWSING" ]
226 sources += rebase_path( 225 sources += rebase_path(
227 gypi_values.chrome_common_full_safe_browsing_sources, 226 gypi_values.chrome_common_full_safe_browsing_sources,
228 ".", "//chrome") 227 ".", "//chrome")
229 } 228 }
230 if (safe_browsing_mode == 2) {
231 defines += [ "MOBILE_SAFE_BROWSING" ]
232 }
233 } 229 }
234 230
235 if (is_linux) { 231 if (is_linux) {
236 action("version") { 232 action("version") {
237 visibility = ":common" 233 visibility = ":common"
238 script = "//build/util/version.py" 234 script = "//build/util/version.py"
239 235
240 lastchange_path = "//build/util/LASTCHANGE" 236 lastchange_path = "//build/util/LASTCHANGE"
241 version_path = "//chrome/VERSION" 237 version_path = "//chrome/VERSION"
242 template_input_path = "chrome_version_info_posix.h.version" 238 template_input_path = "chrome_version_info_posix.h.version"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 "//components/bookmarks/common", 300 "//components/bookmarks/common",
305 "//third_party/widevine/cdm:version_h", 301 "//third_party/widevine/cdm:version_h",
306 ] 302 ]
307 303
308 if (enable_nacl) { 304 if (enable_nacl) {
309 deps += [ 305 deps += [
310 #'../components/nacl.gyp:nacl_switches', TODO(GYP) 306 #'../components/nacl.gyp:nacl_switches', TODO(GYP)
311 ] 307 ]
312 } 308 }
313 } 309 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | chrome/common/common_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698