OLD | NEW |
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 } | 224 } |
225 if (enable_background) { | 225 if (enable_background) { |
226 defines += [ "ENABLE_BACKGROUND=1" ] | 226 defines += [ "ENABLE_BACKGROUND=1" ] |
227 } | 227 } |
228 if (enable_pre_sync_backup) { | 228 if (enable_pre_sync_backup) { |
229 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] | 229 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] |
230 } | 230 } |
231 if (enable_video_hole) { | 231 if (enable_video_hole) { |
232 defines += [ "VIDEO_HOLE=1" ] | 232 defines += [ "VIDEO_HOLE=1" ] |
233 } | 233 } |
| 234 if (safe_browsing_mode == 1) { |
| 235 defines += [ "FULL_SAFE_BROWSING" ] |
| 236 defines += [ "SAFE_BROWSING_CSD" ] |
| 237 defines += [ "SAFE_BROWSING_DB_LOCAL" ] |
| 238 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 239 } else if (safe_browsing_mode == 2) { |
| 240 defines += [ "MOBILE_SAFE_BROWSING" ] |
| 241 defines += [ "SAFE_BROWSING_SERVICE" ] |
| 242 } |
234 } | 243 } |
235 | 244 |
236 # Debug/release ---------------------------------------------------------------- | 245 # Debug/release ---------------------------------------------------------------- |
237 | 246 |
238 config("debug") { | 247 config("debug") { |
239 defines = [ | 248 defines = [ |
240 "_DEBUG", | 249 "_DEBUG", |
241 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 250 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
242 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 251 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
243 ] | 252 ] |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 "CoreFoundation.framework", | 340 "CoreFoundation.framework", |
332 "CoreGraphics.framework", | 341 "CoreGraphics.framework", |
333 "CoreText.framework", | 342 "CoreText.framework", |
334 "Foundation.framework", | 343 "Foundation.framework", |
335 "UIKit.framework", | 344 "UIKit.framework", |
336 ] | 345 ] |
337 } else if (is_linux) { | 346 } else if (is_linux) { |
338 libs = [ "dl" ] | 347 libs = [ "dl" ] |
339 } | 348 } |
340 } | 349 } |
OLD | NEW |