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

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

Issue 1681263003: metrics: Add leak detector controller in Chrome OS metrics system (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Properly implement gn build Created 4 years, 10 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
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/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/chromecast_build.gni") 7 import("//build/config/chromecast_build.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/sanitizers/sanitizers.gni") 10 import("//build/config/sanitizers/sanitizers.gni")
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 if (is_syzyasan) { 270 if (is_syzyasan) {
271 defines += [ 271 defines += [
272 "SYZYASAN", 272 "SYZYASAN",
273 "MEMORY_TOOL_REPLACES_ALLOCATOR", 273 "MEMORY_TOOL_REPLACES_ALLOCATOR",
274 "MEMORY_SANITIZER_INITIAL_SIZE", 274 "MEMORY_SANITIZER_INITIAL_SIZE",
275 ] 275 ]
276 } 276 }
277 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) { 277 if (!fieldtrial_testing_like_official_build && !is_chrome_branded) {
278 defines += [ "FIELDTRIAL_TESTING_ENABLED" ] 278 defines += [ "FIELDTRIAL_TESTING_ENABLED" ]
279 } 279 }
280 if (enable_leak_detector && is_chromeos) {
281 defines += [ "ENABLE_LEAK_DETECTOR=1" ]
282 }
280 } 283 }
281 284
282 # Debug/release ---------------------------------------------------------------- 285 # Debug/release ----------------------------------------------------------------
283 286
284 config("debug") { 287 config("debug") {
285 defines = [ 288 defines = [
286 "_DEBUG", 289 "_DEBUG",
287 "DYNAMIC_ANNOTATIONS_ENABLED=1", 290 "DYNAMIC_ANNOTATIONS_ENABLED=1",
288 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 291 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
289 ] 292 ]
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 # This error doesn't happen every time. In VS2013, it seems if the .pch 478 # This error doesn't happen every time. In VS2013, it seems if the .pch
476 # file doesn't exist, no error will be generated (probably MS tested this 479 # file doesn't exist, no error will be generated (probably MS tested this
477 # case but forgot the other one?). To reproduce this error, do a build, 480 # case but forgot the other one?). To reproduce this error, do a build,
478 # then delete the precompile.c.obj file, then build again. 481 # then delete the precompile.c.obj file, then build again.
479 cflags_c = [ "/wd4206" ] 482 cflags_c = [ "/wd4206" ]
480 } else if (is_mac && !is_official_build && !use_goma) { 483 } else if (is_mac && !is_official_build && !use_goma) {
481 precompiled_header = "build/precompile.h" 484 precompiled_header = "build/precompile.h"
482 precompiled_source = "//build/precompile.h" 485 precompiled_source = "//build/precompile.h"
483 } 486 }
484 } 487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698