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

Side by Side Diff: base/base.gyp

Issue 177353002: Add use_allocator instead of linux_use_tcmalloc to switch the allocator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 9 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
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 ['OS == "linux"', { 173 ['OS == "linux"', {
174 'link_settings': { 174 'link_settings': {
175 'libraries': [ 175 'libraries': [
176 # We need rt for clock_gettime(). 176 # We need rt for clock_gettime().
177 '-lrt', 177 '-lrt',
178 # For 'native_library_linux.cc' 178 # For 'native_library_linux.cc'
179 '-ldl', 179 '-ldl',
180 ], 180 ],
181 }, 181 },
182 'conditions': [ 182 'conditions': [
183 ['linux_use_tcmalloc==0', { 183 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
184 ['use_allocator!="tcmalloc" and (use_allocator!="see_use_tcmalloc" o r linux_use_tcmalloc==0)', {
184 'defines': [ 185 'defines': [
185 'NO_TCMALLOC', 186 'NO_TCMALLOC',
186 ], 187 ],
187 'direct_dependent_settings': { 188 'direct_dependent_settings': {
188 'defines': [ 189 'defines': [
189 'NO_TCMALLOC', 190 'NO_TCMALLOC',
190 ], 191 ],
191 }, 192 },
192 }], 193 }],
193 ], 194 ],
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 }, { # use_glib == 0 750 }, { # use_glib == 0
750 'sources!': [ 751 'sources!': [
751 'message_loop/message_pump_glib_unittest.cc', 752 'message_loop/message_pump_glib_unittest.cc',
752 ] 753 ]
753 }], 754 }],
754 ['use_ozone == 1', { 755 ['use_ozone == 1', {
755 'sources!': [ 756 'sources!': [
756 'message_loop/message_pump_glib_unittest.cc', 757 'message_loop/message_pump_glib_unittest.cc',
757 ] 758 ]
758 }], 759 }],
759 ['OS == "linux" and linux_use_tcmalloc==1', { 760 # TODO(dmikurube): Kill linux_use_tcmalloc. http://crbug.com/345554
761 ['OS == "linux" and ((use_allocator!="none" and use_allocator!="see_use_ tcmalloc") or (use_allocator=="see_use_tcmalloc" and linux_use_tcmalloc==1))', {
760 'dependencies': [ 762 'dependencies': [
761 'allocator/allocator.gyp:allocator', 763 'allocator/allocator.gyp:allocator',
762 ], 764 ],
763 }, 765 },
764 ], 766 ],
765 ['OS == "win"', { 767 ['OS == "win"', {
766 'sources!': [ 768 'sources!': [
767 'file_descriptor_shuffle_unittest.cc', 769 'file_descriptor_shuffle_unittest.cc',
768 'files/dir_reader_posix_unittest.cc', 770 'files/dir_reader_posix_unittest.cc',
769 'threading/worker_pool_posix_unittest.cc', 771 'threading/worker_pool_posix_unittest.cc',
(...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 'base_unittests.isolate', 1447 'base_unittests.isolate',
1446 ], 1448 ],
1447 'sources': [ 1449 'sources': [
1448 'base_unittests.isolate', 1450 'base_unittests.isolate',
1449 ], 1451 ],
1450 }, 1452 },
1451 ], 1453 ],
1452 }], 1454 }],
1453 ], 1455 ],
1454 } 1456 }
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | base/security_unittest.cc » ('j') | ui/keyboard/keyboard.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698