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

Side by Side Diff: build/config/BUILD.gn

Issue 1081403002: Refactor safe-browsing build-config definitions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix collision Created 5 years, 8 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
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/BUILD.gn » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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/allocator.gni") 5 import("//build/config/allocator.gni")
6 import("//build/config/crypto.gni") 6 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 7 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
9 import("//build/module_args/v8.gni") 9 import("//build/module_args/v8.gni")
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 227 }
228 if (enable_background) { 228 if (enable_background) {
229 defines += [ "ENABLE_BACKGROUND=1" ] 229 defines += [ "ENABLE_BACKGROUND=1" ]
230 } 230 }
231 if (enable_pre_sync_backup) { 231 if (enable_pre_sync_backup) {
232 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] 232 defines += [ "ENABLE_PRE_SYNC_BACKUP" ]
233 } 233 }
234 if (enable_video_hole) { 234 if (enable_video_hole) {
235 defines += [ "VIDEO_HOLE=1" ] 235 defines += [ "VIDEO_HOLE=1" ]
236 } 236 }
237 if (safe_browsing_mode == 1) {
238 defines += [ "FULL_SAFE_BROWSING" ]
239 defines += [ "SAFE_BROWSING_CSD" ]
240 defines += [ "SAFE_BROWSING_DB_LOCAL" ]
241 defines += [ "SAFE_BROWSING_SERVICE" ]
242 } else if (safe_browsing_mode == 2) {
243 defines += [ "MOBILE_SAFE_BROWSING" ]
244 defines += [ "SAFE_BROWSING_SERVICE" ]
245 }
237 } 246 }
238 247
239 # Debug/release ---------------------------------------------------------------- 248 # Debug/release ----------------------------------------------------------------
240 249
241 config("debug") { 250 config("debug") {
242 defines = [ 251 defines = [
243 "_DEBUG", 252 "_DEBUG",
244 "DYNAMIC_ANNOTATIONS_ENABLED=1", 253 "DYNAMIC_ANNOTATIONS_ENABLED=1",
245 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 254 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
246 ] 255 ]
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 "CoreFoundation.framework", 343 "CoreFoundation.framework",
335 "CoreGraphics.framework", 344 "CoreGraphics.framework",
336 "CoreText.framework", 345 "CoreText.framework",
337 "Foundation.framework", 346 "Foundation.framework",
338 "UIKit.framework", 347 "UIKit.framework",
339 ] 348 ]
340 } else if (is_linux) { 349 } else if (is_linux) {
341 libs = [ "dl" ] 350 libs = [ "dl" ]
342 } 351 }
343 } 352 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | chrome/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698