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

Side by Side Diff: base/base.gyp

Issue 385049: Implement the memory leak annotations for heap leak checker. (Closed)
Patch Set: Created 11 years, 1 month 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 | « base/DEPS ('k') | base/leak_annotations.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 (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'targets': [ 9 'targets': [
10 { 10 {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 'json/json_writer.h', 157 'json/json_writer.h',
158 'json/string_escape.cc', 158 'json/string_escape.cc',
159 'json/string_escape.h', 159 'json/string_escape.h',
160 'keyboard_code_conversion_gtk.cc', 160 'keyboard_code_conversion_gtk.cc',
161 'keyboard_code_conversion_gtk.h', 161 'keyboard_code_conversion_gtk.h',
162 'keyboard_codes.h', 162 'keyboard_codes.h',
163 'keyboard_codes_win.h', 163 'keyboard_codes_win.h',
164 'keyboard_codes_posix.h', 164 'keyboard_codes_posix.h',
165 'lazy_instance.cc', 165 'lazy_instance.cc',
166 'lazy_instance.h', 166 'lazy_instance.h',
167 'leak_annotations.h',
167 'leak_tracker.h', 168 'leak_tracker.h',
168 'linked_list.h', 169 'linked_list.h',
169 'linked_ptr.h', 170 'linked_ptr.h',
170 'linux_util.cc', 171 'linux_util.cc',
171 'linux_util.h', 172 'linux_util.h',
172 'lock.cc', 173 'lock.cc',
173 'lock.h', 174 'lock.h',
174 'lock_impl.h', 175 'lock_impl.h',
175 'lock_impl_posix.cc', 176 'lock_impl_posix.cc',
176 'lock_impl_win.cc', 177 'lock_impl_win.cc',
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 'msvs_disabled_warnings': [ 372 'msvs_disabled_warnings': [
372 4244, 4554, 4018, 4102, 373 4244, 4554, 4018, 4102,
373 ], 374 ],
374 'mac_framework_dirs': [ 375 'mac_framework_dirs': [
375 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Fram eworks', 376 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Fram eworks',
376 ], 377 ],
377 'conditions': [ 378 'conditions': [
378 [ 'OS == "linux" or OS == "freebsd"', { 379 [ 'OS == "linux" or OS == "freebsd"', {
379 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'], 380 'sources/': [ ['exclude', '_(mac|win|chromeos)\\.cc$'],
380 ['exclude', '\\.mm?$' ] ], 381 ['exclude', '\\.mm?$' ] ],
382 'variables' : {
383 'linux_use_heapchecker%' : 0,
384 },
381 'conditions': [ 385 'conditions': [
382 [ 'chromeos==1 or toolkit_views==1', { 386 [ 'chromeos==1 or toolkit_views==1', {
383 'sources/': [ ['include', '_chromeos\\.cc$'] ] 387 'sources/': [ ['include', '_chromeos\\.cc$'] ]
384 }, 388 },
385 ], 389 ],
386 [ 'linux_use_tcmalloc==1', { 390 [ 'linux_use_heapchecker==1', {
391 'defines': [
392 'LINUX_USE_HEAPCHECKER',
393 ],
394 'direct_dependent_settings': {
395 'defines': [
396 'LINUX_USE_HEAPCHECKER',
397 ],
398 },
399 },
400 ],
401 # linux_use_heapchecker==1 implies linux_use_tcmalloc=1.
402 [ 'linux_use_tcmalloc==1 or linux_use_heapchecker==1', {
387 'dependencies': [ 403 'dependencies': [
388 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc', 404 '../third_party/tcmalloc/tcmalloc.gyp:tcmalloc',
389 ], 405 ],
406 'defines': [
407 'LINUX_USE_TCMALLOC',
408 ],
409 'direct_dependent_settings': {
410 'defines': [
411 'LINUX_USE_TCMALLOC',
412 ],
413 },
390 }, 414 },
391 ], 415 ],
392 ], 416 ],
393 'dependencies': [ 417 'dependencies': [
394 '../build/util/build_util.gyp:lastchange', 418 '../build/util/build_util.gyp:lastchange',
395 '../build/linux/system.gyp:gtk', 419 '../build/linux/system.gyp:gtk',
396 '../build/linux/system.gyp:nss', 420 '../build/linux/system.gyp:nss',
397 ], 421 ],
398 'cflags': [ 422 'cflags': [
399 '-Wno-write-strings', 423 '-Wno-write-strings',
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 ], 861 ],
838 }], 862 }],
839 ], 863 ],
840 } 864 }
841 865
842 # Local Variables: 866 # Local Variables:
843 # tab-width:2 867 # tab-width:2
844 # indent-tabs-mode:nil 868 # indent-tabs-mode:nil
845 # End: 869 # End:
846 # vim: set expandtab tabstop=2 shiftwidth=2: 870 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « base/DEPS ('k') | base/leak_annotations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698